/* ===== RESET AND GLOBAL STYLES ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

code {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    letter-spacing: 0.04em;
}

main {
    width: 100%;
}

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

.hero-title {
    font-size: clamp(3rem, 14vw, 10rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #f5f5f5;
    font-weight: 700;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: #f5f5f5;
}

.item-title {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    color: #d4af37;
    font-weight: 700;
}

.item-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    color: #d4af37;
    font-weight: 700;
}

.item-text, .method-text {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    letter-spacing: 0.01em;
    color: #a0a0a0;
    line-height: 1.8;
}

/* ===== HERO SECTION ===== */

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    padding: 0 2rem;
}

/* ===== ACCENT BARS ===== */

.accent-bar {
    width: 100vw;
    height: 4px;
    background-color: #d4af37;
    margin: 0;
    padding: 0;
}

/* ===== SECTION STYLES ===== */

section {
    width: 100vw;
    padding: 6rem 4rem;
    background-color: #1a1a1a;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

section:nth-child(4n+1) {
    background-color: #0a0a0a;
}

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

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    padding: 2rem;
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 200ms ease-out;
}

.grid-item:hover {
    background-color: rgba(13, 95, 111, 0.15);
    border-color: #0d5f6f;
}

/* ===== ACHIEVEMENT SECTION ===== */

.achievement-section {
    background-color: #0a0a0a;
}

.achievement-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.achievement-block {
    padding: 2.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d2e34 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 200ms ease-out;
}

.achievement-block:hover {
    transform: translateY(-4px);
    border-color: #0d5f6f;
}

.achievement-stat {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
}

.achievement-label {
    font-size: 0.95rem;
    color: #a0a0a0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== METHODOLOGY SECTION ===== */

.methodology-section {
    background-color: #1a1a1a;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

.method-item {
    padding: 2.5rem;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.12);
    position: relative;
    transition: all 200ms ease-out;
}

.method-item:hover {
    background-color: rgba(13, 95, 111, 0.1);
    border-color: #0d5f6f;
}

.method-number {
    font-size: 3rem;
    color: #d4af37;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.method-title {
    font-size: 1.3rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

.method-text {
    font-size: 0.95rem;
}

/* ===== POWER STATEMENT SECTION ===== */

.power-section {
    background-color: #0a0a0a;
}

.power-statement {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.statement-text {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: #f5f5f5;
    line-height: 2;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* ===== CTA SECTION ===== */

.cta-section {
    background-color: #1a1a1a;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: #a0a0a0;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 200ms ease-out;
    font-weight: 600;
}

.btn-primary {
    background-color: #d4af37;
    color: #0a0a0a;
}

.btn-primary:hover {
    background-color: #e8c547;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    opacity: 0.3;
}

.btn-secondary {
    background-color: transparent;
    color: #f5f5f5;
    border: 1px solid #d4af37;
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #0d5f6f;
    color: #d4af37;
}

.btn-secondary:active {
    opacity: 0.3;
}

/* ===== PROGRESS INDICATOR ===== */

.progress-indicator {
    position: fixed;
    right: 0;
    top: 0;
    width: 3px;
    height: 100vh;
    background: linear-gradient(180deg, transparent 0%, #d4af37 50%, transparent 100%);
    z-index: 999;
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.progress-indicator.visible {
    opacity: 1;
}

/* ===== SCROLL REVEAL ANIMATION ===== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    section {
        padding: 4rem 3rem;
    }
    
    .section-heading {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }
    
    .achievement-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-heading {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
    
    .achievement-content {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        gap: 1rem;
    }
    
    .grid-item {
        padding: 1.5rem;
    }
    
    .achievement-block {
        padding: 1.5rem;
    }
    
    .method-item {
        padding: 1.5rem;
    }
    
    .statement-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}

/* ===== UTILITY STYLES ===== */

.section-visible section {
    animation: scrollReveal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Smooth transitions on interactive elements */
a, button, input, select, textarea {
    transition: all 200ms ease-out;
}

/* Grid item shadow effect */
.grid-item {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.achievement-block {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.method-item {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

/* Prevent layout shift */
html {
    scroll-padding-top: 0;
}

/* Loading state */
section[data-loading="true"] {
    opacity: 0.5;
}

/* Focus states (hidden for now as per guidelines) */
:focus {
    outline: none;
}

/* Print styles */
@media print {
    .progress-indicator,
    .accent-bar {
        display: none;
    }
}
