/* Master CSS for 1918 Production Architecture & Design - Luxury Crimson Red & Obsidian Black Theme */
:root {
    --bg-dark: #07070a;
    --bg-card: #0f0f15;
    --bg-header: rgba(7, 7, 10, 0.94);
    --border-color: #1c1c28;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #dc2626;
    --accent-dark: #991b1b;
    --accent-glow: rgba(220, 38, 38, 0.35);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .logo-title, .project-title, .page-title h1 {
    font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities & Layout */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Top Header Bar */
.top-bar {
    background: #040407;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}
.top-info span { margin-right: 20px; }
.top-info i { color: var(--accent); margin-right: 6px; }
.top-social a { color: var(--text-muted); margin-left: 14px; font-size: 14px; }
.top-social a:hover { color: var(--accent); }
.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--accent-glow);
    color: var(--accent) !important;
    border-radius: 6px;
    font-weight: 600;
}
.admin-login-btn:hover { background: var(--accent); color: #fff !important; }

/* Main Sticky Header Navigation */
.main-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: all 0.3s ease;
}
/* Full width header container with 20px padding from screen edges */
.main-header .container {
    max-width: 100%;
    padding: 0 35px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { object-fit: contain; max-width: 240px; width: auto; display: block; }
.logo-num { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.logo-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; }

/* Desktop nav links HIDDEN — hamburger only navigation */
.nav-desktop { display: none !important; }

/* Hamburger Toggle Button — 20px from right edge */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    padding: 14px 0 14px 18px;
    align-self: stretch;
    margin-right: 0;
    transition: background 0.2s ease;
}
.mobile-toggle:hover {
    background: rgba(220, 38, 38, 0.12);
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
/* Animate to X when open */
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent); }

/* Overlay backdrop */
.drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.drawer-overlay.active { display: block; opacity: 1; }

/* Slide-in Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0; right: -340px;
    width: 320px;
    height: 100vh;
    background: #0b0b10;
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    padding: 0;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.9);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.active { right: 0; }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7,7,10,0.8);
}
.drawer-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.drawer-close:hover { background: var(--accent); border-color: var(--accent); }
.drawer-nav { padding: 24px 20px; flex: 1; }
.drawer-list { display: flex; flex-direction: column; gap: 4px; }
.drawer-list li {}
.drawer-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
.drawer-list a:hover, .drawer-list a.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.25);
}
.drawer-list a .d-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 7px;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.drawer-list a:hover .d-icon { background: rgba(220,38,38,0.2); color: var(--accent); }
.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* Hero Banner Section */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: visible;
}
.hero-slider-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    opacity: 1;
}
.hero-slide.active {
    transform: translateX(0%);
    z-index: 2;
}
.hero-slide.prev-slide {
    transform: translateX(-100%);
    z-index: 1;
}

/* Ambient Floating Glow Orbs - Crimson Red */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    animation: floatOrb 10s infinite alternate ease-in-out;
}
.hero-orb-1 {
    width: 380px; height: 380px;
    background: #dc2626;
    top: -50px; left: -50px;
}
.hero-orb-2 {
    width: 420px; height: 420px;
    background: #7f1d1d;
    bottom: -100px; right: -50px;
    animation-delay: -5s;
}

/* Hero Quick Nav Shortcuts (Majör Theme Signature) */
.hero-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f8fafc;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-nav-item:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.quick-nav-num {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}
.quick-nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}
.quick-nav-item:hover .quick-nav-label {
    color: #fff;
}

/* Vertical Social Media Sidebar — 20px from right edge of screen */
.hero-social-sidebar {
    position: absolute;
    right: 20px;          /* Exactly 20px gap from far right edge of screen */
    top: 300px;           /* Starts ~300px above hero-title element */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}
.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 21, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-social-link:hover {
    transform: scale(1.1) translateX(-3px);
}
.hero-social-link.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at center, rgba(7, 7, 10, 0.4) 0%, rgba(7, 7, 10, 0.95) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--accent-glow);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Dynamic Rotating Text Badge */
.text-rotator {
    display: inline-block;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
    overflow: hidden;
    min-width: 250px;
}
.rotator-word {
    display: inline-block;
    color: var(--accent);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
    opacity: 0;
    transform: translateY(100%);
    position: absolute;
    left: 0; top: 0;
    white-space: nowrap;
}
.rotator-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}
.rotator-word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 300;
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Navigation Controls & Dots */
.hero-controls {
    position: absolute;
    bottom: 40px; right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    width: 32px;
    border-radius: 10px;
    background: var(--accent);
    border-color: var(--accent);
}
.hero-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 21, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}
.btn-main {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-main:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px var(--accent-glow); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); transform: translateY(-2px); }

/* Section Header */
.section { padding: 90px 0; }
.section-title-wrap { text-align: center; max-width: 650px; margin: 0 auto 50px; }
.section-tag { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 38px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.section-desc { color: var(--text-muted); font-size: 16px; margin-top: 12px; }

/* Grid Cards & Animated Hover */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    will-change: transform, box-shadow;
}
.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.25);
}
.project-img-wrap { position: relative; width: 100%; height: 260px; overflow: hidden; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-img-wrap img { transform: scale(1.1); }
.project-badge {
    position: absolute; top: 16px; left: 16px;
    background: rgba(7, 7, 10, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.project-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.project-desc { color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 20px; }
.project-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s; }
.project-card:hover .project-link { transform: translateX(6px); }

/* Stats Bar */
.stats-section { background: var(--bg-card); border-y: 1px solid var(--border-color); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 46px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* Scroll-Reveal Animation Engine */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(0.92); }

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Delay Stagger Classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Footer */
.site-footer { background: #040407; border-top: 1px solid var(--border-color); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-bio { color: var(--text-muted); font-size: 14px; margin: 20px 0; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
    width: 38px; height: 38px;
    background: #0f0f15; border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 16px;
    transition: all 0.25s;
}
.footer-socials a:hover { transform: translateY(-3px); color: #fff; }
.footer-socials a.instagram:hover { background: #E1306C; border-color: #E1306C; }
.footer-socials a.facebook:hover  { background: #1877F2; border-color: #1877F2; }
.footer-socials a.linkedin:hover  { background: #0A66C2; border-color: #0A66C2; }
.footer-socials a.twitter:hover   { background: #1DA1F2; border-color: #1DA1F2; }
.footer-socials a.whatsapp:hover  { background: #25D366; border-color: #25D366; }
.footer-heading { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 14px; }
.footer-contact-item i { color: var(--accent); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 24px 0; color: var(--text-muted); font-size: 13px; }

/* Media Queries */
@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 38px; }
    .hero-social-sidebar { right: 16px; top: 60px; gap: 10px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .hero-social-sidebar { display: none; }
}
