/* ----------------------------------- */
/* 1. Global Styles & Variables (Light Theme - Color Enhanced) */
/* ----------------------------------- */
:root {
    --color-primary: #007bff; /* Professional Blue Accent */
    --color-secondary: #333333; /* Dark Gray Text/Headings */
    --color-text-light: #555555; /* Medium Gray Text */
    --color-background-light: #ffffff; /* White Background */
    --color-section-bg: #f5f5f5; /* Light Gray for alternating sections */
    --color-card-background: #ffffff; /* White for cards */
    --color-border-gray: #e9ecef; /* Very Light Gray border */
    --font-mono: 'Roboto Mono', monospace;
    --font-sans: 'Roboto', sans-serif;
    --border-radius: 6px;
    --max-width: 1000px;
    --font-sans: 'Inter', sans-serif; /* Changed from Roboto to Inter */
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-background-light);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    line-height: 1.75; /* Increased from 1.6 for better flow */
    scroll-behavior: smooth; /* Ensure this is present for smooth transitions */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--color-secondary);
    font-weight: 700;
}

section {
    padding: 100px 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

/* Reusable Button Style */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-primary); /* Button fills with accent color */
    color: var(--color-background-light); /* Text becomes white on hover */
}


/* ----------------------------------- */
/* 2. Navigation Bar */
/* ----------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    background-color: var(--color-background-light);
    /* Add a background pattern or subtle gradient */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 10px 10px; /* Subtle dot or line pattern */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    border-bottom: 1px solid var(--color-border-gray);
}

.navbar .logo {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--color-primary);
}

.navbar nav a {
    margin-left: 20px;
    color: var(--color-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
}

.navbar nav a:hover {
    color: var(--color-primary);
}


/* ----------------------------------- */
/* 3. Hero Section */
/* ----------------------------------- */
.hero-section {
    min-height: 80vh; /* Make it slightly shorter for the light theme */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid var(--color-border-gray);
}

.hero-content p:first-child {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 70px;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 50px;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.hero-content .tagline {
    max-width: 500px;
    font-size: 18px;
    margin-bottom: 40px;
}

.profile-image-container img {
    width: 300px; 
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid var(--color-primary);
    /* No dark theme filter needed, or you can use a subtle one */
    filter: none;
    transition: filter 0.5s ease;
}

.profile-image-container img:hover {
    /* Subtle hover: slightly desaturate to emphasize the professionalism */
    filter: saturate(1.1); 
}


/* ----------------------------------- */
/* 4. Section Headings & About Me */
/* ----------------------------------- */
/* Apply the light gray background to the About section */
.about-section {
    background-color: var(--color-section-bg); 
}

/* Apply the light gray background to the Services section (New) */
#services {
    background-color: var(--color-section-bg);
}

.about-section h2, .projects-section h2, .contact-section h2, #services h2 {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px; 
}

/* The blue accent line under the headings */
.about-section h2::after, .projects-section h2::after, .contact-section h2::after, #services h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px; 
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 0;
}
.about-section h2, .projects-section h2, .contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px; /* Add space for underline */
}

/* Remove the absolute positioning for the line under the title */
.about-section h2::after, .projects-section h2::after, .contact-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px; /* Slightly thicker line */
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 0;
}

.about-section .content-wrapper {
    display: flex;
    gap: 50px;
}

.about-section .text-content {
    flex: 2;
    font-size: 16px;
}

.about-section .text-content p {
    margin-bottom: 15px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    padding-left: 20px;
    list-style: none;
    margin-top: 20px;
}

.skills-list li {
    position: relative;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-light);
}

.skills-list li::before {
    content: '✓'; /* Changed from '▹' to '✓' for a corporate/cleaner look */
    color: var(--color-primary);
    position: absolute;
    left: -20px;
    font-weight: 700;
}

/* ----------------------------------- */
/* 5. Projects/Experience Section */
/* ----------------------------------- */

.project-card {
    background-color: var(--color-card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    /* Enhanced Shadow for a more appealing lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    border-left: 5px solid transparent; /* Base state */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-primary); /* Accent border on hover */
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--color-card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    /* Adjusted shadow for a softer, lighter look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    border: 1px solid var(--color-border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-card .description {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.project-card .tags span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-secondary); /* Darker text for readability */
    background-color: rgba(0, 123, 255, 0.1); /* Light blue tag background */
    padding: 5px 10px;
    margin-right: 8px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.project-card .links a {
    margin-right: 15px;
    color: var(--color-primary);
    font-family: var(--font-mono);
}

.project-card .links a:hover {
    color: var(--color-secondary);
}


/* ----------------------------------- */
/* 6. Contact & Footer */
/* ----------------------------------- */
/* The contact line needs to be centered on the new background */
.contact-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.contact-section h2 {
    font-size: 40px;
}

.contact-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-section .btn {
    font-size: 18px;
    padding: 15px 30px;
    margin-bottom: 40px;
}

.contact-section .social-links a {
    margin: 0 15px;
    font-size: 16px;
    font-family: var(--font-mono);
    color: var(--color-text-light); /* Less distracting link color */
}

.contact-section .social-links a:hover {
    color: var(--color-primary);
}

footer {
    text-align: center;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border-gray);
}
footer {
    /* Set footer background to the subtle light gray */
    background-color: var(--color-section-bg);
    text-align: center;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border-gray);
}

/* ----------------------------------- */
/* 7. Media Queries (Responsiveness) */
/* ----------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
    }

    .navbar nav {
        /* Hide traditional nav on small screens for a cleaner example */
        display: none; 
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        order: 2;
    }
    
    .profile-image-container {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content h2 {
        font-size: 30px;
    }

    .about-section .content-wrapper {
        flex-direction: column;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }
}
/* ----------------------------------- */
/* 8. JavaScript Animation Styles */
/* ----------------------------------- */

/* Initial state: Hidden and moved down slightly */
.hidden-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Final state: Visible and in place */
.fade-in-animation {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* To avoid flash of unstyled content on large elements like sections */
.about-section, .projects-section, #services, .contact-section {
    transition-delay: 0.1s;
}

/* Give cards a slight delay so they fade in one after another */
.project-card:nth-child(1) { transition-delay: 0.2s; }
.project-card:nth-child(2) { transition-delay: 0.3s; }
.project-card:nth-child(3) { transition-delay: 0.4s; }

/* Typing Cursor Effect */
#typed-text-target {
    border-right: 2px solid var(--color-primary); /* The cursor line */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide the full text until typed */
    animation: 
        blink-caret 0.75s step-end infinite; /* Cursor animation */
}

/* Define the blinking animation */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-primary); }
}
