/* ============================================
   GLOBAL DESIGN SYSTEM
   ============================================ */

/* 
 * Gotham Font
 * Option 1: If using Adobe Fonts, uncomment and add your kit ID:
 * @import url('https://use.typekit.net/[your-kit-id].css');
 * 
 * Option 2: For self-hosted fonts, add @font-face declarations below
 * and place your Gotham font files in /fonts/ folder
 */

/* 
 * Font: Using free alternative (Montserrat) instead of Gotham due to licensing
 * 
 * If you have a licensed version of Gotham, you can:
 * 1. Uncomment the @font-face declarations below
 * 2. Update --font-primary to use 'Gotham'
 * 3. Place your licensed font files in /fonts/ folder
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

/* @font-face declarations for self-hosted Gotham (commented out - requires license)
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Light.otf') format('opentype'),
         url('../fonts/GOTHAM-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Medium.otf') format('opentype'),
         url('../fonts/GOTHAM-MEDIUM.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Medium.otf') format('opentype'),
         url('../fonts/GOTHAM-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
}
*/

:root {
    /* Colors - Black Theme */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-light: #1a1a1a;
    --color-gray: #666666;
    --color-gray-dark: #cccccc;
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-border: #333333;
    
    /* Typography - Using Montserrat (free alternative to Gotham) */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: clamp(2.5rem, 5vw, 4rem);
    --font-size-h2: clamp(1.75rem, 3vw, 2.5rem);
    --font-size-h3: clamp(1.25rem, 2vw, 1.75rem);
    --font-size-h4: clamp(1.1rem, 1.5vw, 1.25rem);
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Transitions */
    --transition-slow: 0.6s ease;
    --transition-base: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    /* Layout */
    --container-max-width: 1400px;
    --nav-height: 80px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

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

/* Global Image Rules */
img,
.project-image,
.slide-image,
.project-hero-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-small);
}

.nav-menu a.active {
    opacity: 0.5;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

/* Home page: Hide nav completely */
.home-page .nav {
    display: none;
}

/* Home page: Always show burger menu, hide regular nav */
.home-page .nav-menu {
    display: none;
}

.home-page .nav-toggle {
    display: flex;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

/* Home Page: Standalone Logo and Menu Toggle */
.home-logo {
    position: fixed;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 1001;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.home-logo:hover {
    opacity: 0.7;
}

.home-logo .logo-image {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.home-menu-toggle {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    align-items: center;
    justify-content: center;
}

.home-menu-toggle span {
    width: 24px;
    height: 1px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

.home-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.home-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.home-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

/* Home page: Slide menu from right */
.home-page .mobile-menu {
    left: auto;
    width: 400px;
    max-width: 85vw;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
    transform: translateX(100%);
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
}

.home-page .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    text-align: center;
    width: 100%;
}

.home-page .mobile-menu-list {
    text-align: left;
    margin-top: var(--spacing-lg);
}

.mobile-menu-list li {
    margin-bottom: var(--spacing-md);
}

.mobile-menu-list a {
    font-size: var(--font-size-h3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-page .mobile-menu-list a {
    font-size: var(--font-size-large);
    display: block;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   HOME SLIDER
   ============================================ */

.home-slider {
    height: 100vh;
    position: relative;
}

.home-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Active slide stays in place (lower z-index, force transform to 0) */
.swiper-slide-active {
    z-index: 1 !important;
    transform: translateX(0) !important;
}

/* Next and previous slides overlay on top (higher z-index) */
.swiper-slide-next,
.swiper-slide-prev {
    z-index: 10 !important;
}

/* All other slides behind */
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-prev) {
    z-index: 0 !important;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Smooth slide animation */
.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure active slide image doesn't move */
.swiper-slide-active .slide-image {
    transform: scale(1) translateX(0);
}

.slide-content {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-md);
    z-index: 10;
    color: var(--color-white);
}

.slide-title {
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.swiper-pagination {
    bottom: var(--spacing-md) !important;
    right: var(--spacing-md) !important;
    left: auto !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    background: var(--color-white) !important;
    opacity: 0.4 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* ============================================
   PROJECTS GRID
   ============================================ */

.projects-page {
    margin-top: var(--nav-height);
    padding: var(--spacing-lg) var(--spacing-md);
}

.projects-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    grid-auto-rows: 400px;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    background-color: var(--color-gray-light);
    transition: transform var(--transition-slow);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    transition: background-color var(--transition-slow);
}

.project-title {
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    margin: 0;
}

/* Grid Spans - Desktop */
.span-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.span-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.span-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

/* ============================================
   PROJECT DETAIL
   ============================================ */

.project-detail {
    margin-top: var(--nav-height);
}

.project-hero {
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.project-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.project-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.project-detail-title {
    margin-bottom: var(--spacing-xs);
}

.project-location {
    color: var(--color-gray);
    font-size: var(--font-size-base);
    margin: 0;
}

.project-description {
    max-width: 700px;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-large);
    line-height: 1.8;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

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

.about-title {
    margin-bottom: var(--spacing-md);
}

.about-text {
    margin-top: var(--spacing-lg);
}

.about-lead {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xs);
}

.about-location {
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
}

.about-description {
    font-size: var(--font-size-large);
    line-height: 1.8;
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.contact-content {
    max-width: 600px;
    width: 100%;
}

.contact-title {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-gray-light);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-submit {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.form-submit:hover {
    background-color: var(--color-gray-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ============================================
   RESPONSIVE RULES
   ============================================ */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .span-2x1 {
        grid-column: span 2;
    }
    
    .span-1x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
        gap: var(--spacing-sm);
    }
    
    .span-1x1,
    .span-2x1,
    .span-1x2,
    .span-2x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Disable hover effects on mobile */
    .project-card:hover .project-image {
        transform: none;
    }
    
    .project-card:hover .project-overlay {
        background-color: rgba(0, 0, 0, 0);
    }
    
    .project-card:hover .project-title {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    /* Home Slider */
    .slide-content {
        bottom: var(--spacing-md);
        left: var(--spacing-sm);
    }
    
    .slide-title {
        font-size: var(--font-size-h2);
    }
    
    /* Project Detail */
    .project-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .project-description {
        font-size: var(--font-size-base);
    }
    
    /* About & Contact */
    .about-page,
    .contact-page {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

