/* =========================================
   1. RESET & BASIC TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    height: 100%; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Lock scrolling on desktop to create the app-like feel */
    overflow: hidden; 
    background-color: #000;
}

h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; opacity: 0.7; margin-bottom: 1rem; }
p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 2.5rem; opacity: 0.9; }

/* =========================================
   2. NAVIGATION HEADER
   ========================================= */
header { position: absolute; top: 30px; right: 50px; z-index: 200; }

nav a {
    color: white; text-decoration: none; margin-left: 25px; font-weight: 700;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    opacity: 0.8; transition: opacity 0.3s;
}
nav a:hover { opacity: 1; }

/* =========================================
   3. MAIN SPLIT-SCREEN LAYOUT (Desktop Defaults)
   ========================================= */
.hero-container { display: flex; width: 100%; height: 100vh; position: relative; }

.split-side {
    flex: 1; height: 100%; padding: 5%; display: flex; align-items: center;
    color: white; position: relative; z-index: 1;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

/* Left Side */
.steady-side {
    background-color: #0b358a; 
    background-image: url('assets/bk_steady.jpg');
    background-size: cover; background-position: center; 
    justify-content: flex-start;
}

/* Right Side (Updated "More Orange" Gradient) */
.creative-side {
    background: linear-gradient(135deg, #ff7e29 0%, #ff8c42 40%, #8a2be2 100%);
    background-image: url('assets/bk_creative.jpg'); 
    background-size: cover; background-position: center; 
    justify-content: flex-end; text-align: right;
}

/* Hover Interaction */
.hero-container:has(.steady-side:hover) .steady-side { flex: 1.8; }
.hero-container:has(.steady-side:hover) .creative-side { flex: 1; filter: grayscale(60%) brightness(0.6); }
.hero-container:has(.creative-side:hover) .creative-side { flex: 1.8; }
.hero-container:has(.creative-side:hover) .steady-side { flex: 1; filter: grayscale(60%) brightness(0.6); }

/* Content wrappers */
.content-wrapper { z-index: 5; max-width: 550px; position: relative; }
.left-content { padding-right: 80px; }
.right-content { padding-left: 80px; align-items: flex-end; display: flex; flex-direction: column; }

/* =========================================
   4. CENTER INTERFACE (Logo & Dividers)
   ========================================= */
.center-interface {
    position: absolute; top: 0; left: 50%; height: 100vh; width: 0; z-index: 100;
    display: flex; justify-content: center; align-items: center; overflow: visible;
}

.logo-circle {
    width: 180px; height: 180px; min-width: 180px; min-height: 180px;
    background-color: #000000; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; z-index: 102;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); position: absolute; top: 50%;
    transform: translateY(-50%); cursor: pointer; transition: transform 0.3s ease;
}
.logo-circle:hover { transform: translateY(-50%) scale(1.05); }

/* Shared Divider Styles */
.divider-svg { position: absolute; z-index: 101; pointer-events: none; overflow: visible; }

/* Desktop Vertical Divider */
.desktop-divider {
    width: 600px; height: 100vh; top: 0; left: 50%;
    transform: translateX(-50%); display: block;
}

/* Mobile Horizontal Divider (Hidden on desktop) */
.mobile-divider {
    width: 120%; height: 250px; top: 50%; left: 50%;
    transform: translate(-50%, -50%); display: none;
}

/* =========================================
   5. GLOBAL BUTTON STYLES
   ========================================= */
.btn {
    display: inline-block; padding: 18px 40px; border-radius: 50px;
    text-decoration: none; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s;
    border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.btn-steady { background-color: white; color: #0b358a; }
.btn-creative { background-color: #1a1a1a; color: white; border: 1px solid rgba(255,255,255,0.2); }

.btn-download {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none;
    font-weight: bold; margin-bottom: 50px; transition: 0.3s;
}
.btn-download:hover { background: white; color: #0b358a; }

.btn-card {
    display: block; width: 100%; padding: 10px; margin-top: 20px;
    border: 1px solid white; color: white; text-decoration: none; border-radius: 5px;
    transition: 0.3s; text-align: center; cursor: pointer;
}
.btn-highlight { background: white; color: #0b358a; border: none; }
.btn-card:hover { background: white; color: #0b358a; }

.nav-btn {
    background: none; border: 1px solid rgba(255,255,255,0.3); color: white;
    padding: 5px 15px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: 0.2s;
}
.nav-btn:hover { background: white; color: #000; }

/* =========================================
   6. GENERAL OFF-CANVAS PANEL STYLES
   ========================================= */
.off-canvas {
    position: fixed; top: 0; left: -100%; width: 100%; max-width: 800px;
    height: 100%; background-color: #082a70; z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 10px 0 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; color: white;
}
.off-canvas.active { left: 0; }

.panel-header {
    padding: 20px 40px; background: rgba(0,0,0,0.2); display: flex;
    justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-controls { display: flex; align-items: center; gap: 20px; }
.close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

.panel-content { padding: 40px; overflow-y: auto; flex: 1; }
.panel-hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.panel-hero p { margin-bottom: 30px; opacity: 0.9; max-width: 600px; }

/* =========================================
   7. PANEL SPECIFICS
   ========================================= */

/* --- HOSTING (Left Slide) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.price-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 30px 20px; border-radius: 10px; position: relative; text-align: center; }
.price-card.recommended { background: rgba(255,255,255,0.1); border: 1px solid #4a90e2; transform: scale(1.05); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #4a90e2; padding: 4px 12px; font-size: 12px; border-radius: 20px; font-weight: bold; }
.price { font-size: 2.5rem; font-weight: 800; margin: 15px 0; }
.per-mo { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.features-list { list-style: none; text-align: left; margin: 20px 0; padding: 0; }
.features-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
details { background: rgba(255,255,255,0.05); margin-bottom: 10px; border-radius: 5px; padding: 15px; }
summary { cursor: pointer; font-weight: bold; list-style: none; }
summary::after { content: '+'; float: right; font-weight: bold; }
details[open] summary::after { content: '-'; }
details p { margin-top: 15px; margin-bottom: 0; font-size: 0.95rem; opacity: 0.8; }

/* --- PORTFOLIO (Right Slide) --- */
.panel-creative { 
    left: auto; right: -100%; 
    background: linear-gradient(135deg, #ff7e29 0%, #ff8c42 40%, #8a2be2 100%); /* More Orange */
}
.panel-creative.active { right: 0; left: auto; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 50px; }
.portfolio-grid .panel-hero { grid-column: 1 / -1; margin-bottom: 20px; }

.project-card { 
    background: #000; border-radius: 12px; overflow: hidden; position: relative; 
    cursor: pointer; aspect-ratio: 4/3; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255,255,255,0.1); 
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); z-index: 2; }
.project-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.3s; }

.card-overlay { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    color: white; transform: translateY(20px); opacity: 0; transition: all 0.3s ease; 
}
.project-card:hover .card-overlay { transform: translateY(0); opacity: 1; }
.card-overlay h4 { margin: 0; font-size: 1.2rem; }
.card-overlay span { font-size: 0.85rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* Detail View */
.detail-hero-img { width: 100%; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.detail-badge { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
#detail-title { margin-top: 25px; /* Added spacing */ }

/* --- SERVICES (Top Slide) --- */
.panel-services {
    left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important;
    top: -100% !important; bottom: auto; height: 100%;
    background: linear-gradient(135deg, #ff7e29 0%, #ff8c42 40%, #8a2be2 100%); /* More Orange */
    background-image: url('assets/bk_creative.jpg'); background-size: cover; background-position: center;
    z-index: 1100; transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.panel-services.active { top: 0 !important; }

/* Services Promo Box */
.hosting-promo {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px; border-radius: 10px; display: flex; align-items: center; gap: 20px;
    margin-bottom: 40px; text-align: left;
}
.hosting-promo .icon { font-size: 2rem; }
.hosting-promo .promo-text { font-size: 1rem; line-height: 1.4; }
.hosting-promo .small { display: block; font-size: 0.85rem; opacity: 0.7; margin-top: 5px; }
.card-sub { font-size: 0.9rem; opacity: 0.8; margin: -10px 0 20px 0; font-style: italic; }
.faded { opacity: 0.5; }
.hourly-rate { margin-top: 15px; font-size: 1.5rem; font-weight: 800; color: #fff; }

/* --- CONTACT (Bottom Slide) --- */
.panel-contact {
    left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important;
    top: 100% !important; height: 100%; background-color: #0a0a0a;
    background-image: url('assets/bk_steady.jpg'); background-size: cover; background-position: center center;
    color: white; z-index: 1100; transition: top 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
}
.panel-contact.active { top: 0 !important; }

.contact-content { 
    display: flex; flex-direction: column; align-items: center; 
    justify-content: center; text-align: center; max-width: 1000px; margin: 0 auto; height: 100%; 
}
.contact-grid.new-layout { 
    display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; 
    margin-top: 60px; position: relative; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}
.contact-island { 
    flex: 1; min-width: 250px; max-width: 350px; padding: 50px 30px; text-align: center; 
    position: relative; transition: transform 0.3s ease, background 0.3s ease; 
}
.contact-island:not(:last-child)::after { 
    content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; 
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent); 
}
.contact-island:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.02); }

/* Icons */
.icon-wrapper { margin-bottom: 25px; transition: all 0.3s ease; filter: drop-shadow(0 5px 10px rgba(74, 144, 226, 0.2)); }
.icon-wrapper svg { width: 36px; height: 36px; } /* Smaller white icons */
.contact-island:hover .icon-wrapper { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.6)); }

.island-content h4 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.island-content p { font-size: 0.95rem; opacity: 0.7; margin-bottom: 15px; line-height: 1.6; }
.contact-link { 
    display: inline-block; margin-top: 15px; text-decoration: none; 
    color: #d0d0d0; font-weight: bold; font-size: 1.1rem; 
    transition: color 0.3s ease, transform 0.2s ease; 
}
.contact-link:hover { color: #4a90e2; transform: scale(1.05); }


/* =========================================
   8. FINAL CONSOLIDATED MOBILE CSS
   ========================================= */
@media (max-width: 900px) {
    
    /* --- Global Mobile Resets --- */
    body, html { overflow-y: auto !important; height: auto !important; }
    .hero-container { flex-direction: column; height: auto !important; min-height: 100vh; }

    /* --- Homepage Sections --- */
    .split-side {
        width: 100%;
        /* INCREASED PADDING: 140px ensures space around logo */
        padding: 140px 30px; 
        justify-content: center; text-align: center;
    }
    
    .content-wrapper, .left-content, .right-content { 
        padding: 0; align-items: center; text-align: center; max-width: 100%; margin: 0;
    }
    
    /* --- Central Interface --- */
    .center-interface {
        position: relative !important; top: auto !important; left: auto !important; transform: none !important;
        width: 100% !important; height: 0 !important; margin: 0 !important;
        z-index: 50; pointer-events: none;
    }
    .logo-circle {
        position: absolute !important; top: 0 !important; left: 50% !important;
        transform: translate(-50%, -50%) !important; pointer-events: auto;
        box-shadow: 0 0 0 8px rgba(0,0,0,0.2), 0 20px 40px rgba(0,0,0,0.5) !important;
        width: 180px !important; height: 180px !important; min-width: 180px !important; min-height: 180px !important;
    }
    
    /* --- SWITCH DIVIDERS --- */
    .desktop-divider { display: none !important; }
    .mobile-divider { 
        display: block !important; 
        width: 120%; height: 250px; 
        top: 50%; left: 50%; transform: translate(-50%, -50%);
    }

    /* --- Nav (Glassmorphism Ribbon) --- */
    header { 
        top: 0; width: 100%; left: 0; right: 0; display: flex; justify-content: center; 
        background: rgba(0, 0, 0, 0.15); /* Transparent tint */
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); /* Frosted Glass */
        padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    nav a { margin: 0 12px; font-size: 0.85rem; }
    h1 { font-size: 2.2rem; }
    
    /* --- Panels (Mobile Sizing) --- */
    .off-canvas { width: 100%; max-width: 100%; }
    .panel-content { padding: 30px 20px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .panel-contact { overflow-y: auto; }
    .contact-content { height: auto; padding: 80px 20px; display: block; }
    
    .contact-grid.new-layout { flex-direction: column; border: none; gap: 30px; }
    .contact-island { width: 100%; max-width: 100%; padding: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .contact-island:last-child { border-bottom: none; }
    .contact-island::after { display: none; }
}