/* */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --repair-accent: #0ea5e9;
    --web-accent: #6366f1;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-dim: #cbd5e1;
}

/* */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    min-height: 100%;
    background-color: var(--dark);
    color: var(--text-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* */
nav {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border);
    z-index: 1000; box-sizing: border-box;
}

.logo { font-weight: 800; color: #fff; text-decoration: none; letter-spacing: 2px; font-size: 1.4rem; }

/* Navigation Extensions */
.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .nav-left { gap: 1rem; }
    .nav-link { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
}

/* */
.nav-controls { display: flex; align-items: center; gap: 1.5rem; }
.toggle-container { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
.switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155; transition: .4s; border-radius: 20px;
}
.slider:before {
    position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* */
.hero-container { display: flex; min-height: 100vh; width: 100vw; position: relative; }

.split {
    flex: 1; position: relative; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden; text-align: center; padding: 2rem;
}

.bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-position: center; background-size: cover; z-index: 1;
    transition: transform 1.2s ease;
}

#img-repairs {
    background: linear-gradient(135deg, #0c1929 0%, #1a365d 50%, #0ea5e9 100%);
}

#img-webdev {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #6366f1 100%);
}

.bg-image::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
    z-index: 2;
}

.split:hover { flex: 1.5; }
.split:hover .bg-image { transform: scale(1.1); }

/* */
.content {
    position: relative; z-index: 5; max-width: 420px; padding: 2.5rem;
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 28px;
    animation: float 6s ease-in-out infinite;
}

.content h1 { font-size: 2.5rem; margin: 0 0 1rem 0; font-weight: 800; color: #ffffff; }
.content p { font-size: 1.1rem; color: var(--text-dim); line-height: 1.6; }

.stats-badge {
    display: inline-block; background: rgba(255, 255, 255, 0.1);
    color: #fff; padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

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

/* */
.btn {
    display: inline-block; padding: 1.1rem 2rem; border-radius: 12px;
    text-decoration: none; font-weight: 700; transition: 0.3s;
    color: white; text-transform: uppercase; letter-spacing: 1px; margin-top: 1.5rem;
}
.btn-repair { background: var(--repair-accent); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
.btn-web { background: var(--web-accent); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }

/* */
.stats-float-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 3; overflow: hidden;
}

.float-item {
    position: absolute; color: rgba(255, 255, 255, 0.08); 
    font-weight: 900; font-size: 1.5rem; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 5px; animation: drift linear infinite;
}

.float-item:nth-child(1) { top: 15%; animation-duration: 45s; }
.float-item:nth-child(2) { top: 35%; animation-duration: 60s; }
.float-item:nth-child(3) { top: 55%; animation-duration: 50s; }
.float-item:nth-child(4) { top: 75%; animation-duration: 70s; }
.float-item:nth-child(5) { top: 25%; left: 40%; animation-duration: 55s; }
.float-item:nth-child(6) { top: 65%; left: 20%; animation-duration: 40s; }

@keyframes drift {
    from { transform: translateX(110vw); }
    to { transform: translateX(-110vw); }
}

/* */
.map-section { padding: 4rem 2rem; background: var(--dark); display: flex; justify-content: center; }
.map-container {
    width: 100%; max-width: 1200px; height: 450px; border-radius: 28px;
    overflow: hidden; border: 1px solid var(--glass-border);
}
#gmap { width: 100%; height: 100%; border: none; filter: grayscale(0.5) invert(0.9); }

/* */
body.no-motion .split:hover { 
    flex: 1 !important; 
}

body.no-motion .content { 
    animation: none !important; 
    transform: none !important; 
    /* removed display: none */
}

body.no-motion .float-item { 
    display: none !important; /* This is fine to hide, as these are just background stats */
}

body.no-motion *, body.no-motion *::before {
    animation: none !important; 
    transition: none !important; 
    transform: none !important;
}

/* */
footer {
    width: 100%; text-align: center; padding: 2rem;
    background: #0b1120; color: #64748b; font-size: 1.2rem;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; width: 100%; }
    .split { min-height: 50vh; height: auto; width: 100%; padding: 1.5rem; }
    .split:hover { flex: 1 !important; }

    .content {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .content h1 { font-size: 1.8rem; }
    .content p { font-size: 1rem; }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .map-container { height: 300px; }

    footer { font-size: 0.9rem; padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    nav { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .logo { font-size: 1rem; letter-spacing: 1px; }
    .nav-left { gap: 0.5rem; }
    .nav-link { padding: 0.3rem 0.5rem; font-size: 0.7rem; }

    .nav-controls { gap: 0.8rem; }
    .toggle-container { display: flex; align-items: center; gap: 4px; }
    .toggle-container span { display: none; }
    .contact-info { font-size: 0.8rem; }

    .split { padding: 1rem; min-height: 45vh; }
    .content { padding: 1.2rem; }
    .content h1 { font-size: 1.5rem; }

    .stats-badge { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
}

@media (max-width: 360px) {
    .nav-left { gap: 0.3rem; }
    .nav-link { padding: 0.2rem 0.4rem; font-size: 0.65rem; }
    .logo { font-size: 0.9rem; }
    .contact-info { display: none; }
}
