/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    /* background-color: #f4f4f4; */ /* Removed default background color */
    color: #333;
    line-height: 1.6;
    position: relative; /* Needed for absolute positioning of canvas */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Overlay for when mobile menu is active */
body.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Below header, above main content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body.menu-active.transition-active::before {
    opacity: 1;
    visibility: visible;
}

#tsparticles {
    position: fixed; /* Use fixed to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
    background: linear-gradient(to right, #6a11cb, #2575fc); /* Set gradient background here */
}

a {
    color: #007bff; /* Standard link blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background-color: #333; /* Dark background for header */
    color: #fff;
    padding: 10px 0;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.nav-logo:hover {
    text-decoration: none;
    color: #f0a500; /* Highlight color on hover */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #f0a500; /* Highlight color */
    color: #333;
    text-decoration: none;
}

/* Language Switch Links - New Style */
.language-switch {
    display: flex; /* Align items horizontally */
    align-items: center;
    margin-left: 15px; /* Adjust spacing */
}

.language-switch a,
.language-switch span {
    color: #fff;
    padding: 5px 10px;
    margin: 0 3px; /* Space between language options */
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switch a:hover {
    background-color: #f0a500;
    color: #333;
    text-decoration: none;
}

/* Style for the active/current language (using a span) */
.language-switch span {
    color: #f0a500; /* Highlight color for active language */
    font-weight: bold;
    cursor: default; /* Indicate it's not clickable */
    border: 1px solid rgba(240, 165, 0, 0.5); /* Optional subtle border */
}

/* Main Content Area */
main {
    padding-top: 20px; /* Add padding below the sticky header */
}

/* Hero Section */
.hero {
    /* background: linear-gradient(to right, #6a11cb, #2575fc); */ /* Removed background from hero */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure content is above the fixed background */
    z-index: 1;
}

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

.hero-content p {
    font-size: 1.2em;
}

/* Style for the email link/button in the hero section */
.hero-contact-button {
    display: block; /* Stack buttons */
    margin: 10px auto 0 auto; /* Adjusted margin for stacking */
    padding: 10px 20px;
    font-size: 1em;
    background-color: #f0a500; /* Accent color */
    color: #333; /* Dark text for contrast */
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-contact-button:hover {
    background-color: #e69500; /* Slightly darker hover */
    text-decoration: none;
    color: #222;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Space above the footer */
}

/* Responsive Design - Refined for Mobile */
@media (max-width: 768px) {
    body {
        font-size: 95%; /* Slightly reduce base font size */
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
        position: relative;
    }

    .nav-logo {
        margin: 0;
    }

    .nav-button {
        display: inline-block !important;
        margin-left: 10px;
        z-index: 1010;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(51, 51, 51, 0.98);
        padding-top: 70px;
        z-index: 1005;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 60px 15px; /* Reduce padding */
        min-height: auto; /* Remove fixed min-height */
    }

    .hero-content h1 {
        font-size: 2.2em; /* Reduce heading size */
    }

    .hero-content p {
        font-size: 1em; /* Keep paragraph size */
    }
    
    .hero-content p[style*="font-size: 1.4em"] { /* Target the tagline specifically */
        font-size: 1.2em !important; /* Reduce tagline size */
    }

    .hero-contact-button {
        display: block; /* Stack buttons */
        margin: 10px auto 0 auto; /* Adjusted margin for stacking */
        padding: 10px 20px;
        font-size: 1em;
        width: 80%; /* Make buttons wider */
        max-width: 300px;
    }
    
    .hero-contact-button[style*="margin-left"] {
        margin-left: auto !important; /* Override inline style for centering */
    }

    /* About Page Adjustments */
    .about-container {
        flex-direction: column;
        align-items: center;
        padding: 25px 15px; /* Adjust padding */
        gap: 25px;
        width: 90%; /* Use percentage width */
        box-sizing: border-box;
    }

    .profile-pic-container {
        flex-basis: auto;
        width: 150px;
    }

    .profile-pic {
        max-width: 150px;
    }

    .about-text h1 {
        font-size: 1.8em; /* Reduce size */
        text-align: center;
    }

    .about-text p {
        font-size: 1em;
    }
    
    /* Project & Contact Container Adjustments */
    .container[style*="max-width: 900px"],
    .form-container {
        width: 90%;
        padding: 25px 15px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    /* Ensure project list items have enough space */
    .project-list h3 {
        font-size: 1.1em;
    }
    .project-list p {
        font-size: 0.95em;
    }
    
    /* Contact Form Adjustments */
    .form-container h2 {
        font-size: 1.8em;
    }

    .nav-button {
        display: inline-block !important;
        margin: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        /* Remove margin-top from previous responsive rule */
    }

    nav ul li {
        margin: 15px 0; /* Increase vertical space */
        width: 80%; /* Limit width */
        text-align: center;
    }
    
    /* Keep nav ul li a styles from previous responsive rule */
    nav ul li a,
    .language-switch span,
    .language-switch a {
        display: block;
        width: auto;
        padding: 10px 15px;
        font-size: 1.1em;
    }
    
    .language-switch {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .language-switch a,
    .language-switch span {
        margin: 0 5px;
        display: inline-block;
        padding: 8px 12px;
    }
}

/* You can add further specific rules for even smaller screens if needed */
/* @media (max-width: 480px) { ... } */

/* About Page Specific Styles */
.about-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 900px;
    display: flex; /* Enable flexbox */
    gap: 40px; /* Space between image and text */
    align-items: flex-start; /* Align items at the start */
}

.profile-pic-container {
    flex-basis: 200px; /* Fixed width for the picture container */
    flex-shrink: 0;
    text-align: center;
}

.profile-pic {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%; /* Make image circular */
    border: 5px solid #eee;
    margin-bottom: 15px;
}

.about-text {
    flex-grow: 1; /* Allow text content to take remaining space */
}

.about-text h1 {
    font-size: 2.5em;
    color: #333;
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 20px;
    border-bottom: 2px solid #f0a500; /* Accent border */
    padding-bottom: 10px;
}

.about-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center items */
        padding: 30px;
        gap: 30px;
    }

    .profile-pic-container {
        flex-basis: auto; /* Reset basis */
        width: 150px; /* Smaller image on mobile */
    }

    .profile-pic {
        max-width: 150px;
    }

    .about-text h1 {
        font-size: 2em;
        text-align: center;
    }

    .about-text p {
        font-size: 1em;
    }
}

/* Navigation button styles */
.nav-button {
    display: none; /* Hidden by default */
    background-color: #f0a500;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    line-height: 0; /* Fix alignment of SVG */
}

.nav-button:hover,
.nav-button.active {
    background-color: #e69500;
}

/* SVG icon styles */
.nav-button svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.nav-button .menu-icon,
.nav-button .close-icon {
    stroke: #333; /* Match icon color to text */
    stroke-width: 2px;
    transition: all 0.3s ease;
}

/* Navigation Links Wrapper */
.nav-links {
    display: flex; /* Keep flex for desktop */
    align-items: center;
}

/* Style the active state of the navigation button (toggled by JS) */
.nav-button.active {
    background-color: #e69500;
}

/* Home Page Sections */
.home-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 40px auto;
    background-color: #fff; /* White background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.home-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* Underline effect for section titles */
.home-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #f0a500; /* Accent color */
}

.home-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto; /* Center paragraph */
}

/* Grid layout for featured items (projects/skills) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.featured-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.featured-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.featured-item h3 a {
    color: #333;
    text-decoration: none;
}

.featured-item h3 a:hover {
    color: #007bff;
    text-decoration: underline;
}

.featured-item p {
    font-size: 0.95em;
    margin-bottom: 0;
    max-width: none; /* Reset max-width */
    text-align: left;
}

/* Button style for home sections */
.home-section-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-section-button:hover {
    background-color: #555;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        padding: 0;
    }
    
    .nav-container {
        padding: 10px 15px;
    }

    .nav-links {
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        padding-bottom: 30px;
    }
} 