
:root {
    --bg-color: #121212;
    --primary-text-color: #e0e0e0;
    --accent-color: #00f5a0;
    --secondary-bg-color: #1e1e1e;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 100px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensures it stays on top of everything else */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    
}
.logo{
     font-size: 24px;
    font-weight: bold;
    text-decoration: none;

    /* The Gradient Magic */
    background: linear-gradient(90deg, var(--accent-color), #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
nav ul {
    display: flex;
    list-style: none; /* Removes bullet points */
    gap: 30px; /* Modern way to add space between items */
}
nav ul li a {
    font-size: 18px;
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: var(--accent-color);
}
.menu-btn {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: 1px solid #555;
    color: var(--primary-text-color);
    font-size: 24px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.menu-btn:hover{
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Hero Section Styles */
/* HERO SECTION STYLES - UPDATED TWO-COLUMN LAYOUT */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 100vh;
    padding: 0 8%;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.hero-text .description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-image img {
    width: 350px;
}
.hero-avatar-mobile{
    display: none; /* Hidden on desktop */
}

/* --- BUTTON STYLES (Should be the same) --- */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    background-color: var(--accent-color);
    color: #111;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #111;
}
#contact{
    /* the basic box 
    border: 1px solid gray;
    border-radius: 1rem;
    margin: 20px ; */

    /* Frosted glass effect */
    background-color: rgba(30, 30, 30, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blurs the content behind it */

    border: 1px solid #444; /* A border color that fits our theme */
    border-radius: 15px; /* Similar to your 1rem */
    padding: 60px; /* Adds space inside the box */
    margin: 100px 8% 0; /* Top/bottom and side margins */
}
/* --- CONTENT SECTIONS GENERAL STYLES --- */
.content-section {
    padding: 100px 8%;
    text-align: center;
}

.content-section.gray-bg {
    background-color: var(--secondary-bg-color);
}

.content-section h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

/* --- SKILLS & TOOLS - UPGRADED EYE-CATCHING STYLES --- */
.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 25px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(110deg, transparent, var(--accent-color), transparent);
    transition: transform 0.4s;
    transform: translateX(-100%);/*initially the slash of gradient color doesnt show*/
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 25px rgba(0, 245, 160, 0.2);
}

.skill-card:hover::before {
    transform: translateX(0);/*on hover the slash of gradient color shows*/
}

/* This part fixes the icons being invisible */
.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    filter: invert(1) brightness(2); /* Fix for dark icons */
}

.skill-card p {
    font-weight: 600;
    position: relative;
    z-index: 2;
}
/* --- Projects Section --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--secondary-bg-color);
    border: 1px solid #333;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.2);
}

.project-card img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.project-card h3 {
    font-size: 22px;
    padding: 20px 20px 10px 20px;
}

.project-card p {
    padding: 0 20px 20px 20px;
}

.project-links {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-wrap: wrap; /* This is the key! */
    gap: 15px; /* Modern way to add space */
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}
#contact{
        margin-bottom: 60px;
    }
/* --- Contact Section --- */
.contact-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Space between text and form */
    text-align: left;
}

.contact-text {
    flex-basis: 50%; /* Each part takes up half the space */
}

.contact-form {
    flex-basis: 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-size: 16px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: none;
}

/* --- Footer --- */
footer {
    padding: 60px 8% 30px;
    border-top: 1px solid #333;
}

.flag-icon {
    width: 24px;      /* Adjust the size as you like */
    height: auto;
    vertical-align: middle; /* Aligns the icon nicely with the text */
    margin-right: 8px;      /* Adds a little space after the flag */
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-left h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials img {
    width: 24px;
    height: 24px;
    filter: invert(0.8);
    transition: filter 0.3s;
}

.footer-socials img:hover {
    filter: invert(1);
}
/* Back to Top Button Styling */

#back-to-top-btn {
    position: fixed; /* Pinned to the browser window */
    bottom: 30px;
    right: 30px;
    z-index: 99; /* Stays on top, but below the header */
    
    /* Appearance */
    background-color: #555;
    color: white;
    border: none;
    border-radius: 50%; /* Makes it a circle */
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-decoration: none;

    /* Centering the arrow */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    
    /* Smooth fade-in/out effect */
    transition: opacity 0.3s, visibility 0.3s;
}

/* The class that makes the button visible */
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* ======================================== */
/* RESPONSIVE STYLES (MOBILE)               */
/* ======================================== */

@media (max-width: 900px) {
    /* Switch to the stacked layout from your screenshot */
    /* --- Header & Nav Fix --- */
    /* 1. Show the hamburger button */
    .menu-btn {
        display: block;
        z-index: 101; /* Must be on top */
    }

    /* 2. Hide the desktop nav links by default */
    nav ul {
        display: none;
    }

    /* 3. Style the slide-out menu container */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 100;
    }
    
    .main-nav.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 4. IMPORTANT: When the menu is active, show the UL inside it */
    .main-nav.is-active ul {
        display: flex; /* Use flex to enable flex properties */
        flex-direction: column; /* Stack the list items */
        align-items: center; /* Center them horizontally */
        gap: 20px;
    }

    /* 5. Style the list items and links */
    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 28px;
        font-weight: bold;
        display: block;
        padding: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .main-nav.is-active ul li a {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* 6. Staggered animation delay */
    /* .main-nav.is-active li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.is-active li:nth-child(2) { transition-delay: 0.2s; }
    .main-nav.is-active li:nth-child(3) { transition-delay: 0.3s; }
    .main-nav.is-active li:nth-child(4) { transition-delay: 0.4s; } */


    /* --- Hero Section Fix --- */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 5% 50px 5%;
        min-height: auto;
    }

    /* Hide the large desktop image */
    .hero-image {
        display: none;
    }

    /* Show the small mobile avatar */
    .hero-avatar-mobile {
        display: inline-block; /* Make it visible */
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin-bottom: 30px;
        border: 3px solid var(--accent-color);
    }
    
    .hero-text h1 {
        font-size: 45px;
    }

    .hero-buttons {
        justify-content: center;
    }
    .contact-container {
        flex-direction: column; /* Stacks the text on top of the form */
        text-align: left;
    }
    #contact h2 {
        font-size: 32px; /* Reduces font size on smaller screens */
    }
    #contact{
        margin-bottom: 60px;
    }
    /* --- Footer for Mobile --- */
    .footer-container{
         flex-direction: column;
        align-items: center; /* <-- To this */
        text-align: center; 
    }
    .footer-bottom{
        justify-content: space-between;
    }
    .footer-bottom p{
        font-size: smaller;
    }

    
}

