/* Core Styling and Professional Color Scheme */
:root {
    --primary-color: #004d99; /* Deep Professional Blue */
    --secondary-color: #337ab7; /* Lighter Blue for accents */
    --text-color: #333;
    --light-bg: #f4f4f9; /* Subtle light grey/off-white */
    --white: #ffffff;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
}

h2.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

p {
    margin-bottom: 1em;
}

/* Navigation Bar */
#navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed) ease;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1em;
    margin: 0 15px;
    transition: color var(--transition-speed) ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links li a:hover {
    color: var(--light-bg);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.section-divider {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 5% 0 5%;
    max-width: 1100px;
}

/* --- 1. Home Section --- */
.hero-section {
    background: var(--light-bg);
    padding: 100px 5% 80px 5%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content .text-content {
    flex: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.hero-content .tagline {
    font-size: 1.5em;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content .intro-paragraph {
    font-size: 1.1em;
    color: var(--text-color);
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 77, 153, 0.3);
    border: 5px solid var(--white);
    transition: transform 0.5s ease-out;
}

.profile-hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- 2. Education and Skills Section --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

.info-block {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-block h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.education-block ul {
    list-style: none;
    padding-left: 0;
}

.education-block ul li {
    padding: 8px 0;
    font-size: 1.1em;
}

.education-block ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.experience-tag {
    background-color: var(--primary-color);
}

/* --- 3. Projects & Portfolio Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 40, 80, 0.2);
}

.card-icon {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-tags {
    margin: 15px 0;
}

.project-tags span {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--text-color);
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color var(--transition-speed);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* --- 4. Contact Section --- */
.contact-section {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.info-item {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.info-item i {
    color: var(--primary-color);
    margin-right: 15px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9em;
}

/* --- Animations (Fade-in on Scroll) --- */
.fade-in, .fade-in-left, .fade-in-right, .fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in.is-visible, 
.fade-in-left.is-visible, 
.fade-in-right.is-visible,
.fade-in-up.is-visible {
    opacity: 1;
    transform: none;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Media Queries for Responsiveness --- */
@media screen and (max-width: 1024px) {
    /* Tablet Adjustments */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content .text-content {
        margin-top: 30px;
    }

    .cta-button {
        width: auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile Adjustments */
    #navbar {
        justify-content: space-between;
        padding: 15px 5%;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 60px; /* Adjust based on navbar height */
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 0vh;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in;
        overflow: hidden;
    }

    .nav-links li {
        opacity: 0;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.nav-active {
        transform: translateY(0);
        height: auto;
        padding-bottom: 20px;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.3s;
    }

    .burger {
        display: block;
    }
    
    .section {
        padding: 60px 5%;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }

    .profile-hero-image {
        width: 180px;
        height: 180px;
        font-size: 4em;
    }
}