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

        body {
            font-family: var(--font-sans);
            font-weight: var(--font-weight-body);
            line-height: 1.6;
            color: var(--text-dark);
            background-color: #ffffff;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: auto;
            /* background-color: var(--bg-light) */
        }       


        /* Hero + Nav Container with Particles */
        .hero-nav-container {
            position: relative;
            background: #ffffff;
        }

        #tsparticles {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
            pointer-events: auto;
        }

        nav {
            position: sticky;
            position: -webkit-sticky;  /* Safari support */
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            min-height: var(--nav-height);
            height: var(--nav-height);
            /* Sit on top of the hero so the first screen is a full viewport */
            margin-bottom: calc(-1 * var(--nav-height));
            /* background-color: white; */
            background-color: rgba(255, 255, 255, 0.40);  /* Slight transparency */
            /* backdrop-filter: blur(10px); */
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* box-shadow: 0 2px 8px rgba(0,0,0,0.08);           */            
            z-index: 1000;           
        }

        .nav-brand {
            font-size: 1.3rem;
            font-weight: var(--font-weight-bold);
            color: var(--primary-color);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-dark);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        /* Hero Section with Particles */
        .hero {
            /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white; */
            background: #ffffff;  /*Changed from gradient to white*/
            /* background: transparent; */
            color: var(--text-dark);  /* Changed from white to dark text */
            padding: 0px 2rem;
            padding-bottom: 80px;  /* Only bottom padding */
            text-align: center;
            position: relative;
            /* overflow: visible; */
            min-height: 100vh;
            min-height: 100dvh;
            min-height: calc(100dvh + 1px);
            display: flex;
            align-items: center;
            /* flex-direction: column;  */
            justify-content: center;
            z-index: 2;
        }       



        .hero-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: fit-content;
            max-width: min(1200px, 100%);
            margin: 100px auto 0;
            pointer-events: none;
        }


        .hero-logo {
            width: 550px;
            max-width: 90%;
            display: block;
            height: auto;
            margin-bottom: 0.7rem;
            margin-left: 25px;
            animation: fadeInScale 0.8s ease-in-out;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
            pointer-events: none;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: var(--font-weight-semibold);
            margin: 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            animation: fadeIn 1s ease-in-out 0.3s both;
        }

        .hero-tagline {
            font-size: 1.15rem;
            font-weight: var(--font-weight-body);
            color: var(--text-dark);
            margin-top: 0rem;
            width: fit-content;
            max-width: min(800px, calc(100vw - 4rem));
            line-height: 1.7;
            animation: fadeIn 1.2s ease-in-out 0.5s both;
            text-align: center;
            padding: 0 2rem;
            pointer-events: none;
        }

        /* Subtle entrance animations */
        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Hidden Hero Content */
        .hero h1 {
            display: none;
            font-size: 3rem;
            margin-bottom: 1rem;
            font-weight: var(--font-weight-bold);
        }

        .hero p {
            /* display: none; */
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: none;
            /* display: inline-block; */
            background-color: white;
            color: var(--primary-color);
            padding: 14px 32px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: var(--font-weight-semibold);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .cta-button:hover {
            display: none;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        /* Main Content — full-bleed sections, inner column via CSS grid */
        main {
            max-width: none;
            margin: 0;
            padding: 0;
        }

        section {
            padding: 60px 0;
        }

        main section {
            padding: 5rem 0;
            border-bottom: none;
            display: grid;
            grid-template-columns: 1fr min(var(--content-width), calc(100% - 4rem)) 1fr;
        }

        main section > * {
            grid-column: 2;
        }

        main section.section-wide {
            grid-template-columns: 1fr min(var(--content-width-wide), calc(100% - 4rem)) 1fr;
        }

        main section.section-band {
            background-color: var(--bg-band);
        }

        .section-band .card,
        .section-band .portfolio-card,
        .section-band .portfolio-card__media,
        .section-band .portfolio-card__content {
            background-color: #ffffff;
        }

        h2 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
            color: var(--text-dark);
            position: relative;
            display: inline-block;
        }

        main section > h2 {
            display: block;
            text-align: center;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            border-radius: 2px;
        }

        main section > h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        /* About Section - Photo and Text Layout */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr; /* Photo takes 1/3, text takes 2/3 */
            gap: 3rem;
            align-items: start;
            margin-top: 2rem;
            margin-bottom: 3rem;  /* Space before Key Strengths */
        }

        .about-photo {
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .profile-photo {
            width: 100%;
            max-width: 300px;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .profile-photo:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
        }

        .about-text {
            display: flex;
            flex-direction: column;
        }


        .about-text p {
            margin-bottom: 1.2rem;
            color: var(--text-dark);
            font-size: 1rem;
            line-height: 1.75;
            font-weight: var(--font-weight-body);
        }

        /* Key Strengths Section - Now Full Width Below */
        .about-highlights {
            background: var(--bg-light);
            padding: 2rem;
            border-radius: 8px;
            border-left: 4px solid var(--primary-color);
            margin-top: 2rem;  /* Space from photo/text section */
        }

        .about-highlights h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .about-highlights ul {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .about-highlights li {
            padding: 0.6rem 0;
            color: var(--text-light);
            display: flex;
            align-items: center;
        }

        .about-highlights li::before {
            content: '✓';
            color: var(--primary-color);
            font-weight: var(--font-weight-bold);
            margin-right: 0.8rem;
            font-size: 1.2rem;
            flex-shrink: 0;
        }


        /* Tech Stack Section */
        .tech-stack {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .tech-category {
            background: var(--bg-light);
            padding: 1.8rem;
            border-radius: 8px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .tech-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
        }

        .tech-category h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .tech-tag {
            background: white;
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            border: 1px solid var(--primary-color);
        }


        /* Portfolio Grid Layout — knobs live in css/theme.css */
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(var(--portfolio-columns), minmax(0, 1fr));
            gap: var(--portfolio-gap);
            margin-top: 2rem;
            align-items: start;
        }

        /* Portfolio Card - 2D reveal (avoids 3D transform text blur) */
        .portfolio-card {
            position: relative;
            width: 100%;
            aspect-ratio: var(--portfolio-card-aspect-ratio);
            height: auto;
            background-color: var(--bg-light);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            isolation: isolate;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
            transition: box-shadow 0.3s ease;
            cursor: pointer;
        }

        a.portfolio-card {
            text-decoration: none;
            color: inherit;
        }

        .portfolio-card svg {
            width: var(--portfolio-icon-size);
            height: var(--portfolio-icon-size);
            fill: var(--primary-color);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .portfolio-card__media {
            position: absolute;
            inset: 0 0.5rem;
            background-color: var(--bg-light);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .portfolio-card__media img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: var(--portfolio-image-fit);
            object-position: var(--portfolio-image-position);
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .portfolio-card__media img.is-active {
            opacity: 1;
        }

        .portfolio-card:hover {
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
        }

        .portfolio-card__content {
            position: absolute;
            inset: 0;
            padding: 1.5rem;
            box-sizing: border-box;
            background-color: var(--bg-light);
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            pointer-events: none;
        }

        .portfolio-card:hover .portfolio-card__content {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .portfolio-card__title {
            margin: 0 0 0.75rem 0;
            font-size: 1.1rem;
            color: var(--primary-color);
            font-weight: var(--font-weight-semibold);
            line-height: 1.35;
        }

        .portfolio-card:hover svg,
        .portfolio-card:hover .portfolio-card__media {
            opacity: 0;
            transform: scale(0.92);
        }

        .portfolio-card__description {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-light);
            line-height: 1.5;
            font-weight: var(--font-weight-body);
            text-align: justify;
            text-justify: inter-word;
        }

        .portfolio-card__description + .portfolio-card__description {
            margin-top: 0.75rem;
        }


        /* Card Styles - FROM UIVERSE.IO */
        .card {
            background: var(--bg-light);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.5rem;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
        }

        .card svg {
            width: 60px;
            height: 60px;
            color: var(--primary-color);
            flex-shrink: 0;
        }

        .card__content {
            flex: 1;
        }

        .card__title {
            font-size: 1.1rem;
            font-weight: var(--font-weight-semibold);
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .card__description {
            font-size: 0.95rem;
            color: var(--text-light);
            line-height: 1.6;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
            margin-top: 0;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .social-links a {
            color: white;
            text-decoration: none;
            font-weight: var(--font-weight-semibold);
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: var(--accent-color);
        }

        .footer-text {
            color: rgba(255,255,255,0.8);
            font-size: 0.95rem;
        }

        /* Responsive */
        @media (max-width: 1100px) {
            .portfolio-grid {
                grid-template-columns: repeat(var(--portfolio-columns-medium), minmax(0, 1fr));
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .hero-logo {
                width: 90%;
                max-width: 400px; /* New */
            }

            .hero-subtitle {
                font-size: 1.2rem; /* New */
            }

            .hero-tagline {
                font-size: 1rem;
                padding: 0 1rem; /* New */
            }

            .about-content {
                grid-template-columns: 1fr;
            }

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

            section,
            main section {
                padding: 3rem 0;
            }

            .card {
                flex-direction: column;
                text-align: center;
            }

            .card svg {
                width: 50px;
                height: 50px;
            }

            .cards-container {
                grid-template-columns: 1fr;
            }

            .portfolio-grid {
                grid-template-columns: repeat(var(--portfolio-columns-narrow), minmax(0, 1fr));
            }
        }


        /* Animated Social Buttons */
        .social-buttons-container {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .social-button {
            position: relative;
        }

        .social-button button {
            position: relative;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .social-button .floater {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-button button:hover .floater {
            top: -32px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
        }

        .social-button .icon {
            position: relative;
            z-index: 10;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid;
            border-radius: 50%;
        }

        /* Individual button colors */
        .social-button.github .floater {
            background-color: var(--text-dark);
        }

        .social-button.github .icon {
            border-color: var(--text-dark);
        }

        .social-button.linkedin .floater {
            background-color: #3b82f6;
        }

        .social-button.linkedin .icon {
            border-color: #3b82f6;
        }

        .social-button.email .floater {
            background-color: #f87171;
        }

        .social-button.email .icon {
            border-color: #f87171;
        }

        .social-button svg path {
            fill: white;
            transition: fill 0.3s ease;
        }

        .social-button button:hover svg path {
            fill: #171543;
        }
