/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: rgba(113, 188, 32, 0.05);
    --color-text: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.55);
    --color-accent: red;
    --color-overlay: rgba(0, 0, 0, 0.7);
    
    /* Fluid spacing */
    --spacing-xs: clamp(16px, 2vw, 24px);
    --spacing-sm: clamp(24px, 3vw, 32px);
    --spacing-md: clamp(32px, 4vw, 48px);
    --spacing-lg: clamp(48px, 6vw, 64px);
    --spacing-xl: clamp(64px, 8vw, 80px);
    --spacing-2xl: clamp(80px, 10vw, 120px);
    
    /* Fluid typography */
    --font-size-base: clamp(16px, 1.125vw, 18px);
    --font-size-lg: clamp(20px, 1.5vw, 24px);
    --font-size-xl: clamp(24px, 2vw, 36px);
    --font-size-2xl: clamp(32px, 3.5vw, 48px);
    --font-size-3xl: clamp(48px, 4vw, 64px);
    
    /* Container padding */
    --container-padding: clamp(24px, 5vw, 120px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rethink Sans', sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    color: var(--color-text);
    line-height: 1.45;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header-inner {
    padding: 16px var(--container-padding);
}

.sticky-logo {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2vw, 32px);
    letter-spacing: -0.025em;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.3s ease;
}

.sticky-logo:hover {
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-text);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(113, 188, 32, 0.02) 100%);
    width: 100%;
}

.hero-inner {
    padding: var(--spacing-2xl) var(--container-padding) var(--spacing-xl) var(--container-padding);
}

.logo {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-3xl);
    letter-spacing: -0.025em;
    line-height: 1.1;
    animation: fadeInDown 0.8s ease;
}

.logo-dot {
    color: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Section */
.feature {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(113, 188, 32, 0.02) 100%);
    width: 100%;
}

.feature-inner {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    align-items: center;
    padding: 0 var(--container-padding) var(--spacing-2xl) var(--container-padding);
}

.feature-image {
    flex: 1;
    min-width: 0;
    border-radius: clamp(12px, 1.5vw, 16px);
    overflow: hidden;
    aspect-ratio: 576/388;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.parallax-image {
    will-change: transform;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 0 1 400px;
    min-width: 0;
}

.section-title {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-xl);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-description {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: -0.005em;
    line-height: 1.45;
    color: var(--color-text-muted);
    white-space: pre-wrap;
}

/* Body Section */
.body {
    width: 100%;
}

.body-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl) var(--container-padding);
}

/* Feature Cards */
.feature-cards {
    width: 100%;
}

.feature-cards-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: var(--spacing-md);
    padding: 0 var(--container-padding) var(--spacing-xl) var(--container-padding);
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 552/414;
    border-radius: clamp(12px, 1.5vw, 16px);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.card-image:hover .card-overlay {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-text {
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 600;
    font-size: var(--font-size-lg);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

.card-year {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: -0.005em;
    line-height: 1.45;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(113, 188, 32, 0.02) 100%);
    min-height: clamp(60px, 8vw, 110px);
    width: 100%;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    height: 100%;
    padding: var(--spacing-md) var(--container-padding);
}

.footer-text {
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-2xl);
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1;
}

.social-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.social-links a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-4px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
    color: var(--color-text);
}

.lightbox-close:hover {
    background: var(--color-accent);
    color: white;
    transform: rotate(90deg);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .feature-inner {
        gap: var(--spacing-md);
    }
    
    .feature-text {
        flex: 0 1 350px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    :root {
        --container-padding: clamp(20px, 5vw, 32px);
    }
    
    .feature-inner {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .feature-image {
        aspect-ratio: 4/3;
    }

    .feature-text {
        width: 100%;
        flex: 1;
    }
    
    .feature-cards-inner {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }
    
    .card-text {
        white-space: normal;
    }
    
    .social-links {
        gap: 16px;
    }
    
    .social-links svg {
        width: 20px;
        height: 20px;
    }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card-image:hover,
    .feature-image:hover {
        transform: none;
    }
    
    .logo-dot {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .sticky-header,
    .back-to-top,
    .lightbox,
    .card-overlay {
        display: none !important;
    }
    
    .hero-inner,
    .feature-inner,
    .body-inner,
    .feature-cards-inner,
    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}
