/* ======== 1. GLOBAL STYLES & VARIABLES ======== */
:root {
    /* Color Palette */
    --primary-color: #0A4D68;    /* Deep Professional Blue */
    --secondary-color: #088395;  /* Lighter Teal/Blue */
    --accent-color: #F26419;     /* Warm Orange Accent */
    --bg-light: #FFFFFF;
    --bg-off-white: #F8F9FA;
    --text-dark: #212529;        /* Main text */
    --text-light: #6C757D;       /* Subheadings, descriptions */
    --border-color: #DEE2E6;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Nunito Sans', sans-serif;

    /* Styling */
    --header-height: 4.5rem;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global Classes */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--primary-color);
}
/* Title underline effect */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary-color);
    color: var(--bg-light);
}
.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(10, 77, 104, 0.3);
}
.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--border-color);
    margin-left: 1rem;
}
.btn-secondary:hover {
    background: var(--bg-off-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}
.btn-link {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    margin-right: 1.5rem;
}
.btn-link i {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}
.btn-link:hover i {
    transform: translateX(4px);
}


/* ======== 2. HEADER & NAVIGATION ======== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
}
.nav-list {
    display: flex;
    gap: 2.5rem;
}
.nav-link {
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-link:hover, .active-link {
    color: var(--primary-color);
}
.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}
.nav-link-button {
    background: var(--primary-color);
    color: var(--bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}
.nav-link-button:hover {
    background: var(--secondary-color);
    color: var(--bg-light);
}
.nav-close, .nav-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    color: var(--text-dark);
}

/* ======== 3. HOME/HERO SECTION ======== */
.hero {
    padding-top: var(--header-height);
    background: var(--bg-off-white);
}
.hero-container {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    align-items: center;
}
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image {
    max-width: 400px;
    /* Add animation if you want */
}

/* ======== 4. ABOUT SECTION ======== */
#about {
    background: var(--bg-light);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrapper {
    width: 350px;
    height: 350px;
    justify-self: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 77, 104, 0.2);
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.about-description {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}
.about-description strong {
    color: var(--text-dark);
}
.about-facts {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.fact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}
.fact-item p {
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 600;
}

/* ======== 5. SKILLS SECTION ======== */
#skills {
    background: var(--bg-off-white);
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}
.skill-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.skill-card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.skill-list li {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.skill-list li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ======== 6. PROJECTS SECTION ======== */
.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}
/* Reverses layout for every other project */
.project-item-reverse {
    grid-template-columns: 1fr 1fr;
}
.project-item-reverse .project-image-wrapper {
    order: 2;
}
.project-item-reverse .project-content {
    order: 1;
}

.project-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}
.project-image-wrapper:hover {
    box-shadow: var(--card-shadow-hover);
}
.project-image {
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}
.project-image-wrapper:hover .project-image {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.project-tags span {
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--bg-off-white);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}
.project-links {
    margin-top: 2rem;
}

/* ======== 7. CONTACT SECTION ======== */
#contact {
    background: var(--bg-off-white);
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}
.contact-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}
.contact-content .section-title::after {
    left: 0;
    transform: translateX(0);
}
.contact-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.contact-info-item:hover {
    color: var(--primary-color);
}
.contact-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-off-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 77, 104, 0.1);
}
.form-submit-btn {
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ======== 8. FOOTER ======== */
.footer {
    padding: 3rem 0;
    background: var(--text-dark);
    color: var(--bg-off-white);
}
.footer-container {
    text-align: center;
}
.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-social-links a {
    font-size: 1.5rem;
    color: var(--bg-light);
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ======== 9. UTILITIES (Scroll to Top, Animations) ======== */
.scroll-up {
    position: fixed;
    bottom: -20%;
    right: 2rem;
    background: var(--primary-color);
    color: var(--bg-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(10, 77, 104, 0.3);
    transition: all 0.4s ease;
    z-index: 50;
}
.scroll-up:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}
.show-scroll {
    bottom: 2rem;
}

/* Scroll Reveal Animations */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-visible {
    opacity: 1;
    transform: translate(0);
}


/* ======== 10. RESPONSIVE DESIGN (Media Queries) ======== */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0;
    }
    .hero-image-container {
        order: -1;
        margin-bottom: 2rem;
    }
    .hero-image {
        max-width: 300px;
    }
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image-wrapper {
        width: 300px;
        height: 300px;
        margin-bottom: 2rem;
    }
    .about-facts {
        justify-content: center;
        text-align: left;
    }
    .project-item, .project-item-reverse {
        grid-template-columns: 1fr;
    }
    .project-item-reverse .project-image-wrapper,
    .project-item .project-image-wrapper {
        order: -1; /* Image always on top on mobile */
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-content .section-title {
        text-align: center;
    }
    .contact-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-light);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 0;
        transition: right 0.4s ease;
    }
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }
    .nav-link {
        font-size: 1.1rem;
    }
    .nav-close, .nav-toggle {
        display: block;
    }
    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    /* Show mobile menu */
    .show-menu {
        right: 0;
    }

    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 0;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-secondary {
        margin-left: 0;
        width: 100%;
    }
    .btn-primary {
        width: 100%;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}