* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #e0aaff;
            --secondary: #c77dff;
            --accent: #9d4edd;
            --deep: #5a189a;
            --darker: #3c096c;
            --darkest: #240046;
            --deepest: #10002b;
        }

        body {
            font-family: 'Inter', 'Segoe UI', sans-serif;
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
            overflow-x: hidden;
            cursor: none;
        }

        body.dark-mode {
            background: var(--deepest);
            color: var(--primary);
        }

        body.light-mode {
            background: #ffffff;
            color: var(--deepest);
        }

        /* Loading Animation */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--deepest) 0%, var(--darkest) 50%, var(--darker) 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loading-screen.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-container {
            position: relative;
            width: 200px;
            height: 200px;
        }

        .loader-circle {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 4px solid transparent;
            border-top-color: var(--primary);
            border-right-color: var(--secondary);
            animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
        }

        .loader-circle:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-top-color: var(--secondary);
            border-right-color: var(--accent);
            animation-duration: 2s;
            animation-direction: reverse;
        }

        .loader-circle:nth-child(3) {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            border-top-color: var(--accent);
            border-right-color: var(--deep);
            animation-duration: 1.8s;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .loader-text {
            margin-top: 3rem;
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .loading-dots {
            display: inline-flex;
            gap: 0.3rem;
            margin-left: 0.5rem;
        }

        .loading-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            animation: bounce 1.4s ease-in-out infinite;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes bounce {
            0%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-15px);
            }
        }

        .loading-progress {
            width: 300px;
            height: 4px;
            background: rgba(157, 78, 221, 0.2);
            border-radius: 10px;
            margin-top: 2rem;
            overflow: hidden;
        }

        .loading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
            background-size: 200% 100%;
            animation: loading 2s ease-in-out infinite;
            border-radius: 10px;
        }

        @keyframes loading {
            0% {
                width: 0%;
                background-position: 0% 50%;
            }
            50% {
                width: 70%;
                background-position: 100% 50%;
            }
            100% {
                width: 100%;
                background-position: 0% 50%;
            }
        }


        /* Custom Cursor */
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--secondary);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            transition: all 0.1s ease;
            transform: translate(-50%, -50%);
        }

        .cursor-follower {
            width: 40px;
            height: 40px;
            background: var(--accent);
            opacity: 0.3;
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            transition: all 0.15s ease;
            transform: translate(-50%, -50%);
        }

        .cursor.hover {
            width: 50px;
            height: 50px;
            background: rgba(157, 78, 221, 0.2);
        }

        /* Particles Canvas */
        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* Navigation */
        nav {
            position: fixed;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(20px);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        body.dark-mode nav {
            background: rgba(16, 0, 43, 0.95);
            border-bottom: 1px solid rgba(224, 170, 255, 0.1);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        body.light-mode nav {
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid rgba(157, 78, 221, 0.1);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
            z-index: 1001;
            flex-shrink: 0;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
            font-weight: 500;
        }

        body.dark-mode .nav-links a {
            color: var(--primary);
        }

        body.light-mode .nav-links a {
            color: var(--deeper);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: 2px solid var(--accent);
            border-radius: 50px;
            padding: 0.5rem 1.2rem;
            cursor: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
        }

        body.dark-mode .theme-toggle {
            color: var(--primary);
        }

        body.light-mode .theme-toggle {
            color: var(--deeper);
        }

        .theme-toggle:hover {
            background: var(--accent);
            color: white;
            transform: scale(1.05);
        }

        /* Hamburger Menu - Hidden by default on desktop */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1002;
            position: relative;
            flex-shrink: 0;
        }

        .menu-toggle span {
            width: 28px;
            height: 3px;
            transition: all 0.3s ease;
            border-radius: 3px;
            display: block;
        }

        body.dark-mode .menu-toggle span {
            background: var(--primary);
        }

        body.light-mode .menu-toggle span {
            background: var(--deepest);
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: translateX(-20px);
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Mobile Navigation Only */
        @media (max-width: 768px) {
            nav {
                padding: 1rem 4%;
                position: fixed;
            }

            .logo {
                font-size: 1.3rem;
                order: 1;
            }

            .menu-toggle {
                display: flex;
                order: 2;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                gap: 0;
                padding: 0;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
                box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
                order: 3;
            }

            body.dark-mode .nav-links {
                background: rgba(16, 0, 43, 0.98);
            }

            body.light-mode .nav-links {
                background: rgba(255, 255, 255, 0.98);
            }

            .nav-links.active {
                max-height: 600px;
                opacity: 1;
                padding: 1rem 0;
            }

            .nav-links li {
                width: 100%;
                text-align: center;
                opacity: 0;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .nav-links.active li {
                opacity: 1;
                transform: translateY(0);
            }

            .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
            .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
            .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
            .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
            .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
            .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
            .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
            .nav-links.active li:nth-child(8) { transition-delay: 0.45s; }

            .nav-links a {
                display: block;
                padding: 1rem 2rem;
                font-size: 1.1rem;
                width: 100%;
            }

            .nav-links a::after {
                display: none;
            }

            body.dark-mode .nav-links a:hover {
                background: rgba(157, 78, 221, 0.2);
                color: var(--secondary);
            }

            body.light-mode .nav-links a:hover {
                background: rgba(157, 78, 221, 0.1);
                color: var(--accent);
            }

            .theme-toggle {
                width: calc(100% - 4rem);
                margin: 1rem 2rem;
            }

            .hero {
                padding: 3rem 5% 2rem;
            }
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 5% 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1200px;
            text-align: center;
            z-index: 1;
        }

        .hero h1 {
            font-size: 4.5rem;
            margin-bottom: 1rem;
            font-weight: 800;
            letter-spacing: -2px;
        }

        .hero h1 .typing-text {
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }

        .cursor-blink {
            display: inline-block;
            width: 3px;
            height: 1.2em;
            background: var(--secondary);
            margin-left: 5px;
            animation: blink 1s infinite;
            vertical-align: middle;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .hero .dynamic-text {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            opacity: 0.9;
            min-height: 2.5rem;
            font-weight: 600;
        }

        .hero .subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.8;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .btn {
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            cursor: none;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
        }

        .btn-secondary {
            border: 2px solid var(--accent);
        }

        body.dark-mode .btn-secondary {
            color: var(--primary);
        }

        body.light-mode .btn-secondary {
            color: var(--deeper);
        }

        .btn-secondary:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-3px);
        }

        /* Section Styles */
        section {
            padding: 6rem 5%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .section-title {
            font-size: 3rem;
            margin-bottom: 3rem;
            text-align: center;
            font-weight: 800;
            letter-spacing: -1px;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Skills Constellation */
        .skills-constellation {
            position: relative;
            height: 600px;
            margin: 3rem 0;
        }

        .skill-node {
            position: absolute;
            padding: 1.5rem 2rem;
            border-radius: 20px;
            cursor: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        body.dark-mode .skill-node {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
            box-shadow: 0 8px 32px rgba(157, 78, 221, 0.2);
        }

        body.light-mode .skill-node {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
            box-shadow: 0 8px 32px rgba(157, 78, 221, 0.15);
        }

        .skill-node:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 40px rgba(157, 78, 221, 0.4);
        }

        .skill-node.active {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            border-color: var(--primary);
        }

        .skill-node h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .skill-node p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        canvas#constellation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        /* Responsive adjustments for skills on mobile */
        @media (max-width: 576px) {
            .skills-constellation {
                 height: auto; /* Let container adjust */
                 padding: 2rem;
                 position: relative;
            }
            .skills-constellation canvas {
                 display: none;  /* Optionally hide canvas on mobile */
            }
            .skill-node {
                 position: static;
                 width: 100%;
                 margin: 1rem 0;
                 text-align: center;
                 transform: none;
            }
        }

        /* 3D Flip Projects */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            perspective: 1000px;
        }

        .project-card-wrapper {
            height: 450px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
        }

        .project-card-wrapper:hover {
            transform: rotateY(180deg);
        }

        .project-card-front,
        .project-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 25px;
            overflow: hidden;
        }

        .project-card-front {
            display: flex;
            flex-direction: column;
        }

        .project-card-front .project-image {
            flex: 0 0 50%;
            overflow: hidden;
        }

        .project-card-front .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .project-card-front .project-content {
            flex: 1;
        }

        .project-card-back {
            transform: rotateY(180deg);
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        body.dark-mode .project-card-back {
            background: rgba(157, 78, 221, 0.2);
            border: 2px solid rgba(224, 170, 255, 0.3);
            backdrop-filter: blur(10px);
        }

        body.light-mode .project-card-back {
            background: rgba(157, 78, 221, 0.1);
            border: 2px solid rgba(157, 78, 221, 0.3);
            backdrop-filter: blur(10px);
        }

        .project-card-wrapper:hover .project-card-front {
            box-shadow: 0 0 40px var(--accent), 0 0 80px var(--secondary);
        }

        .project-image {
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            background: linear-gradient(135deg, rgba(0,0,0,0.2), transparent);
        }

        .project-content {
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
            flex-grow: 1;
        }

        .project-content h3 {
            color: white;
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
        }

        .project-content p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.95rem;
        }

        .project-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .tag {
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-weight: 600;
        }

        .project-back-content h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        .project-back-content p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .project-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .project-link {
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            background: var(--accent);
            color: white;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        /* Timeline */
        .timeline {
            position: relative;
            max-width: 900px;
            margin: 3rem auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: 100%;
            background: linear-gradient(to bottom, var(--secondary), var(--accent));
        }

        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            cursor: none;
        }

        .timeline-content {
            width: 45%;
            padding: 2rem;
            border-radius: 20px;
            position: relative;
            transition: all 0.5s ease;
            display: flex;
            flex-direction: column;
            min-height: 250px;  /* increased default height */
            padding: 2.5rem;    /* increased padding */
        }

        .timeline-content.expanded {
            min-height: auto;
            max-height: none;
            overflow: visible;
            transition: all 0.5s ease;
        }

        body.dark-mode .timeline-content {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .timeline-content {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-left: 0;
            margin-right: auto;
        }

        .timeline-item:nth-child(even) .timeline-content {
            margin-left: auto;
            margin-right: 0;
        }

        .timeline-dot {
            display: none;
        }

        .timeline-item:hover .timeline-dot {
            transform: translateX(-50%) scale(1.2);
            box-shadow: 0 0 25px var(--secondary);
        }
        
        .timeline-item:hover .timeline-dot::before {
            content: '↗';
            position: absolute;
            top: -35px;
            left: 50%;
            transform: translateX(-50%) rotate(0deg);
            font-size: 24px;
            color: var(--accent);
            opacity: 0;
            animation: circleArrow 2s infinite;
            pointer-events: none;
        }
        
        @keyframes circleArrow {
            0% { 
                opacity: 0;
                transform: translateX(-50%) translateY(10px) rotate(0deg);
            }
            30% { 
                opacity: 1;
                transform: translateX(-50%) translateY(0) rotate(180deg);
            }
            70% { 
                opacity: 1;
                transform: translateX(-50%) translateY(0) rotate(180deg);
            }
            100% { 
                opacity: 0;
                transform: translateX(-50%) translateY(-10px) rotate(360deg);
            }
        }

        .timeline-content h3 {
            color: var(--secondary);
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
        }

        .timeline-content .year {
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .timeline-content p {
            opacity: 0.8;
            line-height: 1.7;
        }

        .timeline-content .initial-content {
            display: block;
            transition: all 0.3s ease;
        }

        .timeline-content .detailed-content {
            display: none;
            margin-top: 1rem;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.5s ease;
        }

        .timeline-content.expanded .detailed-content {
            display: block;
            max-height: 1000px; /* Sufficiently large value for full content */
            opacity: 1;
            transition: all 0.5s ease;
        }

        .timeline-content.expanded .initial-content {
            display: none;
        }

        .expand-btn {
            margin-top: 1rem;
            padding: 0.5rem 1rem;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 20px;
            cursor: none;
            font-weight: 600;
            transition: all 0.3s ease;
            align-self: flex-start;
            position: relative;
            overflow: hidden;
        }

        .expand-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        .expand-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }

        .expand-btn:hover::after {
            width: 300px;
            height: 300px;
        }

        /* Blog Section */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }

        .blog-card {
            border-radius: 25px;
            overflow: hidden;
            transition: all 0.4s ease;
            position: relative;
        }

        body.dark-mode .blog-card {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .blog-card {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .blog-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(157, 78, 221, 0.4);
        }

        .blog-thumbnail {
            height: 200px;
            background: linear-gradient(135deg, var(--accent), var(--deep));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            position: relative;
            overflow: hidden;
        }

        /* Added rule: make blog thumbnails fit in their container */
        .blog-thumbnail img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .blog-thumbnail::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .blog-card:hover .blog-thumbnail::before {
            left: 100%;
        }

        .blog-content {
            padding: 2rem;
        }

        .blog-content h3 {
            color: var(--secondary);
            font-size: 1.4rem;
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .blog-content p {
            opacity: 0.85;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .blog-meta {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .blog-btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .blog-btn:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
        }

        .coming-soon {
            display: inline-block;
            padding: 0.4rem 1rem;
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
            border: 2px solid #ffc107;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* Advocacy Section */
        .advocacy-intro {
            text-align: center;
            max-width: 900px;
            margin: 0 auto 4rem;
            font-size: 1.2rem;
            line-height: 1.9;
        }

        .impact-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }

        .stat-card {
            text-align: center;
            padding: 2rem;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        body.dark-mode .stat-card {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .stat-card {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }

        .event-card {
            padding: 2rem;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        body.dark-mode .event-card {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .event-card {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
        }

        .event-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .event-card h3 {
            color: var(--secondary);
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .event-card p {
            opacity: 0.85;
            line-height: 1.7;
        }

        /* Gallery */
        .gallery-filters {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }

        .filter-btn {
            padding: 0.8rem 1.5rem;
            border: 2px solid var(--accent);
            background: none;
            border-radius: 25px;
            cursor: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        body.dark-mode .filter-btn {
            color: var(--primary);
        }

        body.light-mode .filter-btn {
            color: var(--deeper);
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-2px);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .gallery-item {
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            cursor: none;
            transition: all 0.3s ease;
        }

        body.dark-mode .gallery-item {
            background: rgba(157, 78, 221, 0.15);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .gallery-item {
            background: rgba(157, 78, 221, 0.08);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 40px rgba(157, 78, 221, 0.4);
        }

        .gallery-image {
            height: 250px;
            background: linear-gradient(135deg, var(--accent), var(--deep));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            position: relative;
            overflow: hidden;
        }

        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .gallery-caption {
            padding: 1.5rem;
        }

        .gallery-caption h4 {
            color: var(--secondary);
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .gallery-caption p {
            opacity: 0.8;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .gallery-category {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.4rem 1rem;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        /* Contact Form */
        .contact-form {
            max-width: 600px;
            margin: 3rem auto;
        }

        .form-group {
            margin-bottom: 2rem;
            position: relative;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1.2rem;
            border-radius: 15px;
            border: 2px solid transparent;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        body.dark-mode .form-group input,
        body.dark-mode .form-group textarea {
            background: rgba(157, 78, 221, 0.1);
            color: var(--primary);
            border-color: rgba(224, 170, 255, 0.2);
        }

        body.light-mode .form-group input,
        body.light-mode .form-group textarea {
            background: rgba(157, 78, 221, 0.05);
            color: var(--deepest);
            border-color: rgba(157, 78, 221, 0.2);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
            transform: translateY(-2px);
        }

        .form-group label {
            position: absolute;
            top: 1.2rem;
            left: 1.2rem;
            transition: all 0.3s ease;
            pointer-events: none;
            opacity: 0.7;
        }

        .form-group input:focus + label,
        .form-group input:not(:placeholder-shown) + label,
        .form-group textarea:focus + label,
        .form-group textarea:not(:placeholder-shown) + label {
            top: -0.8rem;
            left: 0.8rem;
            font-size: 0.85rem;
            color: var(--accent);
            background: var(--deepest);
            padding: 0 0.5rem;
        }

        body.light-mode .form-group input:focus + label,
        body.light-mode .form-group input:not(:placeholder-shown) + label,
        body.light-mode .form-group textarea:focus + label,
        body.light-mode .form-group textarea:not(:placeholder-shown) + label {
            background: white;
        }

        textarea {
            min-height: 150px;
            resize: vertical;
        }

        .submit-btn {
            width: 100%;
            padding: 1.2rem;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: none;
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
        }

        /* Social Links */
        .social-links {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .social-link {
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        body.dark-mode .social-link {
            background: rgba(157, 78, 221, 0.15);
            color: var(--primary);
            border: 2px solid rgba(224, 170, 255, 0.3);
        }

        body.light-mode .social-link {
            background: rgba(157, 78, 221, 0.08);
            color: var(--deeper);
            border: 2px solid rgba(157, 78, 221, 0.3);
        }

        .social-link:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
        }

        /* Scroll Reveal */
        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 3rem 2rem;
            opacity: 0.7;
            margin-top: 4rem;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            section {
                padding: 5rem 4%;
            }

            .hero h1 {
                font-size: 3.5rem;
            }

            .section-title {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 992px) {
            .hero h1 {
                font-size: 3rem;
            }

            .hero .dynamic-text {
                font-size: 1.5rem;
            }

            .nav-links {
                gap: 1.5rem;
                font-size: 0.95rem;
            }

            .projects-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 2rem;
            }

            .blog-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }

            .timeline-content {
                width: 40%;
            }
        }

        @media (max-width: 768px) {
            nav {
                padding: 1rem 4%;
                position: relative;
            }

            .logo {
                font-size: 1.3rem;
                order: 1;
            }

            .menu-toggle {
                display: flex;
                order: 2;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                gap: 0;
                padding: 0;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
                box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
                order: 3;
            }

            body.dark-mode .nav-links {
                background: rgba(16, 0, 43, 0.98);
            }

            body.light-mode .nav-links {
                background: rgba(255, 255, 255, 0.98);
            }

            .nav-links.active {
                max-height: 600px;
                opacity: 1;
                padding: 1rem 0;
            }

            .nav-links li {
                width: 100%;
                text-align: center;
                opacity: 0;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .nav-links.active li {
                opacity: 1;
                transform: translateY(0);
            }

            .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
            .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
            .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
            .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
            .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
            .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
            .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
            .nav-links.active li:nth-child(8) { transition-delay: 0.45s; }

            .nav-links a {
                display: block;
                padding: 1rem 2rem;
                font-size: 1.1rem;
                width: 100%;
            }

            .nav-links a::after {
                display: none;
            }

            body.dark-mode .nav-links a:hover {
                background: rgba(157, 78, 221, 0.2);
                color: var(--secondary);
            }

            body.light-mode .nav-links a:hover {
                background: rgba(157, 78, 221, 0.1);
                color: var(--accent);
            }

            .theme-toggle {
                width: calc(100% - 4rem);
                margin: 1rem 2rem;
            }

            .hero {
                padding: 0.5rem 5% 2rem;
            }
        }

        /* Hero Section */
        .hero {
            min-height: 95vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 5% 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1200px;
            text-align: center;
            z-index: 1;
        }

        .hero h1 {
            font-size: 4.5rem;
            margin-bottom: 1rem;
            font-weight: 800;
            letter-spacing: -2px;
        }

        .hero h1 .typing-text {
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }

        .cursor-blink {
            display: inline-block;
            width: 3px;
            height: 1.2em;
            background: var(--secondary);
            margin-left: 5px;
            animation: blink 1s infinite;
            vertical-align: middle;
        }

            .timeline-dot {
                left: 30px;
            }

            .contact-form {
                padding: 0 1rem;
            }

            .social-links {
                gap: 1rem;
            }

            .social-link {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }

            .cursor, .cursor-follower {
                display: block;
            }

        @media (max-width: 576px) {
            nav {
                padding: 1rem 2%;
                position: fixed;
            }

            .nav-links {
                gap: 0.5rem;
                font-size: 0.75rem;
            }

            .theme-toggle {
                padding: 0.3rem 0.8rem;
                font-size: 0.75rem;
            }

            .hero {
                padding: 0.5rem 4% 2rem;
            }

            .hero h1 {
                font-size: 2rem;
                letter-spacing: -1px;
            }

            .hero .dynamic-text {
                font-size: 1.1rem;
                min-height: 2rem;
            }

            .hero .subtitle {
                font-size: 0.95rem;
            }

            section {
                padding: 3rem 4%;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .skill-node {
                padding: 1.2rem 1.5rem;
            }

            .skill-node h3 {
                font-size: 1.1rem;
            }

            .project-card-wrapper {
                height: 380px;
            }

            .project-content {
                padding: 1.5rem;
            }

            .project-content h3 {
                font-size: 1.3rem;
            }

            .project-back-content {
                padding: 1rem;
            }

            .project-back-content h3 {
                font-size: 1.3rem;
            }

            .blog-content h3 {
                font-size: 1.2rem;
            }

            .impact-stats {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .stat-label {
                font-size: 1rem;
            }

            .event-card {
                padding: 1.5rem;
            }

            .event-icon {
                font-size: 2.5rem;
            }

            .advocacy-intro {
                font-size: 1.1rem;
            }

            .gallery-filters {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-btn {
                width: 100%;
            }

            .timeline {
                max-width: 100%;
            }

            .timeline::before {
                left: 30px;
            }

            .timeline-item {
                margin-bottom: 2rem;
            }

            .timeline-content {
                width: calc(100% - 70px);
                margin-left: 60px !important;
                padding: 1.5rem;
                min-height: auto;
            }

            /* Mobile timeline layout - stack items vertically */
            .timeline-item:nth-child(odd) .timeline-content,
            .timeline-item:nth-child(even) .timeline-content {
                margin-left: 60px !important;
                margin-right: 0;
                width: calc(100% - 70px);
            }

            .timeline-content h3 {
                font-size: 1.1rem;
            }

            .timeline-content .year {
                font-size: 0.8rem;
            }

            .timeline-content p {
                font-size: 0.9rem;
            }

            .timeline-dot {
                left: 30px;
                width: 16px;
                height: 16px;
            }

            .timeline-content .detailed-content {
                font-size: 0.9rem;
            }

            .timeline-content .detailed-content p {
                font-size: 0.9rem;
                line-height: 1.6;
            }

            .expand-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            .form-group input,
            .form-group textarea {
                padding: 1rem;
                font-size: 0.95rem;
            }

            .submit-btn {
                padding: 1rem;
                font-size: 1rem;
            }

            .social-links {
                flex-direction: column;
                align-items: stretch;
            }

            .social-link {
                justify-content: center;
            }
        }

        @media (max-width: 400px) {
            .hero h1 {
                font-size: 1.8rem;
            }

            .hero .dynamic-text {
                font-size: 1rem;
            }

            .section-title {
                font-size: 1.6rem;
            }

            .project-card-wrapper {
                height: 350px;
            }

            .project-image {
                height: 180px;
                font-size: 3rem;
            }

            .blog-thumbnail {
                height: 180px;
                font-size: 3rem;
            }

            .gallery-image {
                height: 200px;
                font-size: 3rem;
            }
        }

        /* Landscape Mobile */
        @media (max-height: 600px) and (orientation: landscape) {
            .hero {
                min-height: auto;
                padding: 4rem 5% 2rem;
            }

            .hero h1 {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }

            .hero .dynamic-text {
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
            }

            .hero .subtitle {
                font-size: 0.95rem;
                margin-bottom: 1rem;
            }

            .cta-buttons {
                margin-top: 1rem;
            }
        }

        /* Tablet Landscape */
        @media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
            .hero h1 {
                font-size: 3rem;
            }

            .section-title {
                font-size: 2.3rem;
            }

            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Large Desktop */
        @media (min-width: 1400px) {
            section {
                max-width: 1600px;
            }

            .hero h1 {
                font-size: 5rem;
            }

            .hero .dynamic-text {
                font-size: 2rem;
            }

            .section-title {
                font-size: 3.5rem;
            }

            .projects-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .blog-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Extra Large Desktop */
        @media (min-width: 1920px) {
            section {
                max-width: 1800px;
            }

            .hero h1 {
                font-size: 5.5rem;
            }

            .section-title {
                font-size: 4rem;
            }
        }

        /* Update image rules to fit in their cards without zooming */
        .project-image img,
        .blog-thumbnail img,
        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }