/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6C63FF;
    --secondary-color: #1a1a2e;
    --text-color: #e0e0e0;
    --bg-color: #0a0a1a;
    --light-bg: #16213e;
    --card-bg: #1a1a2e;
    --border-color: #2a2a4a;
    --transition: all 0.3s ease;
    --glow-color: rgba(108, 99, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Neural Network Canvas - FIXED */
#neuralNetwork {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto; /* Allows mouse interaction */
    cursor: pointer;
    display: block;
}

/* All content should be above the canvas with pointer-events: none to allow clicks to pass through to canvas */
.navbar,
section,
footer {
    position: relative;
    z-index: 1;
    pointer-events: none; /* This allows clicks to pass through to canvas */
}

/* But inside these containers, interactive elements should have pointer-events: auto */
.nav-container,
.hero-container,
.container,
.contact-form,
.btn,
a,
input,
textarea,
button,
.project-card,
.skill-category {
    pointer-events: auto; /* Makes these elements interactive */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Logo - Image Version */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-logo h2 {
    display: none; /* Hides the text logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    pointer-events: auto; /* Make nav links clickable */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    pointer-events: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    background: transparent;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(108, 99, 255, 0.5);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    pointer-events: auto; /* Make buttons clickable */
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
}

.btn-small:hover {
    background-color: #5a52d5;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    pointer-events: auto;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 30px rgba(108, 99, 255, 0.6);
}

.hero-image {
    animation: fadeIn 1.5s ease;
}

.profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-wrapper img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.3);
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

/* About Section */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* =========================================================
   ABOUT SECTION — SCROLL ANIMATION
   ========================================================= */

/* About section fades in on scroll */
.about {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About text - slides in from left */
.about-text p {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about.visible .about-text p:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.about.visible .about-text p:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

/* Contact cards - pop in with stagger */
.detail-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about.visible .detail-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.5s;
}

.about.visible .detail-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}

.about.visible .detail-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.7s;
}

/* Social icons - fade in from bottom */
.about-social {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about.visible .about-social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Contact Cards - All in One Row */
.about-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the cards */
    gap: 1rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    min-height: 60px;
    flex: 0 1 auto; /* Prevents stretching */
    max-width: 100%;
}

/* Make email card slightly wider if needed */
.detail-item:nth-child(2) {
    flex: 0 1 auto;
}

.detail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    background: rgba(108, 99, 255, 0.05);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 25px;
    text-align: center;
    transition: var(--transition);
}

.detail-item:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.detail-item span {
    font-size: 0.95rem;
    word-break: break-all;
    line-height: 1.4;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Social Icons - Centered Below */
.about-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-social a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
    background: rgba(108, 99, 255, 0.05);
}

/* =========================================================
   HERO TECH STACK — CONNECTED HONEYCOMB
   ========================================================= */

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease;
}

.profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 500px;
}

/* =========================================================
   HONEYCOMB CONTAINER
   ========================================================= */

.tech-stack {
    /*
       Regular flat-top hexagon.

       Width = 140px
       Height ≈ width × 0.866

       Honeycomb center distances:
       Horizontal = width × 0.75 = 105px
       Vertical   = height       = 121px
    */

    --hex-width: 140px;
    --hex-height: 121px;

    --horizontal-step: 105px;
    --vertical-step: 121px;

    position: absolute;

    top: 50%;
    left: 50%;

    width: 400px;
    height: 400px;

    transform: translate(-50%, -50%);

    z-index: 3;
}

/* =========================================================
   BASE HEXAGON
   ========================================================= */

   
.hexagon {
    position: absolute;

    /* Every hexagon begins at exactly the same center */
    top: 50%;
    left: 50%;

    width: var(--hex-width);
    height: var(--hex-height);

    /*
       IMPORTANT:
       This produces the SAME orientation as your screenshot.

                ______
              /        \
             /          \
             \          /
              \________/

       Flat TOP + BOTTOM
       Point LEFT + RIGHT
    */
    clip-path: polygon(
        25% 0%,
        75% 0%,
        100% 50%,
        75% 100%,
        25% 100%,
        0% 50%
    );

    background:
        linear-gradient(
            145deg,
            rgba(30, 33, 48, 0.96),
            rgba(14, 17, 30, 0.96)
        );

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    /* Base centering */
    transform: translate(-50%, -50%);

    transition:
        transform 0.3s ease,
        filter 0.3s ease,
        background 0.3s ease;

    z-index: 2;
}

/* =========================================================
   HONEYCOMB LOAD ANIMATION
   ========================================================= */

.hexagon {
    opacity: 0;
    transform-origin: center;

    animation: hexReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* Individual loading order */

.hexagon.center {
    animation-delay: 0.2s;
}

/* =========================================================
   HEXAGON APPEAR ANIMATION
   DOES NOT BREAK HONEYCOMB POSITION
   ========================================================= */


.hexagon {
    opacity: 0;

    animation:
        hexFadeIn 0.7s cubic-bezier(0.22,1,0.36,1)
        forwards;
}


/* Order */

.hexagon.center {
    animation-delay:0.2s;
}

.hexagon.top {
    animation-delay:0.45s;
}

.hexagon.top-right {
    animation-delay:0.7s;
}

.hexagon.bottom-right {
    animation-delay:0.95s;
}

.hexagon.bottom {
    animation-delay:1.2s;
}

.hexagon.bottom-left {
    animation-delay:1.45s;
}

.hexagon.top-left {
    animation-delay:1.7s;
}



@keyframes hexFadeIn {

    from {

        opacity:0;

        filter:
            blur(10px)
            brightness(0.5);

    }


    60% {

        opacity:1;

        filter:
            blur(0)
            brightness(1.4);

    }


    to {

        opacity:1;

        filter:
            blur(0)
            brightness(1);

    }

}

.hexagon.top-right {
    animation-delay: 0.8s;
}

.hexagon.bottom-right {
    animation-delay: 1.1s;
}

.hexagon.bottom {
    animation-delay: 1.4s;
}

.hexagon.bottom-left {
    animation-delay: 1.7s;
}

.hexagon.top-left {
    animation-delay: 2.0s;
}


/* Animation */

@keyframes hexReveal {

    0% {
        opacity: 0;

        /*
        Starts smaller and slightly blurred
        */
        filter:
            blur(8px)
            brightness(0.5);

        transform:
            translate(-50%, -50%)
            scale(0.3);
    }


    70% {
        opacity: 1;

        filter:
            blur(0)
            brightness(1.2);

        transform:
            translate(-50%, -50%)
            scale(1.05);
    }


    100% {
        opacity: 1;

        filter:
            blur(0)
            brightness(1);

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}

/* =========================================================
   HEXAGON BORDER
   ========================================================= */

/*
   clip-path does not give us a clean normal CSS border,
   so we create another clipped hexagon behind each one.
*/

.hexagon::before {
    content: "";

    position: absolute;
    inset: 0;

    clip-path: inherit;

    background: rgba(185, 190, 220, 0.65);

    z-index: -2;
}

/* Inner shape leaves a thin border visible */
.hexagon::after {
    content: "";

    position: absolute;

    inset: 2px;

    clip-path: inherit;

    background:
        linear-gradient(
            145deg,
            rgba(30, 33, 48, 1),
            rgba(14, 17, 30, 1)
        );

    z-index: -1;
}

/* =========================================================
   ICONS + TEXT
   ========================================================= */

.hexagon i {
    position: relative;

    font-size: 2.35rem;
    color: var(--text-color);

    margin-bottom: 9px;

    z-index: 2;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.hexagon span {
    position: relative;

    font-size: 0.85rem;
    font-weight: 600;

    color: #f4f4f4;

    line-height: 1;

    text-align: center;

    z-index: 2;

    transition: color 0.3s ease;
}

/* =========================================================
   EXACT HONEYCOMB POSITIONS
   ========================================================= */

/*
                  REACT
                    ▲
              ┌─────────┐

       HTML5               NODE
            \             /

                FULL STACK

            /             \
      PYTHON               SQL

                   GIT


   All 6 surrounding hexagons share an EDGE
   with the Full Stack hexagon.
*/

/* ---------- CENTER ---------- */

.hexagon.center {
    transform:
        translate(-50%, -50%);

    z-index: 5;
}

/* ---------- TOP / REACT ---------- */

.hexagon.top {
    transform:
        translate(-50%, -50%)
        translate(
            0,
            calc(-1 * var(--vertical-step))
        );
}

/* ---------- TOP RIGHT / NODE ---------- */

.hexagon.top-right {
    transform:
        translate(-50%, -50%)
        translate(
            var(--horizontal-step),
            calc(var(--vertical-step) * -0.5)
        );
}

/* ---------- BOTTOM RIGHT / SQL ---------- */

.hexagon.bottom-right {
    transform:
        translate(-50%, -50%)
        translate(
            var(--horizontal-step),
            calc(var(--vertical-step) * 0.5)
        );
}

/* ---------- BOTTOM / CSS3 ---------- */

.hexagon.bottom {
    transform:
        translate(-50%, -50%)
        translate(
            0,
            var(--vertical-step)
        );
}

/* ---------- BOTTOM LEFT / PYTHON ---------- */

.hexagon.bottom-left {
    transform:
        translate(-50%, -50%)
        translate(
            calc(-1 * var(--horizontal-step)),
            calc(var(--vertical-step) * 0.5)
        );
}

/* ---------- TOP LEFT / HTML ---------- */

.hexagon.top-left {
    transform:
        translate(-50%, -50%)
        translate(
            calc(-1 * var(--horizontal-step)),
            calc(var(--vertical-step) * -0.5)
        );
}

/* =========================================================
   FULL STACK — LEAD HEXAGON
   ========================================================= */

.hexagon.center {
    filter:
        drop-shadow(0 0 7px rgba(140, 88, 255, 0.65))
        drop-shadow(0 0 18px rgba(108, 99, 255, 0.35));
}

/* Purple outside border */

.hexagon.center::before {
    background:
        linear-gradient(
            135deg,
            #b269ff,
            #6c63ff,
            #9b55ff
        );
}

/* Purple center background */

.hexagon.center::after {
    background:
        linear-gradient(
            145deg,
            rgba(72, 42, 145, 0.95),
            rgba(25, 23, 60, 0.98)
        );
}

.hexagon.center i {
    font-size: 2.7rem;
    color: #ffffff;
}

.hexagon.center span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a96cff;
}

/* =========================================================
   TECHNOLOGY COLORS
   ========================================================= */

/* ALL technology icons show their original colors */
.hexagon:not(.center) i {
    filter: none;
    opacity: 1;
}

.hexagon:not(.center) span {
    color: #666666;
}

/* Full Stack - stays colored */
.hexagon.center i {
    color: #ffffff;
}

.hexagon.center span {
    color: #a96cff;
}

/* React */
.hexagon.top i {
    color: #61DAFB;
}

/* Node.js */
.hexagon.top-right i {
    color: #7FBD42;
}

/* SQL */
.hexagon.bottom-right i {
    color: #5DB4FF;
}

/* CSS3 */
.hexagon.bottom i {
    color: #1572B6;
}

/* Python */
.hexagon.bottom-left i {
    color: #3776AB;
}

/* HTML5 */
.hexagon.top-left i {
    color: #E34F26;
}

/* =========================================================
   HOVER
   ========================================================= */

.hexagon:hover {
    filter:
        drop-shadow(0 0 12px rgba(108, 99, 255, 0.5));

    z-index: 20;
}

.hexagon:hover i {
    transform: scale(1.12);
}

/*
   IMPORTANT:
   We must preserve each translate position when scaling.
*/

.hexagon.center:hover {
    transform:
        translate(-50%, -50%)
        scale(1.07);
}

.hexagon.top:hover {
    transform:
        translate(-50%, -50%)
        translate(
            0,
            calc(-1 * var(--vertical-step))
        )
        scale(1.07);
}

.hexagon.top-right:hover {
    transform:
        translate(-50%, -50%)
        translate(
            var(--horizontal-step),
            calc(var(--vertical-step) * -0.5)
        )
        scale(1.07);
}

.hexagon.bottom-right:hover {
    transform:
        translate(-50%, -50%)
        translate(
            var(--horizontal-step),
            calc(var(--vertical-step) * 0.5)
        )
        scale(1.07);
}

.hexagon.bottom:hover {
    transform:
        translate(-50%, -50%)
        translate(
            0,
            var(--vertical-step)
        )
        scale(1.07);
}

.hexagon.bottom-left:hover {
    transform:
        translate(-50%, -50%)
        translate(
            calc(-1 * var(--horizontal-step)),
            calc(var(--vertical-step) * 0.5)
        )
        scale(1.07);
}

.hexagon.top-left:hover {
    transform:
        translate(-50%, -50%)
        translate(
            calc(-1 * var(--horizontal-step)),
            calc(var(--vertical-step) * -0.5)
        )
        scale(1.07);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-wrapper {
        min-height: 410px;
    }

    .tech-stack {
        --hex-width: 120px;
        --hex-height: 104px;

        --horizontal-step: 90px;
        --vertical-step: 104px;

        width: 340px;
        height: 340px;
    }

    .hexagon i {
        font-size: 1.9rem;
        margin-bottom: 7px;
    }

    .hexagon span {
        font-size: 0.72rem;
    }

    .hexagon.center i {
        font-size: 2.2rem;
    }

    .hexagon.center span {
        font-size: 0.8rem;
    }

    .glow-effect {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 768px) {

    .profile-wrapper {
        min-height: 340px;
    }

    .tech-stack {
        --hex-width: 100px;
        --hex-height: 87px;

        --horizontal-step: 75px;
        --vertical-step: 87px;

        width: 290px;
        height: 290px;
    }

    .hexagon i {
        font-size: 1.55rem;
        margin-bottom: 5px;
    }

    .hexagon span {
        font-size: 0.62rem;
    }

    .hexagon.center i {
        font-size: 1.8rem;
    }

    .hexagon.center span {
        font-size: 0.68rem;
    }

    .glow-effect {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {

    .profile-wrapper {
        min-height: 280px;
    }

    .tech-stack {
        --hex-width: 80px;
        --hex-height: 69px;

        --horizontal-step: 60px;
        --vertical-step: 69px;

        width: 230px;
        height: 230px;
    }

    .hexagon i {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .hexagon span {
        font-size: 0.5rem;
    }

    .hexagon.center i {
        font-size: 1.35rem;
    }

    .hexagon.center span {
        font-size: 0.55rem;
    }

    .glow-effect {
        width: 240px;
        height: 240px;
    }
}

/* =========================================================
   HOVER COLORS
   ========================================================= */

.hexagon:hover .fa-html5 { color: #E34F26; }
.hexagon:hover .fa-react { color: #61DAFB; }
.hexagon:hover .fa-node-js { color: #339933; }
.hexagon:hover .fa-python { color: #3776AB; }
.hexagon:hover .fa-database { color: #4479A1; }
.hexagon:hover .fa-git-alt { color: #F05032; }
.hexagon:hover .fa-code { color: #6C63FF; }

/* Responsive */
@media (max-width: 850px) {
    .about-details {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-item {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .detail-item span {
        white-space: normal; /* Allows text to wrap on mobile */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .detail-item {
        padding: 0.8rem 1.2rem;
        min-height: 50px;
    }
    
    .detail-item i {
        font-size: 1rem;
        width: 20px;
    }
    
    .detail-item span {
        font-size: 0.85rem;
    }
    
    .about-social a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Projects Section - With Reveal Animations */
.projects {
    background: linear-gradient(0deg, transparent 0%, rgba(26, 26, 46, 0.5) 100%);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Project Card Reveal Animations */
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    pointer-events: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 550px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
}

.project-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.3s; }
.project-card:nth-child(3) { transition-delay: 0.5s; }

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.3);
}

/* Image wrapper with reveal animation */
.image-wrapper {
    width: 100%;
    height: 60%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-color);
    flex-shrink: 0;
    position: relative;
}

/* Image Reveal - Slides down from top */
.reveal-image {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.reveal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
}

.reveal-image.reveal img {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .reveal-image img {
    transform: scale(1.05);
}

/* Text Reveal - Fades in from bottom */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Text delay after image */
.reveal-card.reveal .reveal-text {
    transition-delay: 0.3s;
}

.project-info {
    padding: 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.project-info p {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.project-tags span {
    background: rgba(108, 99, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: var(--transition);
}

.project-tags span:hover {
    background: rgba(108, 99, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.project-info .btn-small {
    align-self: flex-start;
    margin-top: auto;
}

/* Skills Section */
.skills {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    pointer-events: auto;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.2);
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 0.9);
}

.skill-category:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-item {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: skillFadeIn 0.5s forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

.skill-item:nth-child(1) { --delay: 1; }
.skill-item:nth-child(2) { --delay: 2; }
.skill-item:nth-child(3) { --delay: 3; }
.skill-item:nth-child(4) { --delay: 4; }

@keyframes skillFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-item span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.skill-item:hover span {
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #a29bfe);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
    position: relative;
    width: 0%;
}

/* Glow effect on the bar */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 10px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpModal 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-color);
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0 0.5rem;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-field {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.modal-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.modal-field p {
    color: var(--text-color);
    font-size: 1rem;
    word-break: break-word;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    min-width: 120px;
    text-align: center;
}

/* Animations */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Mobile Responsive */
@media (max-width: 480px) {
    .modal-container {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-field {
        padding: 0.6rem 0.8rem;
    }
}

/* Peers & Professionals Review Section */
.reviews {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.5) 0%, transparent 100%);
}

.reviews-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

.review-content {
    flex: 1;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}

.review-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Review Author */
.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column; /* ← Forces vertical stacking */
    gap: 0.1rem;
    flex: 1;
}

.author-info h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.author-position {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    display: block; /* ← Ensures it's on its own line */
}

.author-company {
    color: #aaa;
    font-size: 0.8rem;
    display: block; /* ← Ensures it's on its own line */
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.author-info h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: #aaa;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-card {
        min-height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reviews {
        padding: 60px 0;
    }
    
    .review-card {
        padding: 1.2rem;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(0deg, transparent 0%, rgba(26, 26, 46, 0.5) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: #aaa;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    pointer-events: auto;
    cursor: pointer;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
    transform: translateX(10px);
    background: rgba(108, 99, 255, 0.05);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    transition: var(--transition);
}

.contact-item:hover i {
    color: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.contact-item p {
    margin-bottom: 0;
    color: #aaa;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    pointer-events: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    pointer-events: auto;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(108, 99, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
    transform: scale(1.02);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    pointer-events: auto;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-image {
        height: 35px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .profile-wrapper img {
        max-width: 300px;
    }

    .project-card {
        min-height: 450px;
    }
    
    .image-wrapper {
        height: 50%;
        min-height: 200px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .logo-image {
        height: 30px;
    }

    .project-card {
        min-height: 400px;
    }
    
    .image-wrapper {
        height: 45%;
        min-height: 180px;
    }
    
    .project-info {
        padding: 1.2rem;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        padding: 1rem 1.5rem;
        min-height: 55px;
    }
    
    .detail-item span {
        font-size: 0.9rem;
    }
}