@font-face {
    font-family: 'Latom Grotesque';
    src: url('../assets/fonts/Latom/Web Fonts/latomgrotesque-regular-webfont.woff2') format('woff2'),
        url('../assets/fonts/Latom/Web Fonts/latomgrotesque-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Latom Grotesque';
    src: url('../assets/fonts/Latom/Web Fonts/latomgrotesque-medium-webfont.woff2') format('woff2'),
        url('../assets/fonts/Latom/Web Fonts/latomgrotesque-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Latom Grotesque';
    src: url('../assets/fonts/Latom/Web Fonts/latomgrotesque-bold-webfont.woff2') format('woff2'),
        url('../assets/fonts/Latom/Web Fonts/latomgrotesque-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-dark: #070707;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent: #E3B04B;
    /* Amber/Gold */
    --accent-hover: #F2C94C;
    --text-main: #F5F5F5;
    --text-muted: #A0A0A0;
    --nav-bg: rgba(7, 7, 7, 0.8);
    --font-serif: "Libre Baskerville", serif;
    --font-sans: "Latom Grotesque", sans-serif;
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
blockquote {
    font-family: var(--font-sans);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.accent {
    color: var(--accent);
}

.center {
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled,
.navbar.visible {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateY(0);
}

.navbar.hidden-nav {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.navbar.visible {
    pointer-events: all;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-dark) !important;
    border-radius: 2px;
    font-weight: 700 !important;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Hero Sequence Section */
.hero-sequence {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: -1;
}

/* Hero Intro Section */
.hero-intro {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.center-indicator {
    align-items: center;
    margin: 40px auto 0;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 0;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .arrow {
    width: 1px;
    height: 60px;
    background: var(--accent);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .arrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scroll-anim 2s infinite linear;
}

@keyframes scroll-anim {
    0% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(60px);
    }
}

/* Sections */
.section-padding {
    padding: 140px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* About Section Refinement */
#about {
    background: linear-gradient(135deg, #070707 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: "CREDO";
    position: absolute;
    top: 10%;
    right: -5%;
    font-size: 15rem;
    font-family: var(--font-serif);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    line-height: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.text-content {
    position: relative;
    z-index: 1;
}

.text-content .section-title {
    margin-bottom: 40px;
    font-size: 3.5rem;
}

.lead {
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 30px;
    font-family: var(--font-sans);
}

.text-content p:not(.lead) {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 90%;
}

.image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reveal-img-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(227, 176, 75, 0.05) 0%, transparent 70%);
}

.reveal-img-container::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(227, 176, 75, 0.1);
    transform: rotate(45deg);
}

.parallax-img {
    width: 60%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s linear;
}

.dark-bg {
    background-color: #0c0c0c;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.service-icon {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-muted);
}

.card-features {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-features li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: "•";
    color: var(--accent);
    margin-right: 10px;
}

/* Our Story */
.split-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.story-visual {
    position: relative;
    text-align: center;
}

.wolf-silhouette {
    width: 80%;
    max-width: 400px;
    opacity: 0.1;
    filter: invert(1);
}

.credo-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent);
    margin: 40px 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(227, 176, 75, 0.05));
}

.contact-box {
    background: var(--bg-card);
    padding: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-box h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-large {
    display: inline-block;
    padding: 20px 50px;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 40px;
    transition: var(--transition);
}

.btn-large:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    height: 30px;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="left"] {
    transform: translateX(-50px);
}

[data-reveal="right"] {
    transform: translateX(50px);
}

[data-reveal="bottom"] {
    transform: translateY(50px);
}

[data-reveal="fade"] {
    transform: scale(0.95);
}

.revealed {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .grid-2,
    .split-story {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .image-content {
        order: -1;
    }

    /* Image above text on stack */
    .parallax-img {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        /* Right align menu items */
        padding: 40px;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        text-align: right;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card h3,
    .contact-box h3 {
        font-size: 1.5rem;
    }

    .text-content .section-title {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .container {
        padding: 0 25px;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--text-main);
        transition: var(--transition);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}