/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: darkslategray; /* Dark background */
    color: #eee; /* Light text */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #debd29; /* White headings */
}

h2 {
    border-bottom: 2px solid #ff4a4a; /* Red accent line */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

a {
    color: #ff4a4a; /* Red accent for links */
    text-decoration: none;
}

a:hover {
    color: #fff;
}

/* --- Header & Navigation --- */
header {
    background-color: orange; /* Dark grey nav bg */
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #444;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff; /* White nav links */
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 0;
}
/* --- New Menu Toggler Button --- */
#menu-toggler {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 102; /* Ensures it's above the menu */
}

#menu-toggler:hover {
    color: #4affff; /* Red on hover */
}
/* Style for the 'active' page link */
nav ul li a.active,
nav ul li a:hover {
    color: #4affff; /* Red for active/hover */
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
    background-color: orange;
    border-top: 1px solid #444;
}

.social-icons a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff4a4a; /* Red hover for social icons */
}

/* --- Page: Home (Hero Section) --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #ff4a4a;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3aa6e0;
    color: #fff;
}

/* --- Page: Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #ff4a4a;
}

.skill-category h3 {
    margin-top: 0;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    background-color: #444;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
}

/* --- Page: Projects & Services (Cards) --- */
.card-container {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-top: 0;
    color: #ff4a4a;
}

/* --- Page: Resume --- */
.resume-section {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

.resume-section h3 {
    color: #ff4a4a;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.job-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.job-details {
    font-style: italic;
    color: #ccc;
    margin-bottom: 10px;
}

/* --- Page: Contact --- */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    background-color: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #ff4a4a;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #3aa6e0;
}
.profile-image {
    width: 200px; 
    height: 200px; /* Must match width for perfect circle */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the circle without distortion */
    border: 5px solid #ff4a4a; /* Red circular border, matching your accent color */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Optional: adds a subtle shadow */
    margin-bottom: 20px; /* Adds some space below the image */
}
/* --- Responsive Styles (for Mobile) --- */
/* This will apply to any screen 768px wide or smaller */

@media (max-width: 768px) {

    /* --- General --- */
    h1 {
        font-size: 2.2rem; /* Make main headings smaller */
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        width: 95%; /* Use more of the screen */
        padding: 10px;
    }

    /* --- Navigation --- */
    nav ul {
        flex-direction: column; /* Stack the nav links vertically */
        align-items: center; /* Center them */
        width: 100%;
    }

    nav ul li {
        margin: 8px 0; /* Add space between the stacked links */
    }

    /* --- Home Page: Hero Section --- */
    .hero {
        padding: 2.5rem 1rem; /* Reduce top/bottom padding */
    }

    .profile-image {
        width: 300px; /* Make profile image smaller */
        height: 150px;
        border-width: 3px; /* Make border thinner */
    }

    .hero .subtitle {
        font-size: 1.1rem; /* Make subtitle smaller */
    }

    /* --- Grids (Cards & Skills) --- */
    /* The grids will automatically stack to 1-column */
    /* We just adjust the min-width for very small screens */
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}