:root{
    /* Colors */
    --bg-primary:#000000;
    --bg-span-rgb:245 244 218;
    --bg-surface:#1a1a1a;
    --text-main:#008BFF;
    --accent:#E4FF30;
    /* Font */
    --font-primary: 'Montserrat', sans-serif;
}

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

html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

body{
    background-color:var(--bg-primary);
    color:var(--text-main);
    font-family:var(--font-primary);
    line-height:1.6;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:2rem 5%;

}

.nav-links{
    list-style:none;
    display:flex;
    gap:2rem;
}

a{
    text-decoration:none;
    color:var(--text-main);
}

/* Hero-Section */
.hero-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    min-height:80vh;
    padding:0 5%;
    gap:4rem;
}

.hero-content{
    flex:1;/*Tells it to take up proportional space */
    max-width:700px;
}

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

/* Cinematic Image Styling */
.profile-img{
    width: 100%;
    max-width: 400px; /* Prevents the image from getting monstrously large */
    border-radius: 50%; /* Sharp, modern, slightly rounded corners */
    background-size:cover;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle edge definition */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Deep drop shadow for depth */
    position: relative;
    /* Optional: A subtle glow using your accent color */
    border-bottom: 4px solid var(--accent);

}

.hero-greeting{
    font-size:1rem;
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:1.5rem;
    color:var(--text-main);
    opacity:0.9;
}

.hero-title{
    font-size:clamp(2.5rem,5vw,4.5rem);
    line-height:1.1;
    margin-bottom:1.5rem;
}

.highlight{
    color:var(--accent);    
}

.hero-subtitle{
    font-size:1.2rem;
    line-height:1.8;
    opacity:0.8;
    margin-bottom:2.5rem;
    max-width:650px;
}

/* CTA-Buttons */
.hero-cta-group{
    display:flex;
    gap:1.5rem;
}

.btn{
    display:inline-block;
    padding:0.8rem 2.5rem;
    font-size:1rem;
    border-radius:4px;
    font-weight:600;
    transition:all 0.3s ease;
}

.btn-primary{
    background-color:var(--accent);
    color:var(--bg-primary);
    border:1px solid var(--accent);
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 20px rgba(228, 255, 48,0.6);
}

.btn-secondary{
    background-color:transparent;
    color:var(--text-main);
    border:1px solid var(--text-main);
}

.btn-secondary:hover{
    background-color:var(--text-main);
    color:var(--bg-primary);
    transform:translateY(-4px);
    box-shadow:0 10px 20px rgba(0, 139, 255,0.6)
}

/* Theme Toggle Styles */
.theme-btn{
    background:none;
    border:none;
    font-size:1.5rem;
    cursor:pointer;
    color:var(--text-main);
    transition: transform 0.3s ease;
}

.theme-btn:hover{
    transform:rotate(25deg);
}
/* When the .light-mode class is added to the <body>, 
   these variables OVERRIDE your default dark mode :root variables. 
*/
.light-mode{
    /* Colors */
    --bg-primary: #D0E7E6;
    --bg-span-rgb:4 70 204;
    --bg-surface: #95CCDD;
    --text-main: #0A2947;
    --accent: #4274D9;
}

/* Hid Hamburger on desktop by default */
.hamburger-btn{
    display:none;
    background:none;
    border:none;
    font-size:1.8rem;
    cursor:pointer;
    color:var(--text-main);

}

/* Mobile Breakpoint */
@media screen and (max-width:760px){
    /* Show hamburger icon */
    .hamburger-btn{
        display:block;
    }
    .nav-links{
        position:fixed;
        top:0;
        right:-100%;
        height:100vh;
        width:250px;
        background-color:var(--bg-surface);
        flex-direction:column;
        align-items:center;
        justify-content:center;
        transition:right 0.4s ease;/*Smooth slide in animation */
        box-shadow:-5px 0 15px rgba(0,0,0,0.1);
        z-index:100;
    }
    .nav-links.active{
        right:0;
    }

    /* Stack the Hero Section */
    .hero-container{
        flex-direction:column-reverse;
        justify-content:center;
        text-align:center;
        padding-top:6rem;
        gap:2rem;
    }

    .hero-cta-group{
        justify-content:center;
    }

    .profile-img{
        max-width:250px;
    }
}

/* Projects-Section */
.projects-section{
    padding:5rem 5%;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 3rem;
    padding-left: 1rem; /* Creates space for the border */
    border-left: 4px solid var(--accent); /* This creates that sharp cinematic line */
    letter-spacing: -1px;
}

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

.project-card{
    background-color:var(--bg-surface);
    border-radius:4px;
    padding:2rem;
    border:1px solid rgba(255,255,255,0.05);
    display:flex;
    flex-direction:column;
    transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 24px rgba(91, 35, 255,0.4);
    border-color:var(--accent);
}

.project-title{
    font-size:1.5rem;
    margin-bottom: 1rem;
    color:var(--text-main);
}

.project-desc{
    font-size:1rem;
    color:var(--text-main);
    opacity:0.8;
    margin-bottom:1.5rem;
    line-height:1.6;
}

.tech-stack{
    display:flex;
    flex-wrap:wrap;
    margin-bottom:1.5rem;
    gap:0.5rem;
}

.tech-stack span{
    font-size:0.8rem;
    padding:0.3rem 0.8rem;
    background-color:rgba(var(--bg-span-rgb)/10%);
    color:var(--accent);
    border-radius:50px;
}

/* The Link at the Bottom */
.project-link{
    margin-top:auto;/*Pushes the link to the very bottom of the car*/
    color:var(--accent);
    text-decoration:none;
    font-weight:600;
    font-size:0.9rem;
    text-transform:uppercase;
    letter-spacing:1px;
    transition:color 0.3s ease;

}

.project-link:hover{
    color:#ffffff;
}

/* About Section */
.about-section{
    padding:5rem 5%;
}

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

.about-narrative p{
    font-size:1.1rem;
    line-height:1.8rem;
    margin-bottom:1.5rem;
    opacity:0.85;
}

.about-skills h3{
    font-size:1.5rem;
    margin-bottom:1.5rem;
    color:var(--text-main);
}
/* Responsive adjustment for about section */

@media screen and (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Section */
.contact-section{
    padding:5rem 5%;
}

.contact-container{
    max-width:600px;
}

.contact-subtitle{
    opacity:0.8;
    font-size:1.1rem;
    margin-bottom:2.5rem;
    line-height:1.6rem;
}

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

.form-group{
    display:flex;
    flex-direction:column;
    gap:0.5rem;

}

.form-group label{
    font-size:1.1rem;
    font-weight:600;
    text-transform:uppercase;
    color:var(--text-main);
    letter-spacing:1px;
}

/* Form Input Styling */
.form-group input,
.form-group textarea{
    background-color:var(--bg-surface);
    color:var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding:1rem;
    border-radius:4px;
    font-family:inherit;
    font-size:1rem;
    transition:border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light mode specific border tweak for inputs */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(228, 255, 48, 0.2); /* Soft glow matching your accent */
}

.submit-btn {
    margin-top: 1rem;
    align-self: flex-start;
    cursor: pointer;
}




/* Scroll-Animations */
/* 1.Starting-State(Hidden) */
.scroll-element{
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.6s ease-out, transform 06s ease-out;
}

/* 2.The Visible State : Triggered by Js */
.scroll-element.visible{
    opacity:1;
    transform:translateY(0);
}

/* The Interactive State: Only applies AFTER it fades in */
.scroll-element.active:hover{
    transform:translatey(-8px);
    border-color:var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transition:transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}