/* CSS Variables Update - Exact animejs.com Colors */
:root {
    --bg-color: #252423;
    /* Deep Charcoal - exact match to animejs.com */
    --accent-primary: #FF7D36;
    /* Coral/Orange - Main diagnostic color */
    --accent-secondary: #00FFAA;
    /* Turquoise - Active/Success state */
    --accent-tertiary: #FF4B4B;
    /* Red - Focus/Critical markers */
    --accent-blue: #4D9CFF;
    /* Indigo/Blue - Depth accents */
    --text-color: #F6F4F2;
    /* Off-white */
    --font-main: 'Rajdhani', sans-serif;
    /* DIN-like industrial sans */
}

/* Lens Container */
.lens-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* No skewed start, we start as a ball */
}

/* Nucleus */
.neural-nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-primary);
    z-index: 10;
}

/* SVG Elements */
.lens-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
}

.lens-ring circle {
    fill: none;
    vector-effect: non-scaling-stroke;
}

/* Styles */
.neural-path circle {
    stroke: rgba(189, 0, 255, 0.3);
    /* Purple faint lines */
    stroke-width: 0.5px;
}

.impulse-ring circle {
    stroke: var(--accent-primary);
    stroke-width: 1px;
    stroke-dasharray: 5, 10;
    /* Dashed data lines */
    filter: drop-shadow(0 0 2px var(--accent-primary));
}

.static-ring circle {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.5px;
}

.outer-shell circle {
    stroke: var(--accent-secondary);
    stroke-width: 1px;
    stroke-dasharray: 20, 20;
    opacity: 0.5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Removing smooth behavior for snappier scroll as requested */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.scroll-spacer {
    height: 1200vh;
    /* Reduced from 2000vh to increase scroll speed */
    position: relative;
    /* Changed from absolute - needed to create actual scrollable height */
    width: 100%;
    pointer-events: none;
}

.fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    /* Enhanced perspective for the core */
}

/* Background Elements */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 125, 54, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 125, 54, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    transform: perspective(1000px) rotateX(60deg) scale(2);
    transform-origin: center top;
    opacity: 0.6;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(255, 125, 54, 0.3), transparent);
    z-index: 10;
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* AI Core Container */
.core-wrapper {
    position: relative;
    z-index: 5;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Lens/Hexagon Container */
.lens-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(0deg);
}

/* SVG Elements */
.lens-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* SVGs scale to container */
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
    /* Allow glow to bleed */
}

.lens-ring polygon {
    fill: rgba(0, 10, 20, 0.1);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    /* Keep thin lines even when scaled */
}

/* Ring Variations */
.ring-body polygon {
    stroke: rgba(0, 243, 255, 0.2);
}

.ring-glowing polygon {
    stroke: var(--accent-primary);
    stroke-width: 2px;
    filter: drop-shadow(0 0 5px var(--accent-primary));
    fill: rgba(0, 243, 255, 0.05);
}

.ring-dashed polygon {
    stroke: var(--accent-secondary);
    stroke-dasharray: 10, 5;
    fill: none;
}

.ring-solid polygon {
    stroke: var(--text-color);
    fill: rgba(0, 0, 0, 0.8);
    /* Close the tunnel end */
}

.ring-particles {
    /* Not used in Hex version currently, fallback to body */
    stroke: white;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* CONTENT LAYER */
.content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    /* Above the core */
    pointer-events: none;
    /* Let clicks pass through by default */
    display: flex;
    justify-content: center;
    align-items: center;
}

.module {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Start invisible, will fade in on scroll */
    visibility: visible;
    /* Changed from hidden - allows animations to work smoothly */
    pointer-events: none;
    padding: 80px 40px;
}

/* Section Dividers */
.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.module::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.3;
}

/* 1. HOME SECTION Styles */
.hero-section {
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.03), transparent 70%);
}

.hero-section::before,
.hero-section::after {
    display: none;
    /* No dividers for hero */
}

.home-content {
    display: flex;
    flex-direction: row;
    /* Explicitly set row */
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    gap: 80px;
    /* Increased gap slightly */
    max-width: 1200px;
    width: 100%;
}

/* Profile Image */
.profile-container {
    position: relative;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.profile-image-wrapper {
    position: relative;
    width: 320px;
    /* Increased size */
    height: 320px;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    border-radius: 40px;
    /* Rounded square glow */
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    /* Rounded square */
    /* Border removed */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
        inset 0 0 50px rgba(255, 255, 255, 0.05);
    background: url('Dev.png') no-repeat center center/cover;
    /* Profile Image - fully displayed */
    position: relative;
    background-color: transparent;
    /* Ensure no background color interferes */
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    /* Inner rounded square */
    /* Inner border removed */
}

.profile-placeholder {
    font-size: 4rem;
    /* Adjusted font size */
    font-weight: 700;
    color: white;
    /* Pure white text */
    background: none;
    -webkit-text-fill-color: white;
    letter-spacing: 5px;
    z-index: 1;
}


/* Introduction Text */
.intro-text {
    flex: 1;
    text-align: left;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

.role {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 400;
}

.bio {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(224, 208, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
}

.home-cta {
    display: flex;
    gap: 20px;
}

.cta-btn {
    padding: 12px 35px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        text-align: center;
    }

    .bio {
        margin-left: auto;
        margin-right: auto;
    }

    .home-cta {
        justify-content: center;
    }
}

/* 2. PROJECTS Styles - Enhanced with Previews */
.projects-module {
    background: radial-gradient(ellipse at center, rgba(189, 0, 255, 0.05), transparent 60%);
    z-index: 50;
}

.projects-module h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-container {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    background: rgba(255, 125, 54, 0.1);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 125, 54, 0.3);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 125, 54, 0.3);
    border: 2px solid rgba(255, 125, 54, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: scale(1.1);
}


.project-grid {
    display: flex;
    gap: 30px;
    width: max-content;
}

.p-card {
    width: 320px;
    flex-shrink: 0;
    background: rgba(5, 2, 10, 0.9);
    border: 1px solid rgba(255, 125, 54, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.p-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 125, 54, 0.1), transparent);
    transition: left 0.6s;
}

.p-card:hover::before {
    left: 100%;
}

.p-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.3);
}

/* Project Preview/Image Section */
.p-preview {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: all 0.3s;
}

.p-card:hover .p-preview-overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
}

.preview-icon {
    font-size: 3rem;
    filter: grayscale(0.5);
    transition: all 0.3s;
}

.p-card:hover .preview-icon {
    filter: grayscale(0);
    transform: scale(1.2);
}

/* Project Content */
.p-content {
    padding: 20px;
}

.p-header {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

.p-body {
    font-size: 0.95rem;
    color: rgba(246, 244, 242, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 50px;
}

/* Tech Stack Badges */
.p-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-badge {
    background: rgba(255, 125, 54, 0.1);
    border: 1px solid rgba(255, 125, 54, 0.3);
    padding: 4px 12px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent-primary);
    transition: all 0.3s;
}

.tech-badge:hover {
    background: rgba(255, 125, 54, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Project Links */
.p-links {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.p-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-secondary);
    transition: width 0.3s;
}

.p-link:hover::after {
    width: 100%;
}

.p-link.demo {
    color: var(--accent-primary);
}

.p-link.demo::after {
    background: var(--accent-primary);
}

.p-link.case-study {
    color: var(--accent-blue);
}

.p-link.case-study::after {
    background: var(--accent-blue);
}

/* 2.5 SKILLS Styles - Redesigned Simple Grid */
.skills-module {
    background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.05), transparent 60%);
    z-index: 50;
}

.skills-module .section-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--accent-primary);
}

.skills-subtitle {
    color: rgba(246, 244, 242, 0.7);
    font-size: 1rem;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

.skills-grid-simple {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    padding: 20px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.tech-card-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.tech-card:hover .tech-card-logo {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.tech-card-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.tech-card-name {
    font-size: 0.85rem;
    color: rgba(246, 244, 242, 0.9);
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .skills-grid-simple {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .skills-grid-simple {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .skills-grid-simple {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .tech-card {
        padding: 12px;
    }

    .tech-card-logo,
    .tech-card-placeholder {
        width: 40px;
        height: 40px;
    }

    .tech-card-name {
        font-size: 0.75rem;
    }
}

/* 2.6 EXPERIENCE Styles - Enhanced */
.experience-module {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03), transparent 60%);
    z-index: 50;
    align-items: flex-start;
    padding-left: 10%;
    padding-right: 10%;
}

.experience-module .section-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 40px;
    letter-spacing: 5px;
    margin-left: -20px;
}

.experience-container {
    width: 100%;
    max-width: 800px;
}

.exp-block {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 30px;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.exp-block::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s;
}

.exp-block.current::before {
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.exp-block:hover {
    border-left-color: var(--accent-secondary);
}

.exp-block:hover::before {
    width: 14px;
    height: 14px;
    left: -8px;
}

.exp-block h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.exp-block .exp-meta {
    display: block;
    color: var(--accent-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-family: monospace;
}

.exp-block p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.exp-details-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.exp-details-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transform: translateX(5px);
}

/* 2.7 CERTIFICATES Styles - New Section */
.certificates-module {
    background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.05), transparent 60%);
    z-index: 50;
}

.certificates-module .section-title {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 40px;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--accent-secondary);
}

/* Carousel Wrapper */
.cert-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.certificates-carousel {
    overflow: hidden;
    width: 800px;
    max-width: 800px;
}

.certificates-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card {
    background: transparent;
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    padding: 0;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 800px;
    min-width: 800px;
    max-width: 800px;
    flex-shrink: 0;
    margin: 0 auto;
}

/* Certificate Preview Image */
.cert-preview {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
    position: relative;
}

.cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-preview img {
    transform: scale(1.05);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-secondary);
    transition: height 0.4s ease;
}

.cert-card.verified::before {
    background: var(--accent-secondary);
}

.cert-card:hover::before {
    height: 100%;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.cert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-secondary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    z-index: 1;
    transition: all 0.3s;
}

.cert-card.verified .cert-badge {
    filter: grayscale(0);
}

.cert-card:hover .cert-badge {
    filter: grayscale(0);
    transform: scale(1.1);
}

.cert-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cert-content h4 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    line-height: 1.4;
}

.cert-issuer {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.cert-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: monospace;
}

.cert-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.cert-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.cert-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. CONTACT Styles - Full Section */
.contact-module {
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.08), transparent 70%);
    z-index: 50;
    /* Same as projects */
}

.contact-module .section-title {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 50px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--accent-primary);
    position: relative;
    padding-bottom: 20px;
}

.contact-module .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.contact-card {
    background: rgba(5, 2, 10, 0.8);
    border: 1px solid var(--accent-secondary);
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.contact-card:hover .contact-icon {
    filter: grayscale(0);
}

.contact-label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-cta {
    text-align: center;
}

.hire-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-family: var(--font-main);
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.hire-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hire-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hire-btn:hover {
    box-shadow: 0 0 30px var(--accent-primary);
    transform: scale(1.05);
}


/* UI Overlay */
.overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    /* Increased from 20 to stay above content sections */
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    letter-spacing: 3px;
    letter-spacing: 3px;
    font-weight: 600;
    align-items: center;
    /* Vertically align items */
}

.top-nav {
    display: flex;
    gap: 30px;
    background: rgba(0, 243, 255, 0.05);
    /* Subtle backing */
    padding: 10px 30px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.top-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    opacity: 0.7;
}

.top-nav a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    opacity: 1;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.top-nav a:hover::after {
    width: 100%;
}

.status-indicator {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.main-title {
    text-align: center;
    margin-top: -100px;
    /* Offset to sit above the core */
    pointer-events: none;
    /* Fix: Allow clicks to pass through to content */
}

.main-title h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 15px;
    margin-bottom: 10px;
    background: linear-gradient(to right, white, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
}

.main-title h2 {
    font-size: 1rem;
    color: var(--accent-secondary);
    letter-spacing: 8px;
    opacity: 0;
}

.footer-data {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: monospace;
    font-size: 0.9rem;
    pointer-events: none;
    /* Fix: Allow clicks to pass through */
}

.data-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #888;
}

.scroll-prompt {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.bar-graph.small {
    display: flex;
    gap: 2px;
    height: 20px;
}

.bar-graph .bar {
    width: 5px;
    background: var(--accent-secondary);
    height: 100%;
}

/* Carousel Navigation Buttons and Dots - Add to styles.css after cert-content section */

/* Carousel Buttons */
.cert-carousel-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cert-carousel-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Carousel Dots */
.cert-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.cert-carousel-dots .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-carousel-dots .carousel-dot.active {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
    transform: scale(1.3);
}

.cert-carousel-dots .carousel-dot:hover {
    background: rgba(0, 243, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cert-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .cert-carousel-wrapper {
        gap: 10px;
    }

    .cert-preview {
        height: 180px;
    }
}

/* ========================================
   Redesigned Certificates - Glass Data Plate
   ======================================== */

.certificates-carousel {
    width: 800px;
    /* Matches JS calculation */
    overflow: visible;
}

.certificates-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-card-glass {
    width: 800px;
    /* Matches JS calculation */
    min-width: 800px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 125, 54, 0.3);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 125, 54, 0.05);
    transition: all 0.3s ease;
}

.cert-card-glass:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 50px rgba(255, 125, 54, 0.15),
        inset 0 0 30px rgba(255, 125, 54, 0.1);
    transform: translateY(-5px);
}

/* Header: Status and Link */
.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.cert-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-family: monospace;
    letter-spacing: 2px;
    font-weight: 700;
}

.cert-status.verified {
    color: var(--accent-secondary);
}

.cert-status.pending {
    color: var(--accent-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cert-link-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cert-link-icon:hover {
    color: var(--accent-secondary);
    background: rgba(0, 243, 255, 0.1);
    transform: rotate(45deg);
}

/* Body: Image and Info */
.cert-body {
    display: flex;
    gap: 30px;
}

.cert-thumb {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.cert-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.cert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.cert-info h4 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.cert-issuer,
.cert-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-label {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-family: monospace;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Footer: Tags */
.cert-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-tags {
    display: flex;
    gap: 10px;
}

.glass-tag {
    background: rgba(255, 125, 54, 0.1);
    border: 1px solid rgba(255, 125, 54, 0.3);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: monospace;
    letter-spacing: 1px;
}

/* Add spacing to push experience section lower */
.experience-module {
    margin-top: 100px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .cert-card-glass {
        width: 600px;
        min-width: 600px;
    }

    .certificates-carousel {
        width: 600px;
    }

    .cert-thumb {
        width: 200px;
        height: 140px;
    }

    .cert-info h4 {
        font-size: 1.3rem;
    }
}

/* Mobile Landscape & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .cert-card-glass {
        width: 90vw;
        min-width: 90vw;
        flex-direction: column;
        height: auto;
    }

    .certificates-carousel {
        width: 90vw;
    }

    .cert-body {
        flex-direction: column;
        gap: 15px;
    }

    .cert-thumb {
        width: 100%;
        height: 200px;
    }

    .cert-info {
        text-align: center;
        align-items: center;
    }

    .cert-carousel-wrapper {
        gap: 10px;
    }

    .cert-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .experience-module {
        margin-top: 60px;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    .cert-card-glass {
        width: 95vw;
        min-width: 95vw;
        padding: 20px;
    }

    .certificates-carousel {
        width: 95vw;
    }

    .cert-thumb {
        height: 180px;
    }

    .cert-info h4 {
        font-size: 1.2rem;
    }

    .glass-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .cert-footer {
        display: none;
        /* Hide tags on very small screens if needed, or wrap */
    }

    .cert-tags {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cert-footer {
        display: block;
        /* Restore tags */
    }

    .experience-module {
        margin-top: 40px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Mobile: 320px - 768px */
@media (max-width: 768px) {

    /* Navigation - Hamburger Menu */
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 2, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid var(--accent-secondary);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .skill-item {
        padding: 15px;
    }

    .skill-item img {
        width: 40px;
        height: 40px;
    }

    /* Projects Section */
    .project-carousel-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .project-card {
        min-width: 100%;
        max-width: 100%;
    }

    /* Certificates logic handled above */

    .cert-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Experience */
    .experience-module {
        margin-top: 60px;
    }

    .exp-block {
        padding: 20px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.2rem;
    }

    /* General Spacing */
    .module {
        padding: 40px 20px;
    }
}

/* Tablet: 768px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Certificates */
    .certificates-carousel {
        width: 600px;
    }

    .cert-card-glass {
        width: 600px;
        min-width: 600px;
    }

    .experience-module {
        margin-top: 80px;
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--accent-secondary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .status-indicator {
        display: none;
    }
}

/* ========================================
   MOBILE UI FIXES
   ======================================== */

/* Fix: Background grid doesn't block clicks */
.background-grid {
    pointer-events: none;
}

/* Fix: Hamburger menu clickable */
.hamburger {
    pointer-events: auto !important;
}

/* Fix: Allow overlay UI children to be interactive */
.overlay-ui {
    pointer-events: none;
}

.overlay-ui>* {
    pointer-events: auto;
}

/* Fix: Ensure title and footer don't block content */
.main-title,
.footer-data {
    pointer-events: none !important;
}

/* Fix: Better mobile proportions */
@media (max-width: 768px) {
    .hamburger {
        padding: 8px;
        margin-right: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .main-title h1 {
        font-size: 2.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE FIXES
   ======================================== */

@media (max-width: 768px) {

    /* Fix: Contact section - 2x2 grid instead of 4 columns */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .contact-card {
        min-height: 150px;
        padding: 20px 15px;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Fix: Hamburger larger hit area */
    .hamburger {
        padding: 15px !important;
        margin: 0 5px;
        min-width: 50px;
        min-height: 50px;
        justify-content: center;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
    }

    /* Fix: Hero section - prevent text overlap with HUD */
    .hero-content {
        padding: 20px;
        margin-bottom: 80px;
    }

    .main-title h1 {
        font-size: 2rem !important;
        margin: 20px 0;
    }

    .footer-data {
        bottom: 10px !important;
        left: 10px !important;
        gap: 15px;
        font-size: 0.7rem;
    }

    .data-block {
        min-width: auto;
    }

    /* Fix: Better mobile spacing */
    .module {
        padding: 30px 15px !important;
    }

    .header {
        padding: 10px 15px !important;
    }
}

/* Fix: Reduce hero section size on mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
        padding: 40px 15px !important;
    }

    .main-title h1 {
        font-size: 1.8rem !important;
        margin: 15px 0 !important;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .hero-content .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        margin: 10px 0;
    }

    .profile-image-wrapper {
        width: 120px !important;
        height: 120px !important;
    }

    .profile-container {
        gap: 15px;
    }
}

/* Fix: Even smaller hero text on mobile */
@media (max-width: 768px) {
    .main-title h1 {
        font-size: 1.5rem !important;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        font-size: 1.2rem !important;
    }

    .hero-content .subtitle {
        font-size: 0.8rem !important;
    }

    .hero-content p {
        font-size: 0.75rem !important;
    }
}

/* Add dark backdrop when mobile menu is open */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure mobile menu is above backdrop */
@media (max-width: 768px) {
    .nav-links {
        z-index: 1002 !important;
    }
}

/* Fix: Revert profile pic size and make hero text smaller on mobile */
@media (max-width: 768px) {

    /* Remove profile pic size override - let it stay original size */
    .profile-image-wrapper {
        width: auto !important;
        height: auto !important;
    }

    /* Make hero text even smaller */
    .main-title h1 {
        font-size: 1.5rem !important;
    }

    .hero-content h1 {
        font-size: 1.2rem !important;
    }

    .hero-content .subtitle {
        font-size: 0.75rem !important;
    }

    .hero-content p {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }
}

/* Clickable Contact Cards Styling */
a.contact-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.1);
}

a.contact-card .contact-icon {
    transition: transform 0.3s ease;
}

a.contact-card:hover .contact-icon {
    transform: scale(1.1);
}