/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    --tan: #D2B48C;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #6B7280;
    --dark-green: #1F4E3D;
    --brown: #8B4513;
    --light-tan: #F5F1E8;
    --accent-green: #6B8E6B;
    --navbar-height: 62px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    padding-top: var(--navbar-height);
}

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


/* ============================================
   Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.navbar .container {
    height: 100%;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-brand {
    font-weight: 500;
    font-size: 1rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--dark-green);
}

.navbar-links {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.navbar-links li {
    display: flex;
    align-items: center;
}

.navbar-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 1rem;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--dark-green);
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent-green);
    border-radius: 1px;
}

/* Mobile hamburger */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 24px 1.25rem;
}

.navbar-mobile.open {
    display: block;
}

.navbar-mobile a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease;
}

.navbar-mobile a:last-child {
    border-bottom: none;
}

.navbar-mobile a:hover {
    color: var(--dark-green);
}


/* ============================================
   Header Banner
   ============================================ */

.header-banner {
    background-color: #1a4433;
    /* Triangular grid echoing the pyramid logo, over a subtle warm-to-cool gradient */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,4 58,50 2,50' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cpolygon points='0,4 28,50 -28,50' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cpolygon points='60,4 88,50 32,50' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #1a4433 0%, #1f4e3d 50%, #1a3d30 100%);
    background-size: 60px 52px, 100% 100%;
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 0;
}

.logo {
    width: 100%;
    max-width: 860px;
    display: block;
    margin: 0 auto;
}

.logo-image {
    width: 100%;
    max-height: 62vh;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
}

.taglines {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.taglines span {
    padding: 0 16px;
}

.tagline-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    padding: 0 !important;
}


/* ============================================
   About Section
   ============================================ */

.about-section {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-link {
    color: var(--accent-green);
    text-decoration: none;
}

.about-link:hover {
    text-decoration: underline;
}


/* ============================================
   Featured Work Section
   ============================================ */

.featured-work {
    background: var(--light-tan);
    padding: 80px 0;
}

.featured-header {
    text-align: center;
    margin-bottom: 56px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--black);
    letter-spacing: -0.5px;
}

/* Showcase cards (full-width, stacked) */
.showcase-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
}

.showcase-card:last-child {
    margin-bottom: 0;
}

.showcase-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.11);
}

.showcase-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.01em;
}

.showcase-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-green);
    background: rgba(107, 142, 107, 0.12);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.showcase-title a.showcase-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.showcase-title a.showcase-title-link:hover {
    color: var(--accent-green);
}

.showcase-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 820px;
}

/* Screenshot gallery */
.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 24px 32px;
    gap: 16px;
}



.showcase-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.09);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.showcase-thumb:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.thumb-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}


.thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-thumb:hover .thumb-img-wrap img {
    transform: scale(1.03);
}

.thumb-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.85));
    pointer-events: none;
    z-index: 1;
}

.thumb-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--black);
    background: var(--white);
    text-align: center;
}

.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 78, 61, 0.93);
    color: var(--white);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    z-index: 2;
}

.showcase-thumb:hover .thumb-overlay {
    transform: translateY(0);
}

.thumb-overlay p {
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0;
}

/* Behind the scenes */
.behind-scenes {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 32px;
}

.behind-scenes-toggle {
    background: none;
    border: none;
    color: var(--accent-green);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    width: 100%;
    text-align: left;
}

.behind-scenes-toggle:hover {
    color: var(--dark-green);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.22s ease;
    font-size: 0.8rem;
    line-height: 1;
}

.behind-scenes.open .toggle-icon {
    transform: rotate(90deg);
}

.behind-scenes-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.behind-scenes.open .behind-scenes-content {
    max-height: 300px;
}

.behind-scenes-content p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.75;
    padding-bottom: 18px;
    font-style: italic;
}

/* Showcase footer (tags + learn more link) */
.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 32px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    background: var(--light-tan);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 7px 16px;
    background: var(--accent-green);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.project-link:hover {
    background: #9BB894;
}

/* Screenshot modal */
.showcase-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.87);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.showcase-modal.active {
    display: flex;
}

.showcase-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.showcase-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.showcase-modal-close {
    position: absolute;
    top: -2.25rem;
    right: -0.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.showcase-modal-close:hover {
    opacity: 1;
}


/* ============================================
   Services Section
   ============================================ */

main {
    padding: 80px 0;
    background-color: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.services-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: var(--light-tan);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 78, 61, 0.1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: var(--light-tan);
    padding: 80px 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.email-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 142, 107, 0.2);
}

.email-button:hover {
    background: #9BB894;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 107, 0.3);
}

.email-icon {
    flex-shrink: 0;
}

.contact-email-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 16px;
}

.contact-email-text a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.contact-email-text a:hover {
    text-decoration: underline;
}


/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.footer-content {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-founder {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-founder:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }


/* ============================================
   Responsive
   ============================================ */

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

    .navbar-toggle {
        display: flex;
    }

    .logo-section {
        gap: 20px;
    }

    .taglines {
        font-size: 0.75rem;
        letter-spacing: 0.14em;
    }

    .showcase-gallery {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }


    .showcase-header,
    .behind-scenes,
    .showcase-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .showcase-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .services-title,
    .featured-title,
    .contact-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }

    .header-banner,
    .about-section,
    .featured-work,
    main,
    .contact-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .thumb-img-wrap {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .taglines {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        flex-direction: column;
        gap: 8px;
    }

    .tagline-separator {
        display: none;
    }

    .about-title,
    .services-title,
    .featured-title,
    .contact-title {
        font-size: 1.6rem;
    }
}