 /* --- VARIABLES & RESET --- */
        :root {
            --bg-color: #040c12;
            --second-bg-color: #0a151d;
            --text-color: #e2e8f0;
            --main-color: #00f7ff; 
            --accent-color: #fbbf24;
            --hover-color: #38bdf8;
            --card-bg: #13202b;
            --input-bg: #111b24;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            text-decoration: none;
            border: none;
            outline: none;
            scroll-behavior: smooth;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background: var(--bg-color);
            color: var(--text-color);
            overflow-x: hidden;
        }

        html {
            font-size: 100%;
            overflow-x: hidden;
        }

        /* --- HEADINGS --- */
        .section-title {
            font-size: 3rem;
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title span {
            color: var(--main-color);
        }

        /* --- NAVIGATION --- */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 9%;
            background: rgba(4, 12, 18, 0.95); 
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            border-bottom: 1px solid rgba(0, 247, 255, 0.1);
        }

        .logo {
            font-size: 1.8rem;
            color: var(--main-color);
            font-weight: 700;
            cursor: pointer;
            text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
        }

        .nav-links ul {
            display: flex;
            gap: 2.5rem;
        }

        .nav-links a {
            font-size: 1rem;
            color: var(--text-color);
            font-weight: 500;
            transition: 0.3s;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--main-color);
            text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
        }

        .hamburger {
            display: none;
            font-size: 1.8rem;
            color: var(--text-color);
            cursor: pointer;
        }

        /* --- HERO SECTION --- */
        section {
            min-height: 100vh;
            padding: 8rem 9% 2rem;
        }

        .hero {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4rem;
            background: radial-gradient(circle at center right, rgba(0, 247, 255, 0.05), transparent 50%);
        }

        .hero-content {
            flex: 1;
            /* Lowering the hello section slightly */
            margin-top: 6rem; 
        }

        .hero-content h3 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 0.5rem;
        }

        .hero-content h1 span {
            color: var(--main-color);
            text-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
        }

        .typing-text {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--main-color);
            display: block;
            margin-bottom: 2rem;
        }

        /* Hero Social Links */
        .hero-social {
            margin-bottom: 2.5rem;
            display: flex;
            justify-content: flex-start;
        }

        .hero-btns {
            display: flex;
            gap: 1.5rem;
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: var(--main-color);
            border-radius: 2rem;
            box-shadow: 0 0 1rem rgba(0, 247, 255, 0.4);
            font-size: 1rem;
            color: var(--bg-color);
            font-weight: 700;
            transition: 0.3s;
            cursor: pointer;
        }

        .btn:hover {
            box-shadow: 0 0 2rem rgba(0, 247, 255, 0.7);
            background: var(--hover-color);
        }

        .btn-outline {
            background: transparent;
            color: var(--main-color);
            border: 2px solid var(--main-color);
            box-shadow: inset 0 0 10px rgba(0, 247, 255, 0.2);
        }

        .btn-outline:hover {
            background: var(--main-color);
            color: var(--bg-color);
            box-shadow: 0 0 1rem var(--main-color);
        }

        .hero-img {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-img .img-box {
            position: relative;
            width: 28vw;
            height: 28vw;
            border-radius: 50%;
            z-index: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-img .img-box::before {
            content: '';
            position: absolute;
            inset: -15px; 
            border: 3px solid var(--main-color);
            border-radius: 50%;
            box-shadow: 0 0 30px rgba(0, 247, 255, 0.5), inset 0 0 30px rgba(0, 247, 255, 0.3);
            z-index: -1;
            animation: pulseRing 3s infinite ease-in-out;
        }

        @keyframes pulseRing {
            0%, 100% { box-shadow: 0 0 30px rgba(0, 247, 255, 0.5), inset 0 0 30px rgba(0, 247, 255, 0.3); }
            50% { box-shadow: 0 0 50px rgba(0, 247, 255, 0.8), inset 0 0 50px rgba(0, 247, 255, 0.5); }
        }

        .hero-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        /* --- ABOUT & 3D GALLERY SECTION --- */
        .about-content p {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 3rem auto;
            color: #94a3b8;
            line-height: 1.6;
        }

        .gallery-container {
            position: relative;
            width: 100%;
            height: 450px; 
            margin: 3rem auto 0;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px; /* 3D Perspective */
            overflow: visible;
        }

        .gallery-box {
            position: relative;
            width: 200px;
            height: 280px;
            transform-style: preserve-3d;
            animation: rotateGallery 20s linear infinite;
        }

        /* Pause rotation on hover */
        .gallery-box:hover {
            animation-play-state: paused;
        }

        .gallery-box span {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform-origin: center;
            /* 6 items = 360/6 = 60 degrees. TranslateZ pushes items outward */
            transform: rotateY(calc(var(--i) * 60deg)) translateZ(250px);
            -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.25));
            border-radius: 10px;
            overflow: hidden;
            border: 2px solid rgba(0, 247, 255, 0.2);
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
            transition: border 0.3s;
        }

        .gallery-box span:hover {
            border: 2px solid var(--main-color);
        }

        .gallery-box span img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @keyframes rotateGallery {
            0% { transform: perspective(1000px) rotateY(0deg); }
            100% { transform: perspective(1000px) rotateY(360deg); }
        }


        /* --- SKILLS --- */
        .skills { background: var(--second-bg-color); }

        .skills-wrapper {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
        }

        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: var(--accent-color);
        }

        .skill-box { margin-bottom: 1.5rem; }

        .skill-box .title {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .skill-bar {
            height: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            position: relative;
            width: 100%;
            border: 1px solid rgba(0, 247, 255, 0.1);
        }

        .skill-per {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            border-radius: 0.5rem;
            background: var(--main-color);
            box-shadow: 0 0 10px var(--main-color);
            width: 0; 
            transition: width 1.5s ease-in-out 0.2s; 
        }

        .skills.show-animate .skill-per.html { width: 95%; }
        .skills.show-animate .skill-per.css { width: 93%; }
        .skills.show-animate .skill-per.js { width: 80%; }
        .skills.show-animate .skill-per.react { width: 89%; }
        .skills.show-animate .skill-per.python { width: 86%; }
        .skills.show-animate .skill-per.cpp { width: 60%; }
        .skills.show-animate .skill-per.ms { width: 90%; }
        .skills.show-animate .skill-per.trouble { width: 85%; }
        .skills.show-animate .skill-per.ethical { width: 90%; }
        .skills.show-animate .skill-per.flutter { width: 70%; }
        .skills.show-animate .skill-per.php { width: 50%; }
        .skills.show-animate .skill-per.next { width: 89%; }
        .skills.show-animate .skill-per.node { width: 86%; }
        
        .tooltip {
            position: absolute;
            right: -14px;
            top: -28px;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--bg-color);
            padding: 2px 6px;
            background: var(--main-color);
            border-radius: 3px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .skill-bar:hover .tooltip { opacity: 1; }

        /* --- PROJECTS --- */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--second-bg-color);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
            transition: 0.4s;
        }

        .project-card:hover {
            transform: translateY(-10px);
            border-color: var(--main-color);
        }

        .project-img {
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s;
        }

        .project-card:hover .project-img img { transform: scale(1.1); }

        .project-info { padding: 1.5rem; }

        .project-info h3 {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
        }

        .project-info p {
            font-size: 0.9rem;
            color: #94a3b8;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .btn-small {
            display: inline-block;
            padding: 0.5rem 1rem;
            background: transparent;
            border: 1px solid var(--main-color);
            color: var(--main-color);
            border-radius: 0.5rem;
            transition: 0.3s;
        }

        .btn-small:hover {
            background: var(--main-color);
            color: var(--bg-color);
            box-shadow: 0 0 10px var(--main-color);
        }

        /* --- EDUCATION --- */
        .education { background: var(--second-bg-color); }

        .timeline-box {
            display: flex;
            justify-content: center;
        }

        .timeline {
            width: 100%;
            max-width: 800px;
            position: relative;
            padding-left: 2rem;
            border-left: 2px solid var(--main-color);
        }

        .timeline-item {
            margin-bottom: 2rem;
            background: var(--bg-color);
            padding: 1.5rem;
            border-radius: 0.5rem;
            position: relative;
            border: 1px solid rgba(0, 247, 255, 0.1);
        }

        .circle-dot {
            position: absolute;
            left: -2.6rem;
            top: 1.5rem;
            height: 1rem;
            width: 1rem;
            background: var(--main-color);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--main-color);
        }

        .timeline-date {
            font-size: 1rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }

        .timeline-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .timeline-text {
            font-size: 0.95rem;
            color: #94a3b8;
        }

        /* --- CONTACT SECTION --- */
        .contact { background: var(--bg-color); }

        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .contact-form-container {
            background: var(--second-bg-color);
            padding: 2.5rem;
            border-radius: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .contact-form-container h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .contact-form .input-box { margin-bottom: 1.2rem; }

        .contact-form .input-box input,
        .contact-form .input-box textarea {
            width: 100%;
            padding: 1rem;
            background: var(--input-bg);
            color: var(--text-color);
            border-radius: 0.5rem;
            font-size: 0.95rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: 0.3s;
            resize: none;
        }

        .contact-form .input-box input:focus,
        .contact-form .input-box textarea:focus {
            border-color: var(--main-color);
            background: rgba(0, 247, 255, 0.05);
        }

        .btn-block {
            width: 100%;
            padding: 1rem;
            font-size: 1.1rem;
        }

        .contact-intro {
            color: #94a3b8;
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem 1.5rem;
            margin-bottom: 3rem;
        }

        .info-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left; 
        }

        .info-card i {
            font-size: 1.5rem;
            color: var(--text-color);
            margin-bottom: 0.8rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
        }

        .info-card:hover i {
            border-color: var(--main-color);
            color: var(--main-color);
            box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
            transition: 0.3s;
        }

        .info-card h4 {
            font-size: 1.1rem;
            margin-bottom: 0.4rem;
            font-weight: 600;
        }

        .info-card p, .info-card a {
            font-size: 0.9rem;
            color: #94a3b8;
            line-height: 1.4;
            transition: 0.3s;
        }

        .info-card a:hover { color: var(--main-color); }

        .map-container {
            width: 100%;
            height: 250px;
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .map-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(30%) contrast(110%);
        }

        /* --- SOCIAL LINKS & FOOTER --- */
        .footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem 9%;
            background: var(--second-bg-color);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
        .footer .text {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .social-links {
            display: flex;
        }

        .social-links a {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 2.5rem;
            height: 2.5rem;
            background: transparent;
            border: 1px solid var(--main-color);
            border-radius: 50%;
            color: var(--main-color);
            margin: 0 0.5rem;
            transition: 0.3s;
            box-shadow: 0 0 5px rgba(0, 247, 255, 0.3);
        }

        .social-links a:hover {
            background: var(--main-color);
            color: var(--bg-color);
            transform: translateY(-5px);
            box-shadow: 0 0 15px var(--main-color);
        }

        .social-links .wap a:hover {
            border-color: #25D366;
            background: #25D366;
            box-shadow: 0 0 1rem #25D366;
        }

        .social-links .facebook a:hover {
            border-color: #1877F2;
            background: #1877F2;
            box-shadow: 0 0 1rem #1877F2;
        }

        .social-links .instagram a:hover {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            border-color: transparent; 
            box-shadow: 0 0 1rem #E1306C;
        }

        .social-links .github a:hover {
            border-color: #ffffff;
            background: #ffffff;
            box-shadow: 0 0 1rem rgba(255, 255, 255, 0.5);
        }

        .copyright {
            font-size: 0.9rem;
            color: #94a3b8;
            margin-top: 1.5rem;
        }

        /* --- SCROLL REVEAL ANIMATIONS FOR SECTIONS (SIDES POP-UP) --- */
        section {
            opacity: 0;
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }

        /* Odd sections slide in from the left */
        section:nth-of-type(odd) {
            transform: translateX(-150px);
        }

        /* Even sections slide in from the right */
        section:nth-of-type(even) {
            transform: translateX(150px);
        }

        section.show-section {
            opacity: 1;
            transform: translateX(0);
        }


        /* --- RESPONSIVE MEDIA QUERIES --- */
        @media (max-width: 991px) {
            html {
                font-size: 80%;
            }

            section {
                padding: 5rem 5% 2rem;
            }

            nav {
                padding: 1.3rem 5%;
            }
            
            .hamburger { 
                display: block; 
                z-index: 1001;
            }
            
            .nav-links {
                position: absolute;
                top: 100%; 
                left: -100%; 
                width: 100%;
                height: auto; 
                padding: 2rem 0;
                background: var(--second-bg-color); 
                display: flex; 
                flex-direction: column;
                justify-content: center;
                transition: 0.4s ease; 
                box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
                border-bottom: 1px solid rgba(0,247,255,0.1);
            }
            
            .nav-links.active { 
                left: 0;
            }

            .nav-links ul {
                display: flex;          
                flex-direction: column; 
                gap: 2rem;              
                z-index: 100;
                justify-content: center;
                align-items: center;
                font-size: 1.5rem;
                margin: 0;
                text-align: center;
            }
            
            .hero { 
                flex-direction: column-reverse; 
                gap: 2.9rem; 
                text-align: center; 
                padding-top: 10rem;
            }
            
            .hero-content {
                margin-top: 0; /* Reset for mobile */
            }

            .hero-social {
                justify-content: center; /* Center icons on mobile */
            }

            .hero-btns { 
                justify-content: center; 
            }
            
            .hero-img .img-box { 
                width: 50vw; 
                height: 50vw; 
            }

            .gallery-box {
                width: 150px;
                height: 220px;
            }
            .gallery-box span {
                transform: rotateY(calc(var(--i) * 60deg)) translateZ(180px);
            }
            
            .contact-wrapper {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .contact-form-container {
                order: 2; 
            }

            .info-grid {
                grid-template-columns: repeat(2, 1fr); 
                gap: 2rem 1rem;
                margin-top: 1rem;
            }

            .info-card {
                text-align: center;
                align-items: center; 
            }
            
            .info-card i {
                width: auto;
                height: auto;
                border: none;
                font-size: 2rem;
                margin-bottom: 1rem;
                color: var(--text-color);
            }

            .info-card h4 {
                font-size: 1rem;
                color: #e2e8f0;
                margin-bottom: 0.5rem;
            }

            .info-card p, .info-card a {
                font-size: 0.85rem;
                color: #94a3b8;
            }
            
            .timeline {
                padding-left: 0;
            }
        }
            
        @media (max-width: 450px) {
            html {
                font-size: 70%; 
            }
            .hero-img .img-box { 
                width: 70vw; 
                height: 70vw; 
            }
            .gallery-container {
                height: 400px;
            }
            .gallery-box {
                width: 120px;
                height: 180px;
            }
            .gallery-box span {
                transform: rotateY(calc(var(--i) * 60deg)) translateZ(140px);
            }
        }