/* ==========================================================================
   ATLANTIK REKLAM - GLOBAL DESIGN SYSTEM & STYLESHEET
   ==========================================================================
   Architecture: Modular Vanilla CSS
   Theme Palette: Dark Industrial B2B Premium Theme (#0F1115 Base, #E85A0C Primary)
   Typography: Inter (Body), Space Grotesk (Headings)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Theme Variables)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg: #0F1115;            /* Dark main background */
    --bg-card: #16181D;       /* Card background */
    --bg-elevated: #1E2127;   /* Elevated surface & input background */
    --fg: #FFFFFF;            /* Primary text color */
    --fg-muted: #9CA3AF;      /* Muted text color */
    --accent: #E85A0C;        /* Primary accent orange */
    --accent-hover: #FF6B35;  /* Secondary accent bright orange */
    --border: #2A2E36;        /* Subtle border color */
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography Setup
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support for Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* --------------------------------------------------------------------------
   3. Custom Webkit Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   4. CSS Animations & Scroll Reveal Effects
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(232, 90, 12, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(232, 90, 12, 0.6);
    }
}

/* Animation Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* IntersectionObserver Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Delay Modifiers for Grids & Lists */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* --------------------------------------------------------------------------
   5. Background Gradients & Overlay FX
   -------------------------------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(135deg, #0F1115 0%, #1a1d24 50%, #0F1115 100%);
}

.mesh-gradient {
    background: 
        radial-gradient(at 20% 80%, rgba(232, 90, 12, 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(30, 33, 39, 1) 0%, transparent 100%);
}

.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.glow-accent {
    box-shadow: 0 0 60px rgba(232, 90, 12, 0.3);
}

/* --------------------------------------------------------------------------
   6. Component Styles
   -------------------------------------------------------------------------- */
/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(232, 90, 12, 0.25);
    border-color: rgba(232, 90, 12, 0.3);
}

/* Interactive Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(232, 90, 12, 0.5);
}

.btn-secondary {
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 90, 12, 0.1);
}

/* Form Controls */
.form-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 90, 12, 0.2);
}

/* Accordion Component */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Project Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
}

.filter-btn:not(.active):hover {
    background: var(--bg-elevated);
    color: var(--accent);
}

/* Process Timeline Connection Line */
.process-line {
    position: absolute;
    top: 28px;
    left: 50%;
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border));
    z-index: 0;
}

/* Mobile Slide-in Navigation Drawer */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Placeholder Container Styling */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, #2A2E36 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Badges & Mobile Floating Bar */
.trust-badge {
    backdrop-filter: blur(10px);
    background: rgba(22, 24, 29, 0.8);
    border: 1px solid var(--border);
}

.bottom-bar {
    backdrop-filter: blur(20px);
    background: rgba(15, 17, 21, 0.95);
}
