

/* Update Variables for Light/Dark Mode */
:root {
    --primary: #00d2ff;
    --secondary: #928dab;
    --bg-color: #0f0c29;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
}

[data-theme="light"] {
    --bg-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a1a;
    --text-dim: #4a4a4a;
}

/* Background must update with theme */
.bg-gradient {
    background: var(--bg-color);
    transition: background 0.5s ease;
}

/* Hamburger Menu (The missing pieces) */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* Theme Toggle Button Style */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 5px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}


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

body {
    font-family: 'Inter', sans-serif;
    background: #0f0c29;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    z-index: -2;
}

.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* Ensures circles don't block clicks/scrolling */
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    filter: blur(80px);
    opacity: 0.4;
    /* Added will-change for better performance */
    will-change: transform;
    animation: move 20s infinite alternate ease-in-out;
}

.circle:nth-child(1) { 
    width: 300px; 
    height: 300px; 
    top: 10%; 
    left: 10%; 
}

.circle:nth-child(2) { 
    width: 450px; 
    height: 450px; 
    bottom: 5%; 
    right: 5%; 
    background: linear-gradient(to right, #9d50bb, #6e48aa); 
    animation-duration: 25s; /* Different speed makes it look more natural */
    animation-direction: alternate-reverse;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(250px, 100px); } /* Increased movement for visibility */
}

/* IMPORTANT: Ensure your sections are transparent */
section {
    background: transparent !important;
}



/* Glassmorphism Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.7;
}

.nav-links li a:hover, .nav-links li a.active {
    opacity: 1;
    color: var(--primary);
}

/* Icon Spacing */
.btn i, .btn-cv-nav i {
    margin-right: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Hover effect for the icons specifically */
.btn:hover i {
    transform: scale(1.1);
}



.btn-cv-nav {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
    opacity: 1 !important;
}
.btn-cv-nav:hover {
    background: var(--primary);
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 100px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
}

.profile-img img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    object-fit: cover;       /* prevents stretching */
  object-position: center; /* keeps face centered */
  display: block;
  margin: 0 auto;  
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 0.5rem; 
}

/* Typewriter Cursor Effect */
.typewriter {
    display: inline-block;
    min-height: 1.5rem; /* Prevents layout jump */
    border-right: 3px solid var(--primary); /* The cursor */
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

/* Ensure the H3 doesn't collapse while empty */
.hero h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
    font-weight: 500;
}
.subtitle { font-weight: 600; margin-bottom: 1rem; }
.description { max-width: 600px; margin: 0 auto 2rem; color: var(--text-dim); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;

    /* display: inline-block; */
    margin: 0.5rem;
    transition: 0.3s ease;
}

.btn.primary { 
    background: var(--primary); 
    color: #000; 
}

.btn.secondary { 
    border: 1px solid white; 
    color: white; 
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.btn.secondary:hover { border: 1px solid var(--primary); color: var(--primary);}
/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.skill-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
        transition: 0.4s ease;
        cursor: default;
}
.skill-badge:hover {
    /* background: var(--primary); */
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--text-dim);
}

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

.project-card {
    transition: 0.4s ease;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-left: 2px solid var(--primary);
}

.project-info h3{
    margin-bottom: 10px;
}

.project-link {
    display: block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Timeline */
.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    transition: 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-left: 2px solid var(--primary);
}

.date { color: var(--primary); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; }

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: auto;
}

.form-group { margin-bottom: 1.5rem; }

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    outline: none;
}

input:focus, textarea:focus { border-color: var(--primary); }

/* Footer */
/* .footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: 0.3s;
}

.social-links a:hover { color: var(--primary); } */

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    margin-top: 50px;
}

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

.social-links a {
    color: var(--text-dim);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Brand Colors on Hover */
.social-links a:hover {
    transform: translateY(-5px);
}

.fa-github:hover { color: #ffffff; }
.fa-linkedin:hover { color: #0077b5; }
.fa-x-twitter:hover { color: #ffffff; }
.fa-whatsapp:hover { color: #25d366; }
.fa-phone-alt:hover { color: var(--primary); }
.fa-envelope:hover { color: #ea4335; }

.copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}


.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(15, 12, 41, 0.95);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.5rem 0; }
    /* .hamburger { cursor: pointer; display: block; } */

    .hamburger { display: flex; }
    
    /* Hamburger Animation when Active */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero h3 { font-size: 1.2rem; }
    .description { padding: 0 1rem; }
}