/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #007bff; /* Vibrant Blue */
    --secondary-color: #6c757d; /* Grey/Subtle Text */
    --background-color: #f4f7f6; /* Light Grey Background */
    --card-background: #ffffff; /* White Card Backgrounds */
    --text-color: #333;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. TYPOGRAPHY & SECTIONS --- */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: #e9f0f8; /* Alternating section background */
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

/* --- 3. NAVIGATION (HEADER) --- */
.header {
    background-color: var(--card-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
}

.nav-links a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- 4. HERO SECTION --- */
.hero {
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.hero-content h1 {
    font-size: 3.5em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.role {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.tagline {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1em;
}

.hero-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--card-background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- 5. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px; /* Pill shape */
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.9em;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* --- 6. ABOUT SECTION --- */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.about-text li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.about-text li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.education-card {
    flex: 1;
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.edu-item {
    margin-bottom: 20px;
}

/* --- 7. SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.skill-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 5px;
    font-size: 1.4em;
}

.progress-bar {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* --- 8. PROJECTS SECTION --- */
.project-card {
    display: flex;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    align-items: center;
}

.project-card.reverse {
    flex-direction: row-reverse; /* Swap order for alternating layout */
}

.project-info {
    padding: 30px;
    flex: 1.5;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8em;
}

.project-tech span {
    display: inline-block;
    background-color: #d1e7ff;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-right: 8px;
    margin-top: 10px;
}

.project-image {
    flex: 1;
    min-height: 250px;
    background-color: #ccc; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-style: italic;
    font-weight: bold;
}

/* --- 9. CONTACT SECTION --- */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    color: var(--text-color);
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: #28a745; /* Success green */
}

/* --- 10. FOOTER --- */
footer {
    background-color: #343a40; /* Dark background */
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 1.5em;
    margin-left: 15px;
}

/* --- 11. MEDIA QUERIES (RESPONSIVENESS) --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }
    .project-card, .project-card.reverse {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        min-height: 200px;
        order: -1; /* Image comes first on mobile for both cards */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    .role {
        font-size: 1.5em;
    }

    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: var(--card-background);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .navbar.active .nav-links a {
        margin: 0;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #f4f4f4;
    }
    
    footer .container {
        flex-direction: column;
    }
    .social-links {
        margin-top: 15px;
    }
}