/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLING - ANTHILL GROUP
   ========================================================================== */

:root {
    /* Color Tokens (HSL Palette) */
    --bg-dark: hsl(220, 20%, 6%);
    --bg-card: hsla(220, 18%, 10%, 0.7);
    --border-color: hsla(220, 15%, 20%, 0.4);
    --border-hover: hsla(38, 35%, 55%, 0.3);
    
    --accent-color: hsl(38, 35%, 55%);
    --accent-glow: hsla(38, 35%, 55%, 0.15);
    
    --text-primary: hsl(210, 15%, 90%);
    --text-secondary: hsl(210, 10%, 60%);
    --text-muted: hsl(210, 10%, 45%);
    
    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Layout Sizes */
    --header-height: 80px;
    --max-width: 1100px;
}

/* Reset & Base Rules */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Background Ambient Glow */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    transition: top 0.1s ease, left 0.1s ease;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Typographic Helpers */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.text-center {
    text-align: center;
}

/* Section Common Layouts */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Header & Nav CSS */
.main-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monogram {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section CSS */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 0 auto 30px auto;
}

.hero-badge {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Philosophy Section CSS */
.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-text {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.7;
}

.body-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Sectors Section CSS */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sector-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.sector-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(100%);
}

.sector-card:hover .card-bg {
    transform: scale(1.06);
    opacity: 0.15;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sector-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-icon {
    color: var(--accent-color);
    margin-bottom: 24px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-footer-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Commitments Section CSS */
.commitments-section {
    background-color: transparent;
}

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

.commitment-item {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    transition: border-color 0.4s ease;
}

.commitment-item:hover {
    border-top-color: var(--accent-color);
}

.commitment-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.commitment-desc {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer CSS */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.separator {
    color: var(--text-muted);
}

.contact-email:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: revealAnim 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.reveal-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: revealAnim 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Interactive JS Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.left {
    transform: translateX(-30px);
}

.reveal-on-scroll.right {
    transform: translateX(30px);
}

.reveal-on-scroll.bottom {
    transform: translateY(30px);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translate(0) !important;
}

@keyframes revealAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 900px) {
    .hero-title {
        font-size: 56px;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sector-card {
        padding: 36px;
    }

    .commitments-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 70px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav {
        gap: 24px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
}
