/* Portfolio home page styles — deduplicated & trimmed */

/* Global container styles */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 30px;
            width: 100%;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }
        }
        
        .tech-stack .tech-tag {
            color: #000000; /* Change tech tag text color to black */
            background: rgba(255,255,255,0.7); /* Make background more opaque for better contrast */
        }
        
        /* Additional fixes for specific project descriptions */
        .project-content .project-description p {
            color: #000000 !important; /* Double ensuring paragraphs are black */
            background: transparent !important; /* Remove any background color */
        }
        
        .project-content .project-description ul li {
            color: #000000 !important; /* Double ensuring list items are black */
            background: transparent !important; /* Remove any background color */
        }
        
        /* Target any blue background sections */
        [style*="background-color:rgb(173, 216, 230)"],
        [style*="background-color:#ADD8E6"],
        [style*="background-color:lightblue"],
        [style*="background:rgb(173, 216, 230)"],
        [style*="background:#ADD8E6"],
        [style*="background:lightblue"] {
            color: #000000 !important; /* Force black text for any elements with lightblue background */
        }
        
        /* Target direct children of elements with blue backgrounds */
        [style*="background-color:rgb(173, 216, 230)"] *,
        [style*="background-color:#ADD8E6"] *,
        [style*="background-color:lightblue"] *,
        [style*="background:rgb(173, 216, 230)"] *,
        [style*="background:#ADD8E6"] *,
        [style*="background:lightblue"] * {
            color: #000000 !important; /* Force black text for all children */
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .profile-photo {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 15px;
            border: 2px solid #ff6b6b;
            box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
        }
        
        .profile-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .logo-text {
            font-size: 1.5rem;
            font-weight: 600;
            color: white;
            letter-spacing: 0.5px;
        }
        
        .nav-container {
            display: flex;
            align-items: center;
        }
        
        @keyframes togglePulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
            70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
            100% { transform: scale(1); }
        }
        
        .theme-toggle.animated {
            animation: togglePulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .navigation-top-space {
            height: 80px; /* Adjust based on your nav height */
        }
        
        .navigation-menu-container {
            position: relative !important;
            z-index: 10000 !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .nav-controls {
            display: flex;
            align-items: center;
            margin-left: 5px;
        }
        
        /* Theme toggle button for navigation removed - centralized in styles.css */
            
            /* Responsive adjustments */
            @media (max-width: 768px) {
                .nav-links {
                    flex-direction: column;
                    background-color: rgba(12, 12, 20, 0.98);
                    position: absolute;
                    top: 70px;
                    left: 0;
                    width: 100%;
                    padding: 20px 0;
                    display: none;
                    gap: 15px;
                    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
                }
                
                html[data-theme="light"] .nav-links {
                    background-color: rgba(255, 255, 255, 0.98);
                }
                
                .nav-links.active {
                    display: flex;
                }
                
                .theme-toggle-wrapper {
                    margin: 5px 0;
                }
                
                .nav-item {
                    width: 100%;
                    text-align: center;
                    padding: 12px 15px;
                }
                
                .theme-toggle {
                    margin: 0 auto;
            }
        }

/* Journey section preload styles (classic scroll only — wormhole JS controls panel visibility) */
    html.classic-site-mode #journey {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }

    html[data-theme="light"] #journey, 
    html[data-theme="light"] .journey-section {
        background-color: #f5f7fa !important;
        color: #333333 !important;
    }

/* Animation for theme toggle button */
    @keyframes togglePulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .theme-toggle.animated {
        animation: togglePulse 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

/* Additional space theme effect for the hero section */
    .hero-section {
        position: relative;
        min-height: 100vh;
        background-color: #1a1a2e;
        background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
    
    /* Space objects */
    .space-object {
        position: absolute;
        border-radius: 50%;
        z-index: 1;
    }
    
    /* Planet styles */
    .planet {
        box-shadow: inset -20px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
        background-size: 100% 100%;
        background-position: center;
    }
    
    .planet.jupiter {
        width: 120px;
        height: 120px;
        bottom: 10%;
        right: 15%;
        background: radial-gradient(circle at 30% 30%, #e0ae6f, #9a6b44);
        animation: rotate 120s linear infinite;
    }
    
    .planet.saturn {
        width: 90px;
        height: 90px;
        top: 15%;
        left: 10%;
        background: radial-gradient(circle at 30% 30%, #e0c46f, #a17d32);
        animation: rotate 150s linear infinite;
    }
    
    /* Saturn's rings */
    .saturn-rings {
        position: absolute;
        width: 150px;
        height: 30px;
        top: 15%;
        left: 10%;
        margin-top: 30px;
        margin-left: -30px;
        border-radius: 50%;
        border: 6px solid rgba(224, 196, 111, 0.3);
        transform: rotateX(75deg);
        z-index: 0;
    }
    
    /* Moon styles */
    .moon {
        width: 30px;
        height: 30px;
        background: radial-gradient(circle at 30% 30%, #c0c0c0, #707070);
        box-shadow: inset -5px 0 rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
    }
    
    .moon.io {
        top: 20%;
        right: 20%;
        animation: moonOrbit 15s linear infinite;
    }
    
    /* Space station */
    .space-station {
        width: 60px;
        height: 30px;
        top: 30%;
        right: 5%;
        border-radius: 0;
        background: linear-gradient(90deg, #888, #ddd);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        transform: rotate(30deg);
        z-index: 2;
    }
    
    .space-station::before, .space-station::after {
        content: '';
        position: absolute;
        background: #aaa;
    }
    
    .space-station::before {
        width: 80px;
        height: 2px;
        top: 14px;
        left: -10px;
    }
    
    .space-station::after {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        top: 10px;
        left: -15px;
        background: #00a8ff;
        box-shadow: 0 0 5px #00a8ff;
    }
    
    /* Spaceship */
    .spaceship {
        position: absolute;
        width: 30px;
        height: 15px;
        background: #888;
        border-radius: 50% 50% 0 0;
        bottom: 30%;
        left: 20%;
        z-index: 3;
        transform: rotate(-30deg);
        animation: spaceshipMove 20s linear infinite;
    }
    
    .spaceship::before {
        content: '';
        position: absolute;
        width: 5px;
        height: 15px;
        background: #ff5f5f;
        bottom: -5px;
        left: 12px;
        border-radius: 50%;
        box-shadow: 0 0 10px #ff5f5f;
        animation: thrust 0.5s linear infinite alternate;
    }
    
    /* Dyson Sphere elements */
    .dyson-sphere {
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
        animation: rotate 80s linear infinite;
    }
    
    .dyson-panel {
        position: absolute;
        width: 5px;
        height: 30px;
        background: rgba(255, 255, 255, 0.3);
        top: 50%;
        left: 50%;
        transform-origin: 0 0;
        z-index: 0;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    
    /* Create multiple panels arranged in a circle */
    .dyson-panel:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(150px); }
    .dyson-panel:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateX(150px); }
    .dyson-panel:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateX(150px); }
    .dyson-panel:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateX(150px); }
    .dyson-panel:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateX(150px); }
    .dyson-panel:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateX(150px); }
    .dyson-panel:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateX(150px); }
    .dyson-panel:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateX(150px); }
    
    /* Comet */
    .comet {
        position: absolute;
        width: 5px;
        height: 5px;
        background: white;
        border-radius: 50%;
        top: 20%;
        left: 0;
        z-index: 2;
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7);
        animation: cometMove 8s linear infinite;
    }
    
    .comet::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 2px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.7), transparent);
        top: 2px;
        right: 5px;
        z-index: 1;
    }
    
    /* Animation for moon orbiting */
    @keyframes moonOrbit {
        0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
    }
    
    /* Animation for spaceship movement */
    @keyframes spaceshipMove {
        0% { transform: rotate(-30deg) translateX(0); }
        25% { transform: rotate(-15deg) translateY(-100px) translateX(50px); }
        50% { transform: rotate(15deg) translateY(-50px) translateX(100px); }
        75% { transform: rotate(30deg) translateY(50px) translateX(50px); }
        100% { transform: rotate(-30deg) translateX(0); }
    }
    
    /* Animation for comet movement */
    @keyframes cometMove {
        0% { 
            left: 0%; 
            top: 20%; 
            opacity: 0; 
        }
        10% { 
            opacity: 1; 
        }
        90% { 
            opacity: 1; 
        }
        100% { 
            left: 100%; 
            top: 70%; 
            opacity: 0; 
        }
    }
    
    /* Animation for engine thrust */
    @keyframes thrust {
        0% { height: 15px; opacity: 0.7; }
        100% { height: 25px; opacity: 1; }
    }
    
    /* Add stars to background */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 200px 50px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 240px 180px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 280px 90px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 320px 130px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 360px 80px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 400px 60px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 440px 160px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 480px 120px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 520px 40px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 560px 170px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 600px 80px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 640px 140px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 680px 60px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 720px 130px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 760px 50px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 800px 110px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 840px 180px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 880px 30px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 920px 120px, #ffffff, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 960px 70px, #ffffff, rgba(0,0,0,0));
        background-size: 1000px 1000px;
        background-repeat: repeat;
        opacity: 0.5;
        z-index: 0;
    }

/* Light theme styles for journey section */
    html[data-theme="light"] #journey,
    html[data-theme="light"] .journey-section {
        background-color: #f5f7fa !important;
        color: #333333 !important;
    }

    html[data-theme="light"] .journey-section h3 {
        color: #3a56e4 !important;
    }

    html[data-theme="light"] .journey-section p {
        color: #555555 !important;
    }

/* Hero section container and content styling */
    .hero-container {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    .hero-content {
        text-align: center;
        max-width: 800px;
        padding: 30px;
        background: rgba(26, 26, 46, 0.7);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 10;
    }
    
    .hero-profile-image {
        position: relative;
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 30px rgba(108, 138, 255, 0.5);
        
        transform-style: preserve-3d;
        transition: transform 0.3s ease-out, box-shadow 0.3s ease;
    }
    
    .hero-profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-profile-image::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        background: linear-gradient(45deg, #ff6b6b, #6c8aff, #6bffc8);
        background-size: 400% 400%;
        animation: gradient 15s ease infinite;
        z-index: -1;
        border-radius: 50%;
        opacity: 0.7;
        filter: blur(8px);
    }
    
    @keyframes gradient {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
    
    .hero-name {
        margin: 0 0 10px;
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(to right, #ff6b6b, #6c8aff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .hero-title {
        margin: 0 0 15px;
        font-size: 1.5rem;
        font-weight: 500;
        color: #e0e0e0;
        opacity: 0.9;
    }
    
    .hero-interests {
        margin-bottom: 20px;
        font-size: 1rem;
        color: #d0d0d0;
    }
    
    .interest-icon {
        margin-right: 10px;
        color: #6c8aff;
    }
    
    .hero-social-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
        z-index: 10;
    }
    
    .hero-social-link {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        text-decoration: none;
        font-size: 1.32rem;
    }
    
    /* Modified hover effects with no transformation */
    .hero-social-link[href*="linkedin"]:hover,
    .social-sidebar a[href*="linkedin"]:hover {
        background: #0077b5;
        box-shadow: 0 2px 8px rgba(0, 119, 181, 0.4);
    }
    
    .hero-social-link[href*="github"]:hover,
    .social-sidebar a[href*="github"]:hover {
        background: #2b3137;
        box-shadow: 0 2px 8px rgba(43, 49, 55, 0.4);
    }
    
    .hero-social-link[href*="twitter"]:hover,
    .social-sidebar a[href*="twitter"]:hover,
    .hero-social-link[href*="x.com"]:hover,
    .social-sidebar a[href*="x.com"]:hover {
        background: #1DA1F2;
        box-shadow: 0 2px 8px rgba(29, 161, 242, 0.4);
    }
    
    .hero-social-link[href*="instagram"]:hover,
    .social-sidebar a[href*="instagram"]:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        box-shadow: 0 2px 8px rgba(225, 48, 108, 0.4);
    }
    
    .hero-social-link[href*="youtube"]:hover,
    .social-sidebar a[href*="youtube"]:hover {
        background: #FF0000;
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    }
    
    .hero-social-link[href*="medium"]:hover,
    .social-sidebar a[href*="medium"]:hover {
        background: #12100E;
        box-shadow: 0 2px 8px rgba(18, 16, 14, 0.4);
    }
    
    .hero-social-link[href*="threads"]:hover,
    .social-sidebar a[href*="threads"]:hover {
        background: #000000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .hero-social-link[href*="tiktok"]:hover,
    .social-sidebar a[href*="tiktok"]:hover {
        background: linear-gradient(45deg, #000000, #EE1D52, #69C9D0);
        box-shadow: 0 2px 8px rgba(238, 29, 82, 0.4);
    }
    
    .hero-social-link[href*="envelope"]:hover,
    .social-sidebar a[href*="envelope"]:hover {
        background: #EA4335;
        box-shadow: 0 2px 8px rgba(234, 67, 53, 0.4);
    }
    
    /* Shooting star animation */
    .shooting-star {
        position: absolute;
        height: 3px;
        background: linear-gradient(90deg, 
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
        filter: drop-shadow(0 0 6px white);
        opacity: 0;
        transform-origin: left;
        z-index: 1;
        pointer-events: none;
    }

    .shooting-star::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: white;
        transform: translateY(-50%);
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    }
    
    /* Responsive styles */
    @media (max-width: 768px) {
        .hero-content {
            padding: 20px;
        }
        
        .hero-profile-image {
            width: 120px;
            height: 120px;
        }
        
        .hero-name {
            font-size: 1.8rem;
        }
        
        .hero-title {
            font-size: 1.2rem;
        }
        
        .hero-interests {
            font-size: 0.9rem;
        }
        
        .hero-social-link {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }
    }

/* Portfolio Section Styling */
    .portfolio-section {
        padding: 80px 0;
        background-color: #0c0c14;
    }
    
    html[data-theme="light"] .portfolio-section {
        background-color: #f2f5fa;
    }
    
    .section-description {
        max-width: 800px;
        margin: 0 auto 40px;
        text-align: center;
        color: #d0d0d0;
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    html[data-theme="light"] .section-description {
        color: #666;
    }
    
    .portfolio-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
        gap: 10px;
    }
    
    .portfolio-tab {
        padding: 8px 20px;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        color: #ccc;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    html[data-theme="light"] .portfolio-tab {
        background: rgba(0, 0, 0, 0.05);
        color: #555;
    }
    
    .portfolio-tab:hover, .portfolio-tab.active {
        background: linear-gradient(135deg, #ff6b6b, #6c8aff);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    }
    
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        margin-top: 20px;
    }
    
    .portfolio-item {
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: all 0.4s ease;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .portfolio-item-inner {
        background: rgba(22, 22, 36, 0.7);
        border-radius: 15px;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    html[data-theme="light"] .portfolio-item-inner {
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .portfolio-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    
    .portfolio-image {
        position: relative;
        overflow: hidden;
        height: 200px;
    }
    
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease;
    }
    
    .portfolio-item:hover .portfolio-image img {
        transform: scale(1.1);
    }
    
    .portfolio-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-link {
        width: 50px;
        height: 50px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ff6b6b;
        font-size: 1.2rem;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-decoration: none;
    }
    
    .portfolio-item:hover .portfolio-link {
        transform: translateY(0);
        opacity: 1;
    }
    
    .portfolio-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .portfolio-content h3 {
        margin: 0 0 10px;
        font-size: 1.3rem;
        font-weight: 600;
        color: #eee;
    }
    
    html[data-theme="light"] .portfolio-content h3 {
        color: #333;
    }
    
    .portfolio-content p {
        margin: 0 0 15px;
        font-size: 0.95rem;
        color: #ccc;
        line-height: 1.5;
        flex-grow: 1;
    }
    
    html[data-theme="light"] .portfolio-content p {
        color: #666;
    }
    
    .portfolio-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
    }
    
    .portfolio-tag {
        padding: 5px 12px;
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
        border-radius: 20px;
        font-size: 0.8rem;
        transition: all 0.3s ease;
    }
    
    html[data-theme="light"] .portfolio-tag {
        background: rgba(0, 0, 0, 0.05);
        color: #666;
    }
    
    .portfolio-item:hover .portfolio-tag {
        background: rgba(255, 107, 107, 0.1);
        color: #ff6b6b;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .portfolio-grid {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .portfolio-tab {
            padding: 6px 15px;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        
        .portfolio-content h3 {
            font-size: 1.2rem;
        }
        
        .portfolio-content p {
            font-size: 0.9rem;
        }
        
        .portfolio-image {
            height: 180px;
        }
    }

/* Center and evenly place cards in Portfolio (Tech Projects) */
    #portfolio .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        justify-content: center;
        align-items: stretch;
    }
    @media (max-width: 768px) {
        #portfolio .portfolio-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }
    }
    
    /* Portfolio Navigation Buttons */
    .portfolio-nav-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .portfolio-nav-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 140px;
        height: 140px;
        background: rgba(22, 22, 36, 0.7);
        border-radius: 15px;
        padding: 20px;
        color: #fff;
        text-decoration: none;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
    }
    
    html[data-theme="light"] .portfolio-nav-button {
        background: rgba(255, 255, 255, 0.7);
        color: #333;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    
    .portfolio-nav-button i {
        font-size: 2.5rem;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }
    
    .portfolio-nav-button span {
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .portfolio-nav-button:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(108, 138, 255, 0.1));
        border-color: rgba(255, 107, 107, 0.3);
    }
    
    .portfolio-nav-button:hover i {
        transform: scale(1.2);
    }
    
    /* Individual icon colors */
    .portfolio-nav-button:nth-child(1) i { color: #61dafb; } /* Tech */
    .portfolio-nav-button:nth-child(2) i { color: #ff6b6b; } /* Sports */
    .portfolio-nav-button:nth-child(3) i { color: #4ade80; } /* Travel */
    .portfolio-nav-button:nth-child(4) i { color: #f472b6; } /* Art */
    .portfolio-nav-button:nth-child(5) i { color: #a78bfa; } /* Books */
    .portfolio-nav-button:nth-child(6) i { color: #fbbf24; } /* Cooking */
    .portfolio-nav-button:nth-child(7) i { color: #3b82f6; } /* Shopping */
    
    /* Portfolio item buttons */
    .portfolio-button {
        display: inline-block;
        background: linear-gradient(135deg, #ff6b6b, #6c8aff);
        color: white;
        padding: 8px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-top: 15px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
    }
    
    .portfolio-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }
    
    /* Responsive styles for portfolio navigation */
    @media (max-width: 992px) {
        .portfolio-nav-button {
            width: 120px;
            height: 120px;
            padding: 15px;
        }
        
        .portfolio-nav-button i {
            font-size: 2rem;
        }
        
        .portfolio-nav-button span {
            font-size: 0.85rem;
        }
    }
    
    @media (max-width: 768px) {
        .portfolio-nav-buttons {
            gap: 10px;
        }
        
        .portfolio-nav-button {
            width: 100px;
            height: 100px;
            padding: 12px;
        }
        
        .portfolio-nav-button i {
            font-size: 1.8rem;
            margin-bottom: 8px;
        }
        
        .portfolio-nav-button span {
            font-size: 0.8rem;
        }
    }
    
    @media (max-width: 576px) {
        .portfolio-nav-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .portfolio-nav-button {
            width: 100%;
            height: 90px;
        }
    }

/* Enhanced Skills Section Styling */
    .skills-section {
        padding: 80px 0;
        background-color: #0c0c14;
        position: relative;
        overflow: hidden;
    }
    
    html[data-theme="light"] .skills-section {
        background-color: #f5f7fa;
    }
    
    .skills-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }
    
    .skill-category {
        background: rgba(30, 30, 50, 0.7);
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    html[data-theme="light"] .skill-category {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .skill-category:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border-color: rgba(108, 138, 255, 0.3);
    }
    
    .skill-category h3 {
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
    }
    
    html[data-theme="light"] .skill-category h3 {
        color: #333;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .skill-category-icon {
        margin-right: 12px;
        background: linear-gradient(135deg, #ff6b6b, #6c8aff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.5rem;
    }
    
    .skills-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .skills-list li {
        display: flex;
        align-items: center;
        color: #ddd;
        font-size: 0.95rem;
        padding: 8px 0;
        transition: all 0.3s ease;
    }
    
    html[data-theme="light"] .skills-list li {
        color: #555;
    }
    
    .skills-list li:hover {
        transform: translateX(5px);
    }
    
    .skills-list li i {
        font-size: 1.4rem;
        margin-right: 10px;
        min-width: 25px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .skills-list li:hover i {
        transform: scale(1.2);
    }
    
    .skill-link {
        color: inherit;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .skill-link:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: -2px;
        left: 0;
        background: linear-gradient(to right, #ff6b6b, #6c8aff);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }
    
    .skill-link:hover {
        color: #6c8aff;
    }
    
    .skill-link:hover:after {
        transform: scaleX(1);
        transform-origin: left;
    }
    
    /* Responsive styles for skills section */
    @media (max-width: 992px) {
        .skills-content {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }
    }
    
    @media (max-width: 768px) {
        .skills-content {
            grid-template-columns: 1fr;
        }
        
        .skills-list {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        }
        
        .skill-category {
            padding: 20px;
        }
    }

/* About Section Interest Tags */
    .about-interests {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 25px;
        justify-content: center;
    }
    
    .interest-tag {
        padding: 10px 18px;
        background: rgba(30, 30, 50, 0.7);
        color: #fff;
        border-radius: 50px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
    }
    
    html[data-theme="light"] .interest-tag {
        background: rgba(255, 255, 255, 0.7);
        color: #333;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .interest-tag:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(108, 138, 255, 0.1));
    }
    
    .interest-tag i {
        font-size: 1.2rem;
        color: #ff6b6b;
    }
    
    /* Different colors for different interest icons */
    .interest-tag:nth-child(1) i { color: #FF5252; } /* Running */
    .interest-tag:nth-child(2) i { color: #2196F3; } /* Globe */
    .interest-tag:nth-child(3) i { color: #4CAF50; } /* Camera */
    .interest-tag:nth-child(4) i { color: #9C27B0; } /* Palette */
    
    @media (max-width: 768px) {
        .interest-tag {
            padding: 8px 15px;
            font-size: 0.9rem;
        }
        
        .interest-tag i {
            font-size: 1rem;
        }
    }

/* Journey Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding-left: 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(108,138,255,0.6), rgba(108,138,255,0.1));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: none;
}

.timeline-marker {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c8aff, #5b68ff);
    box-shadow: 0 0 0 4px rgba(108,138,255,0.15), 0 6px 18px rgba(0,0,0,0.35);
    margin-top: 10px;
}

.timeline-content {
    background: rgba(20, 25, 50, 0.98);
    padding: 28px 32px;
    border-radius: 16px;
    border: 1px solid rgba(108, 138, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #6c8aff, #5b68ff);
    color: #fff;
    padding: 6px 14px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.timeline-content h3 {
    color: #fff;
    margin: 6px 0 14px 0;
    font-size: 1.5rem;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 16px 0;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-tag {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.98);
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline-tag i {
    color: #6c8aff;
}

/* Light theme overrides */
html[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

html[data-theme="light"] .timeline-content h3 { color: #1a1a2e; }
html[data-theme="light"] .timeline-content p { color: #404050; }
html[data-theme="light"] .timeline-tag { background: rgba(108,138,255,0.08); color: #334; }

/* Responsive */
@media (max-width: 768px) {
    .timeline { padding-left: 16px; }
    .timeline:before { left: 24px; }
    .timeline-item { grid-template-columns: 48px 1fr; gap: 12px; }
    .timeline-content { padding: 22px 22px; }
    .timeline-content h3 { font-size: 1.25rem; }
    .timeline-content p { font-size: 0.98rem; line-height: 1.7; }
}

.contact-section {
        padding: 80px 0;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 52, 96, 0.95));
        position: relative;
        overflow: hidden;
    }

    html[data-theme="light"] .contact-section {
        background: linear-gradient(135deg, rgba(245, 247, 250, 0.95), rgba(230, 236, 245, 0.95));
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
        margin-top: 40px;
    }

    .contact-info {
        background: rgba(30, 30, 50, 0.7);
        padding: 30px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    html[data-theme="light"] .contact-info {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 25px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    html[data-theme="light"] .contact-item {
        background: rgba(0, 0, 0, 0.05);
    }

    .contact-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .contact-item i {
        font-size: 1.5rem;
        color: #ff6b6b;
        margin-right: 15px;
        margin-top: 5px;
    }

    .contact-details h3 {
        margin: 0 0 5px;
        font-size: 1.1rem;
        color: #fff;
    }

    html[data-theme="light"] .contact-details h3 {
        color: #333;
    }

    .contact-details p {
        margin: 0;
        color: #ccc;
        font-size: 0.95rem;
    }

    html[data-theme="light"] .contact-details p {
        color: #666;
    }

    .contact-details a {
        color: #6c8aff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .contact-details a:hover {
        color: #ff6b6b;
    }

    .contact-social {
        margin-top: 30px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    html[data-theme="light"] .contact-social {
        background: rgba(0, 0, 0, 0.05);
    }

    .contact-social h3 {
        margin: 0 0 15px;
        color: #fff;
        font-size: 1.1rem;
    }

    html[data-theme="light"] .contact-social h3 {
        color: #333;
    }

    .social-links {
        display: flex;
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: #fff;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    html[data-theme="light"] .social-links a {
        background: rgba(0, 0, 0, 0.1);
        color: #333;
    }

    .social-links a:hover {
        transform: translateY(-3px);
    }

    .social-links a[href*="linkedin"]:hover {
        background: #0077b5;
        color: white;
    }

    .social-links a[href*="github"]:hover {
        background: #333;
        color: white;
    }

    .social-links a[href*="twitter"]:hover {
        background: #1DA1F2;
        color: white;
    }

    .social-links a[href*="instagram"]:hover {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        color: white;
    }

    .contact-form {
        background: rgba(30, 30, 50, 0.7);
        padding: 30px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    html[data-theme="light"] .contact-form {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .form-group {
        margin-bottom: 20px;
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 500;
    }

    html[data-theme="light"] .form-group label {
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #fff;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.95rem;
    }

    html[data-theme="light"] .form-group input,
    html[data-theme="light"] .form-group textarea {
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #333;
    }

    html[data-theme="light"] .form-group input::placeholder,
    html[data-theme="light"] .form-group textarea::placeholder {
        color: rgba(0, 0, 0, 0.4);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #6c8aff;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 3px rgba(108, 138, 255, 0.15);
    }

    html[data-theme="light"] .form-group input:focus,
    html[data-theme="light"] .form-group textarea:focus {
        background: rgba(255, 255, 255, 0.95);
    }

    .form-group textarea {
        height: 120px;
        resize: vertical;
        line-height: 1.5;
    }

    .submit-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 30px;
        background: linear-gradient(135deg, #ff6b6b, #6c8aff);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(108, 138, 255, 0.4);
    }

    .submit-btn i {
        transition: transform 0.3s ease;
    }

    .submit-btn:hover i {
        transform: translateX(5px);
    }

    /* Make contact items clickable affordance */
    .contact-item.clickable { cursor: pointer; }
    .contact-item.clickable:hover { background: rgba(255, 255, 255, 0.08); }
    html[data-theme="light"] .contact-item.clickable:hover { background: rgba(0, 0, 0, 0.08); }

    @media (max-width: 992px) {
        .contact-content {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .contact-section {
            padding: 60px 0;
        }

        .contact-item {
            padding: 12px;
        }

        .contact-item i {
            font-size: 1.3rem;
        }

        .social-links a {
            width: 35px;
            height: 35px;
            font-size: 1.1rem;
        }

        .submit-btn {
            padding: 12px 25px;
        }
    }

/* === hero parallax extras === */

<style>
    /* Additional shooting star styling for more variety */
    .shooting-star:nth-child(4) {
        width: 200px;
        top: 15%;
        right: 40%;
        opacity: 0;
        animation: shootingStarPhysics 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
        animation-delay: 4.2s;
    }
    
    .shooting-star:nth-child(5) {
        width: 130px;
        top: 65%;
        right: 25%;
        opacity: 0;
        animation: shootingStarPhysics 5.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
        animation-delay: 3.1s;
    }
    
    .shooting-star:nth-child(6) {
        width: 160px;
        top: 45%;
        right: 55%;
        opacity: 0;
        animation: shootingStarPhysics 6.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
        animation-delay: 0.3s;
    }
    
    .shooting-star:nth-child(7) {
        width: 110px;
        top: 75%;
        right: 5%;
        opacity: 0;
        animation: shootingStarPhysics 4.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
        animation-delay: 1.8s;
    }

    /* Override base shooting star to ensure tail trails correctly */
    .hero-section .shooting-star {
        transform-origin: right;
        background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
        height: 2px;
        will-change: transform, opacity;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
    }

    .hero-section .shooting-star::after {
        right: 0;
        left: auto;
        width: 5px;
        height: 5px;
    }

    /* Parallax effect for space background */
    .hero-section {
        position: relative;
        overflow: hidden;
        perspective: 1000px;
    }
    
    /* Space parallax layers */
    .hero-section:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(2px 2px at 30% 70%, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(2.5px 2.5px at 65% 60%, rgba(255, 255, 255, 0.5), transparent),
            radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.5), transparent);
        background-size: 200% 200%;
        background-position: 0 0;
        z-index: 0;
        animation: parallaxStars 60s ease-in-out infinite alternate;
    }
    
    .hero-section:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(1px 1px at 20% 50%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(1px 1px at 30% 30%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(1.5px 1.5px at 40% 80%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(2px 2px at 60% 25%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(2.5px 2.5px at 70% 55%, rgba(255, 255, 255, 0.3), transparent),
            radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, 0.3), transparent);
        background-size: 150% 150%;
        background-position: 0 0;
        z-index: 0;
        animation: parallaxStars 40s ease-in-out infinite alternate-reverse;
    }
    
    @keyframes parallaxStars {
        0% {
            background-position: 0% 0%;
        }
        25% {
            background-position: 25% 10%;
        }
        50% {
            background-position: 15% 25%;
        }
        75% {
            background-position: 10% 15%;
        }
        100% {
            background-position: 20% 20%;
        }
    }

    /* Mouse parallax effect */
    .hero-container {
        transform-style: preserve-3d;
        transition: transform 0.1s ease-out;
    }

/* =============================================================================
   SCI-FI REVAMP — design tokens, motion, holographic UI
   ============================================================================= */

.home-page {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff2bd6;
    --neon-violet: #8b5cff;
    --space-deep: #050510;
    --space-mid: #0a0f2e;
    --glass: rgba(12, 18, 42, 0.72);
    --glass-border: rgba(0, 240, 255, 0.18);
}

.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.15) 2px,
        rgba(0, 240, 255, 0.15) 3px
    );
}

.hero-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.55;
}

.hero-section {
    background:
        radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0, 240, 255, 0.12), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(255, 43, 214, 0.08), transparent 40%),
        linear-gradient(165deg, var(--space-deep) 0%, var(--space-mid) 45%, #12082a 100%) !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -2px;
    height: 42%;
    background:
        linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(500px) rotateX(62deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(to top, black 20%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    background: var(--glass) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow:
        0 0 0 1px rgba(255, 43, 214, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), transparent 40%, var(--neon-magenta));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.hero-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-name {
    font-family: 'Orbitron', 'Poppins', sans-serif !important;
    letter-spacing: 0.04em;
    color: #e8f4ff;
    background: linear-gradient(92deg, #fff 0%, var(--neon-cyan) 45%, var(--neon-magenta) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.25));
}

.hero-title {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem) !important;
    color: rgba(200, 220, 255, 0.85) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tagline {
    color: rgba(210, 225, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto 1.25rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.25rem 0 1.5rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta-btn.primary {
    color: #050510;
    background: linear-gradient(135deg, var(--neon-cyan), #7afcff);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.hero-cta-btn.secondary {
    color: #e8f4ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.35);
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
}

.hero-reveal {
    opacity: 1;
    transform: none;
}

html.js-home .hero-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-home .hero-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orbit-size);
    height: var(--orbit-size);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid hsla(var(--orbit-hue), 90%, 60%, 0.25);
    animation: orbitSpin var(--orbit-duration) linear infinite;
    pointer-events: none;
}

.hero-orbit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--orbit-hue), 90%, 65%);
    box-shadow: 0 0 10px hsl(var(--orbit-hue), 90%, 65%);
    transform: translateX(-50%);
}

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

.home-page .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.home-page .section-title {
    font-family: 'Orbitron', 'Poppins', sans-serif;
    letter-spacing: 0.06em;
    position: relative;
}

.home-page .section-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 3px;
    margin: 0.65rem auto 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.skill-category,
.timeline-content,
.portfolio-item,
.activity-item .activity-content,
.contact-info,
.contact-form {
    border-color: rgba(0, 240, 255, 0.12) !important;
}

.skill-category:hover,
.portfolio-item:hover {
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.25) !important;
}

.timeline-marker {
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.12), 0 0 18px rgba(0, 240, 255, 0.45) !important;
}

html[data-theme="light"] .home-page {
    --glass: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(45, 90, 39, 0.18);
    --neon-cyan: #4a7a43;
    --neon-magenta: #c47a3a;
    --neon-violet: #2d5a27;
}

html[data-theme="light"] .hero-section {
    background:
        radial-gradient(ellipse 90% 55% at 50% 8%, rgba(255, 230, 160, 0.45), transparent 55%),
        radial-gradient(ellipse 120% 50% at 50% 100%, rgba(45, 90, 39, 0.22), transparent 60%),
        linear-gradient(180deg, #b8d4f0 0%, #d4ecd4 38%, #e8f5e4 68%, #c8dfc0 100%) !important;
}

html[data-theme="light"] .hero-name {
    color: #1b3b1b;
    background: linear-gradient(92deg, #1b3b1b 0%, #2d5a27 45%, #4a7a43 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none;
}

html[data-theme="light"] .hero-status {
    color: #2d5a27;
    background: rgba(74, 122, 67, 0.1);
    border-color: rgba(74, 122, 67, 0.35);
}

html[data-theme="light"] .hero-title {
    color: #3d5c40 !important;
}

html[data-theme="light"] .hero-tagline {
    color: #4a5f4c;
}

html[data-theme="light"] .home-page::before {
    opacity: 0.015;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(45, 90, 39, 0.2) 2px,
        rgba(45, 90, 39, 0.2) 3px
    );
}

@supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
    html { timeline-scope: --home-about, --home-journey, --home-skills, --home-portfolio; }

    #about { view-timeline: --home-about block; }
    #journey { view-timeline: --home-journey block; }
    #skills { view-timeline: --home-skills block; }
    #portfolio { view-timeline: --home-portfolio block; }

    .home-page .section .container {
        animation: sectionReveal auto linear both;
        animation-timeline: view(block);
        animation-range: entry 10% cover 35%;
    }

    @keyframes sectionReveal {
        from { opacity: 0.4; transform: translateY(28px); filter: blur(4px); }
        to { opacity: 1; transform: none; filter: none; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page::before,
    .hero-orbit,
    .hero-status-dot,
    .hero-section::after,
    .hero-section::before {
        animation: none !important;
    }

    .hero-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .home-page .section .container {
        animation: none !important;
    }
}

/* Portfolio image placeholders (no missing asset 404s) */
.portfolio-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.portfolio-image--placeholder i {
    font-size: 3rem;
    z-index: 1;
    opacity: 0.9;
}
.portfolio-image--tech {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 255, 0.25));
    color: var(--neon-cyan, #00f0ff);
}
.portfolio-image--ai {
    background: linear-gradient(135deg, rgba(255, 43, 214, 0.15), rgba(139, 92, 255, 0.3));
    color: var(--neon-magenta, #ff2bd6);
}
.portfolio-image--sports {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 180, 0, 0.15));
    color: #ff6b6b;
}
.portfolio-image--content {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(0, 240, 255, 0.12));
    color: #4ade80;
}
.portfolio-image--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.03) 8px,
        rgba(255, 255, 255, 0.03) 9px
    );
}

a.portfolio-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.portfolio-item > a.portfolio-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item > a.portfolio-item-link .portfolio-content {
    flex: 1;
}

/* =============================================================================
   FOREST THEME (light) vs SPACE THEME (dark)
   ============================================================================= */

html[data-theme="dark"] .forest-scene,
html[data-theme="dark"] .theme-forest-only {
    display: none;
}

html[data-theme="light"] .space-scene,
html[data-theme="light"] .theme-space-only {
    display: none;
}

.space-scene,
.forest-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

html[data-theme="light"] .hero-section::before,
html[data-theme="light"] .hero-section::after {
    background-image: none !important;
    mask-image: none !important;
    transform: none !important;
    animation: none !important;
}

html[data-theme="light"] .hero-section::after {
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    background: linear-gradient(to top, rgba(45, 90, 39, 0.3), transparent) !important;
}

html[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(45, 90, 39, 0.2) !important;
    box-shadow:
        0 0 0 1px rgba(240, 182, 127, 0.12),
        0 24px 48px rgba(45, 90, 39, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .hero-status-dot {
    background: #4a7a43 !important;
    box-shadow: 0 0 12px rgba(74, 122, 67, 0.6) !important;
}

html[data-theme="light"] .hero-particle-canvas {
    opacity: 0.4;
}

.forest-sun {
    position: absolute;
    top: 8%;
    right: 18%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff8dc, #f0b67f 55%, rgba(240, 182, 127, 0));
    box-shadow: 0 0 60px rgba(240, 182, 127, 0.55);
    animation: forestSunPulse 6s ease-in-out infinite;
}

@keyframes forestSunPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.06); opacity: 1; }
}

.forest-mist {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 30% 70%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(ellipse 60% 35% at 70% 75%, rgba(255, 255, 255, 0.25), transparent);
    animation: forestMistDrift 18s ease-in-out infinite alternate;
}

@keyframes forestMistDrift {
    from { transform: translateX(-2%); opacity: 0.7; }
    to { transform: translateX(2%); opacity: 1; }
}

.forest-treeline {
    position: absolute;
    inset: 0;
}

.forest-tree {
    position: absolute;
    bottom: 12%;
    left: var(--x, 10%);
    width: calc(var(--w, 80) * 1px);
    height: var(--h, 45%);
    transform-origin: bottom center;
    animation: forestTreeSway 7s ease-in-out infinite;
    animation-delay: calc(var(--x, 10) * -0.05s);
}

.forest-tree--back {
    opacity: 0.65;
    filter: blur(0.5px);
}

.forest-tree::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--w, 80) * 0.9px);
    height: 68%;
    background: var(--shade, #2d5a27);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 4px 8px rgba(27, 59, 27, 0.25));
}

.forest-tree::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--w, 80) * 0.16px);
    min-width: 8px;
    height: 22%;
    background: linear-gradient(180deg, #6b4c35, #4a3224);
    border-radius: 2px;
}

@keyframes forestTreeSway {
    0%, 100% { transform: rotate(-0.6deg); }
    50% { transform: rotate(0.6deg); }
}

.forest-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18%;
    background: linear-gradient(to top, #3d6b38 0%, #5a8f4e 40%, transparent 100%);
}

.forest-animal {
    position: absolute;
    z-index: 2;
    color: rgba(44, 62, 45, 0.85);
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(27, 59, 27, 0.25));
    animation: forestAnimalBob 4s ease-in-out infinite;
}

.forest-animal--deer { bottom: 16%; left: 22%; font-size: 1.1rem; animation-delay: 0.2s; }
.forest-animal--bird { top: 28%; left: 35%; font-size: 1rem; animation: forestBirdFly 12s linear infinite; }
.forest-animal--frog { bottom: 14%; right: 28%; font-size: 1.15rem; color: #3d7a45; animation-delay: 1s; }
.forest-animal--squirrel { bottom: 20%; right: 18%; font-size: 0.95rem; animation-delay: 0.6s; }

@keyframes forestAnimalBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes forestBirdFly {
    0% { transform: translate(0, 0); }
    25% { transform: translate(40px, -12px); }
    50% { transform: translate(80px, 4px); }
    75% { transform: translate(40px, 16px); }
    100% { transform: translate(0, 0); }
}

html[data-theme="light"] #journey,
html[data-theme="light"] .journey-section {
    background-color: #e8f0e4 !important;
    color: #2c3e2d !important;
}

html[data-theme="light"] .journey-section h3 {
    color: #2d5a27 !important;
}

html[data-theme="light"] .journey-section p {
    color: #5c745e !important;
}

html[data-theme="light"] .hud-frame {
    border-color: rgba(74, 122, 67, 0.15);
    box-shadow: inset 0 0 40px rgba(74, 122, 67, 0.04);
}

html[data-theme="light"] .hud-corner {
    border-color: rgba(74, 122, 67, 0.45);
}

html[data-theme="light"] .hud-value {
    color: #3d7a45;
    text-shadow: 0 0 12px rgba(74, 122, 67, 0.35);
}

html[data-theme="light"].wormhole-mode .wormhole-panel--hero .hero-section {
    background:
        radial-gradient(ellipse 90% 55% at 50% 8%, rgba(255, 230, 160, 0.45), transparent 55%),
        radial-gradient(ellipse 120% 50% at 50% 100%, rgba(45, 90, 39, 0.22), transparent 60%),
        linear-gradient(180deg, #b8d4f0 0%, #d4ecd4 38%, #e8f5e4 68%, #c8dfc0 100%) !important;
}

html[data-theme="light"] .forest-scene {
    z-index: 3;
}

html[data-theme="light"] .forest-animal {
    font-size: 1.75rem;
    opacity: 0.92;
}

html[data-theme="light"] .forest-animal--deer { bottom: 18%; left: 18%; font-size: 1.5rem; }
html[data-theme="light"] .forest-animal--frog { bottom: 16%; right: 24%; font-size: 1.45rem; }
html[data-theme="light"] .forest-animal--squirrel { bottom: 22%; right: 14%; font-size: 1.25rem; }
html[data-theme="light"] .forest-animal--bird { top: 24%; left: 30%; font-size: 1.35rem; }

html[data-theme="light"] .forest-sun {
    width: 96px;
    height: 96px;
    top: 6%;
    right: 14%;
}

html[data-theme="light"] .forest-floor {
    height: 22%;
    background: linear-gradient(to top, #2d5a27 0%, #4a7a43 45%, transparent 100%);
}

html[data-theme="light"] .wormhole-hud .hud-value {
    text-transform: none;
    letter-spacing: 0.06em;
}

html[data-theme="light"] .wormhole-hud {
    color: rgba(45, 90, 39, 0.75);
}

html[data-theme="light"] .warp-progress {
    background: rgba(74, 122, 67, 0.12);
}

html[data-theme="light"] .warp-progress-bar {
    background: linear-gradient(90deg, #4a7a43, #f0b67f);
    box-shadow: 0 0 14px rgba(74, 122, 67, 0.45);
}

html[data-theme="light"] .warp-dot {
    border-color: rgba(74, 122, 67, 0.45);
}

html[data-theme="light"] .warp-dot.is-active,
html[data-theme="light"] .warp-dot:hover {
    background: #4a7a43;
    box-shadow: 0 0 10px rgba(74, 122, 67, 0.6);
}
