:root {
    --bg-color: #050a14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent: #00d2ff;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
}

/* --- HERO SECTION (HEADER) --- */
#header {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(5, 10, 20, 1)), url("background.png");
    background-size: cover;
    background-position: center;
    
    /* CHANGE THIS LINE FROM 'fixed' TO 'scroll' */
    background-attachment: scroll; 
    
    position: relative;
    overflow: hidden;
}

.container { 
    padding: 0 10%; 
    width: 100%;
}

.header-text h1 {
    font-size: 3.5rem; /* Standardizing size */
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    margin-top: 20px;
}

/* Ensure the particle background stays behind the other sections */
#particles-js {
    position: fixed;
    z-index: -1; 
}

/* --- ABOUT SECTION LAYOUT --- */
#about .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligns text to the top of the image */
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%; /* Keeps the image exactly this wide */
}

.about-col-1 img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15); /* Soft glowing border */
}

.about-col-2 {
    flex-basis: 60%; /* Gives the text plenty of breathing room */
}
/* --- ABOUT SECTION LAYOUT --- */
.about-col-1 {
    flex-basis: 40%; /* Bumps up the column size significantly */
    max-width: 450px; /* Stops it from getting too massive on huge screens */
}

.about-col-1 img {
    width: 100%; /* Tells the image to fill the whole column */
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.about-col-2 {
    flex-basis: 55%; /* Takes up the remaining space for the text */
}
/* --- FIXING THE TABS --- */
.tab-titles {
    display: flex;
    margin: 30px 0 20px;
}
/* --- ABOUT PHOTO "DULL" EFFECT --- */
.about-photo-wrapper {
    width: 320px; /* Force a consistent width to match your screenshot */
    height: 400px; /* Force a consistent height to keep it a rectangle */
    border-radius: 20px;
    
    /* YOUR PHOTO IS USED HERE AS A BACKGROUND */
    background-image: url("png.png");
    background-size: cover;
    background-position: center top; /* Keeps your face focused */
    
    position: relative;
    overflow: hidden;
    
    /* A soft blue shadow and border to give it that "glowing UI" feel */
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

/* This is the dark overlay layer that creates the "dull" effect */
.about-photo-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* This creates a soft transition, from a 60% dark overlay to an 85% dark overlay at the bottom */
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(5, 10, 20, 0.85));
}

/* Hover effect: The Dull effect slightly lifts when you hover */
.about-photo-wrapper:hover .about-photo-filter {
    opacity: 0.7; /* Becomes slightly brighter on hover */
    transition: opacity 0.3s;
}

.tab-links {
    margin-right: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text-dim);
}

.tab-links.active-link {
    color: var(--text);
}

/* The cool blue underline for the active tab */
.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.3s;
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-contents {
    display: none; /* Hides the content by default */
}

.tab-contents.active-tab {
    display: block; /* Shows only the active content */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media only screen and (max-width: 800px) {
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 { margin-bottom: 30px; }
}

/* Make sure it stacks nicely on mobile phones */
@media only screen and (max-width: 800px) {
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 {
        margin-bottom: 30px;
        text-align: center;
    }
    .about-col-1 img {
        max-width: 300px; /* Prevents it from getting too huge on phones */
    }
}

/* Hero Section with Glassmorphism */

.container { padding: 0 10%; }

.logo { font-size: 2rem; color: var(--accent); font-weight: 800; }

/* --- NAVIGATION MENU FIX --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: fixed; /* Keeps it at the top */
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.85); /* Adds a dark background so text doesn't overlap */
    backdrop-filter: blur(10px); /* Gives it a modern glass blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul {
    list-style: none; /* Removes the bullets */
}

nav ul li {
    display: inline-block; /* Makes them sit horizontally */
    margin-left: 40px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none; /* Removes the purple underline */
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent); /* Turns blue when you hover */
}

nav .fas {
    display: none; /* Hides the mobile menu icons on desktop screens */
}

/* --- MOBILE MENU FIX --- */
@media only screen and (max-width: 800px) {
    nav .fas {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    nav ul {
        background: #0f172a;
        position: fixed;
        top: 0;
        right: -200px; /* Keeps the sidebar hidden until clicked */
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li {
        display: block;
        margin: 25px;
    }
    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
}

/* Projects - The "Data Lab" Look */
#projects { padding: 80px 0; }

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    background: rgba(0, 210, 255, 0.05);
}

.project-card h2 { color: var(--accent); margin-bottom: 15px; }

.tag {
    font-size: 0.7rem;
    background: rgba(0, 210, 255, 0.2);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 5px;
}

/* Buttons */
.btn-ml {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-ml:hover { background: var(--accent); color: #000; }

/* --- FOOTER SOCIAL ICONS --- */
.footer-social-icons a {
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 15px;
    color: var(--text-dim);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-social-icons a:hover {
    color: var(--accent); /* Lights up with your Data Blue color */
    transform: translateY(-5px); /* Cool little bounce up */
}
/* Space out the social icons in the contact section */
.social-icons a {
    text-decoration: none;
    font-size: 22px; /* Making them slightly larger for better visibility */
    margin-right: 20px; /* This adds the space you need */
    color: #ababab;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: #38bdf8;
    transform: translateY(-3px); /* Subtle lift on hover */
}
/* --- CLEANUP & MOBILE FIXES --- */

/* Fix the About Photo for all screens */
.about-photo-wrapper {
    width: 100%;
    max-width: 350px; /* Limits size on desktop */
    aspect-ratio: 3/4; /* Keeps it a consistent rectangle */
    border-radius: 20px;
    background-image: url("png.png");
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0 auto; /* Centers it when it stacks on mobile */
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

/* Fix the project grid so it doesn't overlap on iPads/Tablets */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    padding: 10px;
}

/* Ensure the background image doesn't zoom in weirdly on mobile */
@media only screen and (max-width: 768px) {
    #header {
        background-attachment: scroll !important; /* Fixed background breaks on many mobile browsers */
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }
    
    .header-text h1 {
        font-size: 2.4rem; /* Smaller title for phones */
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100% !important;
        text-align: center;
    }

    .tab-titles {
        justify-content: center;
        gap: 20px;
    }
    
    .tab-links {
        margin-right: 0; /* Clears the desktop margin */
    }
}