@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-surface: #f7f7f7;
    --color-border: #e0e0e0;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-heading: #1a1a1a;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-main: 'Clarkson', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 90%;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 6%;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    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.06);
    transition: background var(--transition);
}

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-heading);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-light);
    transition: color var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-heading);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-heading);
    transition: var(--transition);
}

/* ========== Homepage Hero ========== */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.home-hero-left {
    background: #84b4c8;
    display: flex;
    align-items: center;
    padding: 100px 7% 60px;
}

.home-hero-content {
    width: 100%;
}

.home-hero-content h1 {
    font-family: 'Barlow', var(--font-main);
    font-size: clamp(2.8rem, 4.5vw, 5.2rem);
    font-weight: 900;
    line-height: 0.95;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 36px;
}

.home-hero-description {
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: 16px;
}

.home-hero-education {
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 48px;
}

.home-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.home-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.home-btn:hover {
    background: #333333;
}

.home-btn--offset {
    margin-left: 0;
}

.home-hero-right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* ========== Page Header (subpages) ========== */
.page-header {
    padding-top: 64px;
    position: relative;
}

.page-header-banner {
    width: 100%;
    height: 560px;
    background: var(--color-surface);
    overflow: hidden;
    position: relative;
}

.page-header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Dark gradient so white text is readable */
.page-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
}

.page-header-text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 6% 40px;
    text-align: left;
    z-index: 1;
}

.page-header-text h1 {
    font-family: 'Bebas Neue', var(--font-main);
    font-size: 8rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.page-header-text p {
    display: none;
}

/* ========== Project Cards ========== */
.projects {
    padding: 0 6% 80px;
}

.project-card {
    margin-bottom: 0;
    padding-bottom: 60px;
}

.project-card:last-child {
    padding-bottom: 60px;
}

.project-title-section {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    padding: 18px 6%;
    margin-bottom: 40px;
}

.project-title-section h2 {
    font-family: 'Bebas Neue', var(--font-main);
    font-size: 3.8rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Three-column layout: each column has image + heading + text */
.project-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-column {
    display: flex;
    flex-direction: column;
}

.project-column-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.75rem;
    margin-bottom: 20px;
    overflow: hidden;
}

.project-column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-column h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-heading);
    margin-bottom: 14px;
    font-weight: 200;
}

.project-column p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.project-column ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.project-column ul li {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ========== Carousel ========== */
.carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.carousel--mt { margin-top: 12px; }
.carousel--mb { margin-bottom: 40px; }

.carousel-window {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 4px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    background: var(--color-surface);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    user-select: none;
    border-radius: 50%;
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel--portrait .carousel-slide {
    flex: 0 0 calc(100% / 4);
}

.carousel--portrait .carousel-slide img {
    aspect-ratio: 3 / 4;
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 6% 32px;
    background: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info p {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.footer-info a {
    transition: color var(--transition);
}

.footer-info a:hover {
    color: var(--color-heading);
}

.footer-social a {
    color: var(--color-text-light);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--color-heading);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--color-text-light);
    opacity: 0.6;
    text-align: center;
    padding-top: 16px;
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero-left {
        padding: 100px 6% 50px;
    }

    .home-hero-right {
        height: 50vw;
        min-height: 280px;
    }

    .home-btn--offset {
        margin-left: 30px;
    }

    .project-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 5%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-white);
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--color-border);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .page-header-banner {
        height: 320px;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
        background: none !important;
        padding: 0 !important;
        border: none !important;
        right: auto !important;
    }

    .nav-toggle {
        display: none !important;
    }
}
