@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../fonts/avenir-lt-pro/AvenirLTProRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../fonts/avenir-lt-pro/AvenirLTProHeavy.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../fonts/avenir-lt-pro/AvenirLTProLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --bg-dark: #070a13;
    --bg-card: rgba(18, 24, 41, 0.7);
    --accent: #b87333; /* Gold */
    --accent-light: #e6be8a;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --border: rgba(184, 115, 51, 0.2);
    --glass-bg: rgba(7, 10, 19, 0.8);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Avenir Next LT Pro', 'Outfit', sans-serif;
    --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-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--glass-bg);
    
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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


.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 115, 51, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(184, 115, 51, 0.1);
    transform: translateY(-3px);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(184, 115, 51, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(184, 115, 51, 0.05) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: -1;
}

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

.hero-btns {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.bg-dark {
    background-color: #050810;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(184, 115, 51, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item span {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.w-full {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background-color: #03050a;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 30px;
    opacity: 0.8;
}


.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0 auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(7, 10, 19, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(184, 115, 51, 0.2);
        padding: 2.5rem 2rem;
        gap: 1.8rem;
        text-align: center;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Logo Text Styling */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .aether {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.logo-text .capital {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-top: 0.2rem;
}

/* Logo Integration Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(184, 115, 51, 0.2));
}

footer .logo-icon {
    height: 35px;
}

/* WebGL Background Styling */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at center, #0a0e1a 0%, #050810 100%);
}

#hero {
    background: transparent !important;
}

.hero-overlay {
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 8, 16, 0.4) 100%) !important;
    opacity: 0.8 !important;
}

/* Ethereal Text Animation */
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(184, 115, 51, 0.2)); }
    50% { filter: drop-shadow(0 0 20px rgba(184, 115, 51, 0.5)); }
}

.logo-icon, .logo-text {
    animation: glow 6s ease-in-out infinite;
}

.logo-text .aether {
    background: linear-gradient(to right, #fff, var(--accent), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 12s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Fixing WebGL Visibility */
body {
    background-color: #050810; /* Base background */
}

main, section, footer {
    position: relative;
    z-index: 1;
    background: transparent !important; /* Force transparency for all sections */
}

#bg-canvas {
    z-index: 0; /* Move it slightly forward but still behind content */
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Debugging Visibility */
#bg-canvas {
    z-index: 1 !important; /* Move to front for a second to test */
    pointer-events: none;
    display: block !important;
    background: transparent !important;
}

main, section, footer {
    position: relative;
    z-index: 2;
}

/* Final WebGL Layout */
#bg-canvas {
    z-index: -1 !important;
    background: radial-gradient(circle at center, #0a0e1a 0%, #050810 100%) !important;
}

main, section, footer {
    z-index: 1;
}
