/* ===========================
   Modern Flat Design System
   High Society Visuals
   =========================== */

/* CSS Variables - Clean Color Palette */
:root {
    /* Primary Colors */
    --primary: #0A0A0A;
    --primary-light: #1A1A1A;
    --accent: #18CAB4;
    --accent-hover: #20E0C8;
    --accent-subtle: rgba(24, 202, 180, 0.1);
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --gray-50: #1A1A1A;
    --gray-100: #2A2A2A;
    --gray-200: #3A3A3A;
    --gray-300: #A3A3A3;
    --gray-400: #737373;
    --gray-500: #525252;
    --gray-600: #404040;
    --gray-700: #262626;
    --gray-800: #171717;
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows - Minimal for flat design */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Reset & Base Styles
   =========================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===========================
   Layout
   =========================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    max-width: 1440px;
}

.section {
    padding: var(--space-4xl) 0;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    background: transparent;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-md) 0;
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-link {
    color: var(--primary);
}

.navbar.scrolled .hamburger span {
    background: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white);
    transition: color var(--transition-base);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent);
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    color: var(--white) !important;
    font-weight: 600;
    transition: all var(--transition-base);
}

.instagram-link::after {
    display: none;
}

.instagram-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.instagram-link svg {
    width: 18px;
    height: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-xl);
}

.hero-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-subtle);
    border: 1px solid rgba(24, 202, 180, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line:nth-child(2),
.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-300);
    margin-bottom: var(--space-2xl);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-dark:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-400);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ===========================
   About Section
   =========================== */

.about {
    padding: var(--space-4xl) 0;
    background: var(--primary-light);
    color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-text {
    max-width: 540px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.section-title.centered {
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--gray-300);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--accent-subtle);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
    color: var(--white);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.features .section-title {
    color: var(--white);
    margin-bottom: var(--space-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--gray-100);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    color: var(--accent);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--white);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* ===========================
   CTA Section
   =========================== */

.cta {
    padding: var(--space-4xl) 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
}

.cta .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.cta .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ===========================
   Gallery Page Header
   =========================== */

.gallery-header {
    padding: calc(100px + var(--space-3xl)) 0 var(--space-3xl);
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* ===========================
   Gallery Filters
   =========================== */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--gray-300);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===========================
   Gallery Grid
   =========================== */

.gallery-section {
    padding: var(--space-2xl) 0 var(--space-4xl);
    background: var(--primary-light);
    min-height: 60vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    background: var(--gray-700);
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 10, 10, 0.8) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

.gallery-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--gray-300);
    font-size: 0.8125rem;
    transform: translateY(10px);
    transition: transform var(--transition-base) 0.05s;
}

.gallery-item:hover .gallery-metadata {
    transform: translateY(0);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.metadata-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    grid-column: 1 / -1;
    color: var(--gray-500);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   Lightbox
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    z-index: 2000;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s ease;
    overflow-y: auto;
    padding: var(--space-lg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin: 0 auto;
}

.lightbox-info {
    background: var(--gray-800);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.lightbox-info h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.lightbox-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.lightbox-metadata .metadata-item {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.lightbox-metadata .metadata-item strong {
    color: var(--gray-400);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox.active .lightbox-close,
.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    display: flex;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-close {
    top: var(--space-xl);
    right: var(--space-xl);
}

.lightbox-prev {
    left: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-text {
        max-width: 100%;
        order: 2;
    }
    
    .about-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        transition: right var(--transition-smooth);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .nav-link {
        font-size: 1.25rem;
        color: var(--white);
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span {
        background: var(--white);
    }
    
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        padding: var(--space-md);
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: var(--space-md);
    }
    
    .lightbox-next {
        right: var(--space-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .logo-text {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
}
