/* ============================================
   EDITORIAL MAGAZINE STYLES
   Playing With Photons - Nathan Davis
   ============================================ */

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

:root {
    --primary-black: #1a1a1a;
    --secondary-gray: #666;
    --light-gray: #f8f8f8;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--light-gray);
    color: var(--primary-black);
    line-height: 1.4;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a.active {
    opacity: 1;
}

.header-nav a.active::after {
    width: 100%;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-black);
    text-decoration: none;
    text-align: center;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    gap: 30px;  /* Change this to 30px to match header-left if you want */
    justify-content: flex-end;
    align-items: center;
}

/* Apply header-nav styling to direct links in header-right */
.header-right > a {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

/* Add the underline effect to header-right links */
.header-right > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.header-right > a:hover::after,
.header-right > a.active::after {
    width: 100%;
}

.search-btn, .cart-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--primary-black);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.search-btn:hover, .cart-btn:hover, .menu-btn:hover {
    opacity: 0.6;
}

.cart-count {
    background: var(--primary-black);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-family: 'JetBrains Mono', monospace;
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 2000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--primary-black);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    opacity: 0.6;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--primary-black);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: 80px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero-cover {
    height: 100vh;
    position: relative;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.cover-text {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-black);
    color: white;
    position: relative;
}

.cover-issue {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cover-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.85;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cover-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 50px;
    opacity: 0.9;
}

.cover-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.cover-image {
    position: relative;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: grayscale(100%) contrast(1.2);*/
    transform: scale(1.1);
    transition: transform 20s ease;
}

.cover-image:hover img {
    transform: scale(1.15);
}

/* Small Hero */
.hero-small {
    height: 50vh;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-small-content {
    position: relative;
    z-index: 2;
}

.hero-small h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-small p {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-style: italic;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 100px 0;
    background: var(--white);
}

.content-section2 {
    padding: 35px 0;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-intro {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--secondary-gray);
    max-width: 800px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   PHOTO GRID
   ============================================ */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

.caption-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.caption-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: grayscale(100%) contrast(1.1);*/
    transition: all 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
    /*filter: grayscale(0%) contrast(1);*/
}

.card-content {
    padding: 30px;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-gray);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 15px 30px;
    border: 2px solid var(--primary-black);
    background: none;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-black);
    color: white;
}

.btn-primary {
    background: var(--primary-black);
    color: white;
}

.btn-primary:hover {
    background: white;
    color: var(--primary-black);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 30px;
}

.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    color: var(--secondary-gray);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-black);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-black);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.footer-description {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-section a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

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

.animate-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        padding: 15px 20px;
    }
    
    .header-left {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .cover-grid {
        grid-template-columns: 1fr;
    }
    
    .cover-text {
        padding: 60px 30px;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .grid-2col,
    .grid-3col,
    .grid-4col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-section {
        padding: 60px 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }