/* Apple-inspired Ultra Premium Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    background: #000;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    flex: 1;
}

.nav-links {
    flex: 0 0 auto;
}

.nav-logo h1 {
    font-size: 21px;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.03em;
}

.nav-tagline {
    font-size: 12px;
    color: #a1a1a6;
    font-weight: 400;
    margin-left: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: -0.022em;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link svg {
    opacity: 0.8;
}

/* Version Navigation */
.nav-versions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 6px;
    right: 20px;
    z-index: 10000;
}

.nav-version-label {
    color: #a1a1a6;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.nav-versions .nav-link {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.nav-link.version-active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Hero Section */
.hero-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    padding: 88px 0 88px;
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, rgba(0, 0, 0, 0.9) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    display: block;
    margin-bottom: 32px;
}

.hero-title-main {
    display: block;
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    color: #f5f5f7;
    margin-bottom: 8px;
}

.hero-title-sub {
    display: block;
    font-size: 96px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #8B4513 0%, #D2B48C  50%, #DEB887 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #a1a1a6;
    margin-bottom: 48px;
}

.hero-cta {
    margin-top: 24px;
}

.cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #f5f5f7;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.022em;
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: scale(1.02);
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 88px;
    padding: 0 22px;
}

.section-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #f5f5f7;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #a1a1a6;
}

/* Featured Section */
.featured-section {
    background: #000;
    padding: 140px 0;
}

.featured-grid {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    gap: 80px;
}

.featured-card {
    background: #161617;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.featured-card:hover {
    transform: scale(1.02);
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 600px;
}

.featured-visual {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-card .featured-visual {
    height: 600px;
}

/* Gallery System */
.project-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}

.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    font-size: 48px;
    color: rgba(245, 245, 247, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 245, 247, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(245, 245, 247, 0.8);
    transform: scale(1.25);
}

.video-dot {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

.video-dot.active,
.video-dot:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

/* Featured Content */
.featured-content {
    padding: 64px;
}

.featured-content h3 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.003em;
    color: #f5f5f7;
    margin-bottom: 24px;
}

.featured-description {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: #a1a1a6;
    margin-bottom: 32px;
}

.featured-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec {
    background: rgba(245, 245, 247, 0.1);
    color: #f5f5f7;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.016em;
    border: 0.5px solid rgba(245, 245, 247, 0.2);
}

/* Advanced Section */
.advanced-section {
    background: #f5f5f7;
    padding: 140px 0;
}

.advanced-section .section-title {
    color: #1d1d1f;
}

.advanced-section .section-subtitle {
    color: #6e6e73;
}

.advanced-grid {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.advanced-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.advanced-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.advanced-visual {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.advanced-content {
    padding: 32px;
}

.advanced-content h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 700;
    letter-spacing: 0.009em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.advanced-content p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #6e6e73;
    margin-bottom: 20px;
}

.advanced-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #f5f5f7;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Philosophy Section */
.philosophy-section {
    background: #000;
    padding: 140px 0;
    text-align: center;
}

.philosophy-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.philosophy-content h2 {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #f5f5f7;
    margin-bottom: 24px;
}

.philosophy-content p {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: #a1a1a6;
    margin-bottom: 80px;
}

.philosophy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    color: #f5f5f7;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #a1a1a6;
}

/* About Section */
.about-section {
    background: #f5f5f7;
    padding: 140px 0;
}

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

.about-content h2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin-bottom: 48px;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 21px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.about-signature {
    font-style: italic;
    font-weight: 500;
    text-align: center;
    margin-top: 48px !important;
    color: #6e6e73;
}

/* Footer */
.footer {
    background: #f5f5f7;
    padding: 48px 0;
    text-align: center;
    border-top: 0.5px solid #d2d2d7;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer p {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #6e6e73;
}

/* Responsive Design */
@media (max-width: 1068px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title-main,
    .hero-title-sub {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 64px;
    }
    
    .hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-link {
        font-size: 0;
        padding: 8px 12px;
    }
    
    .nav-link svg {
        opacity: 1;
    }
    
    .hero-title-main,
    .hero-title-sub {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 21px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .section-subtitle {
        font-size: 21px;
    }
    
    .featured-content {
        padding: 32px;
    }
    
    .featured-content h3 {
        font-size: 28px;
    }
    
    .featured-description {
        font-size: 17px;
    }
    
    .philosophy-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .about-content h2 {
        font-size: 48px;
    }
    
    .about-text p {
        font-size: 17px;
    }
    
    .about-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-content,
    .section-header,
    .featured-grid,
    .advanced-grid,
    .philosophy-content,
    .footer-content {
        padding: 0 16px;
    }
    
    .hero-title-main,
    .hero-title-sub {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .featured-content {
        padding: 24px;
    }
}

/* Performance Optimizations */
.gallery-image {
    will-change: opacity;
}

.featured-card,
.advanced-card {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .featured-card,
    .advanced-card {
        border: 1px solid #333;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f5f5f7;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #8B4513;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10001;
    pointer-events: none;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #f5f5f7;
    font-size: 36px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: scale(1.1);
}

.modal-media-container {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
}

.modal-media-container img,
.modal-media-container video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* Featured Card Hover Effect */
.featured-card {
    cursor: pointer;
}

.featured-card:hover {
    transform: scale(1.02);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 10px 10px;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    .modal-media-container {
        max-width: 95vw;
        max-height: 70vh;
    }
}