html {
    scroll-behavior: smooth;
}

:root {
    /* Pure 95% Black Background */
    --bg-main: #080808; 
    --text-main: #e2e8f0;
    --accent-color: #89d3ce; 
}

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

/* --- HERO SECTION STYLES --- */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text {
    flex: 1;
}

/* Override previous center alignments */
.hero-header h1 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.hero-header .location-tag {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-image {
    flex-shrink: 0;
    margin-left: 2rem;
}

.profile-pic {
    width: 160px; /* You can adjust this size */
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: none; /* Accent color border */
    box-shadow: 0 0 15px rgba(123, 180, 166, 0.734); /* Soft glow */
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Responsive Mobile Layout */
@media (max-width: 650px) {
    .hero-header {
        flex-direction: column-reverse; /* Puts text below the image on phones */
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-header h1, 
    .hero-header .location-tag {
        text-align: center;
    }

    .hero-image {
        margin-left: 0;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    
    /* NEW: Animated Gradient Background */
    background: linear-gradient(135deg, #080808 0%, #111424 50%, #050b14 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Full Transparency for Container - Adjusted margin for navbar */
.container {
    max-width: 1000px;
    margin: 7rem auto 4rem auto; 
    padding: 2rem;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1;
}

/* Add padding to sections so anchor links clear the navbar */
section, header {
    scroll-margin-top: 90px;
}

.location-tag {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

h1 {
    font-size: 3.8rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
}

h2 {
    color: var(--accent-color);
    border-left: 3px solid #ffffff;
    padding-left: 15px;
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
}

.edu-item { margin-bottom: 1.5rem; padding-left: 15px; }
.date-tag { font-size: 0.85rem; opacity: 0.7; margin-top: 5px; }

/* Full Transparency for Project Cards */
.project-card {
    background: transparent;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.02); 
}

ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }

li {
    background: #2a2f40;
    padding: 8px 18px; 
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tech Stack Hover Animation */
.skills ul li {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skills ul li:hover {
    transform: translateY(-5px); 
    border-color: #4ecdc4; 
    background: rgba(78, 205, 196, 0.1); 
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3); 
    color: #fffafa;
}

/* Subtle stars/particles */
.particle { position: absolute; background: rgba(255,255,255,0.2); border-radius: 50%; pointer-events: none; }

/* Contact Form Styles */
.contact-form-container {
    margin-top: 1rem;
    background: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
}

.input-row input {
    flex: 1;
    border-radius: 30px !important; 
}

.contact-form input,
.contact-form textarea {
    background: #111424; 
    border: 1px solid #363b52;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #636a82;
    font-weight: 500;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.social-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.social-links-bottom a {
    color: #f1f1f1; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}

/* GitHub Button Background */
.social-links-bottom a[href*="github"] {
    background-color: #f3f4f7; /* Dark gray color */
    color: #000000; /* White text */
    padding: 8px 16px; /* Adds space inside so it looks like a button */
    border-radius: 20px; /* Rounds the corners */
    transition: transform 0.4s, background 0.4s;
}

/* LinkedIn Button Background */
.social-links-bottom a[href*="linkedin"] {
    background-color: #0039b5; /* Official LinkedIn Blue */
    color: #ffffff; /* White text */
    padding: 8px 16px;
    border-radius: 20px;
    transition: transform 0.4s, background 0.4s;
}

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

.submit-btn {
    background: #3bb42d; 
    color: rgb(255, 255, 255);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.submit-btn:hover {
    transform: translateY(-4px);
}

@media (max-width: 650px) {
    .input-row {
        flex-direction: column;
    }
    .form-footer {
        flex-direction: column-reverse; 
        gap: 1.5rem;
        align-items: center;
    }
}

/* --- NAVBAR STYLES --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #070d29c1; 

    /* 2. The magical blur effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Adds support for Safari browsers */
    
    display: flex;
    justify-content: space-between; /* This keeps them spread out properly */
    align-items: center;
    
    /* Change the 12% to push the buttons further in or out */
    padding: 0 12%; 
    
    z-index: 1000;
    box-shadow: none;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #000;
    margin-left: 100px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8; 
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions button {
    background: #1e293b; 
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
    margin-right: 100px;
}

.nav-actions button:hover {
    background: #334155;
    transform: scale(1.05);
}

@media (max-width: 650px) {
    .nav-links {
        display: none; 
    }
}

/* --- LIGHT MODE STYLES --- */
body.light-mode {
    --text-main: #0f172a;
    --accent-color: #0d9488; 
    
    /* NEW: Light Mode Animated Gradient */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

body.light-mode h1 { color: #0f172a; }
body.light-mode h2 { border-left-color: #0f172a; }

body.light-mode .project-card { border-color: rgba(0, 0, 0, 0.15); }
body.light-mode .project-card:hover { background: rgba(0, 0, 0, 0.03); }

body.light-mode li { 
    background: #e2e8f0; 
    border-color: rgba(0, 0, 0, 0.2); 
    color: #0f172a; 
}

body.light-mode .particle { background: rgba(0, 0, 0, 0.1); }

/* Light Mode Navbar */
body.light-mode .navbar { background-color: #ffffffbd; /* The blur effect */
                          backdrop-filter: blur(12px);
                          -webkit-backdrop-filter: blur(12px);
                        }
body.light-mode .nav-links a { color: #475569; }
body.light-mode .nav-links a:hover { color: #0f172a; }
body.light-mode .nav-actions button { background: #e2e8f0; color: #0f172a; }
body.light-mode .nav-actions button:hover { background: #cbd5e1; }
body.light-mode .logo-circle { background: #000000; color: #ffffff; }

/* Light Mode Form */
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* --- BACKGROUND ANIMATIONS --- */

/* 1. Keyframes for the particles generated by your JS */
@keyframes float {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0; 
    }
    20% { 
        opacity: 0.6; 
    }
    80% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-250px) translateX(30px); 
        opacity: 0; 
    }
}

/* --- INTRO BLOCK STYLES --- */
.intro-block {
    margin: 2rem 0;
}

.intro-block p {
    color: #ffffff; 
    font-size: 1.5rem; 
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* --- INTRO BLOCK STYLES --- */
.intro-block h2 {
    color: #ffffff; /* Makes the main sentence white */
    border-left: none; /* Removes that default white line */
    padding-left: 0; /* Removes the spacing from the line */
    font-size: 1.8rem; 
    font-weight: 600;
    line-height: 1.4;
    margin: 2rem 0;
}

.highlight-name {
    color: var(--accent-color) !important; /* Forces ONLY your name to be the accent color */
}

/* Light Mode Fix */
body.light-mode .intro-block h2 {
    color: #0f172a; /* Makes the main text dark in light mode */
}