/* ==========================================================================
   GLOBAL BASELINE & SMOOTH SCROLL
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* DESIGN SYSTEM TOKENS */
:root {
    --bg-color: #F9F9F9;        /* Canvas Off-White */
    --text-primary: #1E1E1E;    /* Primary Ink */
    --text-muted: #757575;      /* Secondary/Metadata Gray */
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Baseline */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR STYLES */

.logo,
.logo:visited {
    color: #111111; /* or var(--text-primary) */
    text-decoration: none;
    font-weight: 700;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(249, 249, 249, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1.25rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .nav-cta {
    background-color: var(--text-primary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.nav-links .nav-cta:hover {
    opacity: 0.9;
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

.hero-section {
    padding: 6rem 0 4rem 0;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 800px;
    margin-bottom: 1.25rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #E0E0E0;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #EFEFEF;
}

/* ==========================================================================
   PROJECTS SECTION STYLES
   ========================================================================== */

.projects-section {
    padding: 5rem 0;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 1. Gride System */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* 2. Card Container */

.project-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden; /* Keeps image corners rounded inside the card */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* 3. Image placeholder */

.card-image-wrapper {
    width: 100%;
    height: 200px; /* Gives a clean fixed height for preview thumbnails */
    overflow: hidden;
    background-color: #F4F4F5;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image neatly inside wrapper without stretching */
    object-position: top center;
    display: block;
}

/* 4. Card Content */

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: #F0F0F0;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT SECTION STYLES
   ========================================================================== */

.about-section {
    padding: 5rem 0 6rem 0;
    border-top: 1px solid #EAEAEA;
    margin-top: 3rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Skills Column layout using flexbox */

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    padding: 1.5rem;
}

.skill-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER SECTION STYLES
   ========================================================================== */

.footer-section {
    border-top: 1px solid #EAEAEA;
    padding: 4rem 0 3rem 0;
    margin-top: 8rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}


/* ==========================================================================
   BOOKING PAGE STYLES
   ========================================================================== */

.booking-container {
    max-width: 720px;
    margin: 4rem auto 0 auto;
    padding: 0 1.5rem;
}

.booking-header {
    text-align: left;
    margin-bottom: 3rem;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background-color: #FFFFFF;
    padding: 2.5rem;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    background-color: #FAFAFA;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111111;
    background-color: #FFFFFF;
}

.form-submit {
    grid-column: span 2;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
    /* Adjust navbar layout for smaller screens */
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* booking form layout adjustments */

    .booking-container {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .booking-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-submit {
        grid-column: span 1;
    }
}
