/* Foundation Variables */
:root {
    --primary-bg: #050506;
    --secondary-bg: #0e0e11;
    --accent-color: #ff5722;
    --accent-hover: #ff784e;
    --text-main: #f0f0f0;
    --text-muted: #8e8e99;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --gradient-hero: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(5, 5, 6, 1) 70%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', sans-serif;
}

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

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

/* Placeholder for Image fields (empty) */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: placeholderShimmer 3s infinite;
}

@keyframes placeholderShimmer {
    100% {
        left: 200%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-bg);
    transform: translateY(-3px);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    background: var(--gradient-hero);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-bg-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 600px;
    z-index: 1;
}

/* Sections */
.section {
    padding: 100px 50px;
}

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

/* Two Column Layouts */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    margin-top: 50px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Cards */
.card {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(226, 135, 67, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(226, 135, 67, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.card-image-wrapper {
    height: 200px;
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(226, 135, 67, 0.1);
}

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

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 80px 50px 30px;
    color: #333333;
}

.footer p {
    color: #555555;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #111111;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666666;
}

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

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666666;
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-bg-graphic {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .navbar.scrolled {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: 0.3s ease;
    }

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

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 20px;
    }

    .hero {
        padding: 0 20px;
        text-align: center;
    }

    /* Enhance inline stat layouts on mobile */
    .grid-3[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px;
        text-align: center;
    }

    /* Responsive CTA box fix */
    .container>div[style*="padding: 60px 40px"] {
        padding: 40px 20px !important;
    }

    .masonry-gallery {
        column-count: 1;
    }
}