/*
 * WebPros — Global Stylesheet
 * Features : Glassmorphism nav, hamburger menu, scroll reveal,
 *            scroll-to-top, active nav highlight, responsive
 */

/* DESIGN TOKENS */
:root {
    /* Colors — dark mode (default) */
    --bg             : #050508;
    --text           : #f0f0f5;
    --text-muted     : #94a3b8;
    --accent         : #a855f7;
    --accent-glow    : rgba(168, 85, 247, 0.4);
    --glass          : rgba(15, 15, 25, 0.8);
    --glass-border   : rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-sans      : 'Inter', sans-serif;
    --font-mono      : 'JetBrains Mono', monospace;

    /* Transitions */
    --ease-out-expo  : cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s ease;
}

[data-theme="light"] {
    --bg           : #f8fafc;
    --text         : #0f172a;
    --text-muted   : #64748b;
    --accent       : #7c3aed;
    --glass        : rgba(255, 255, 255, 0.9);
    --glass-border : rgba(0, 0, 0, 0.1);
}


/* RESET & BASE */
*,
*::before,
*::after {
    margin          : 0;
    padding         : 0;
    box-sizing      : border-box;
    scroll-behavior : smooth;
}

body {
    background-color : var(--bg);
    color            : var(--text);
    font-family      : var(--font-sans);
    line-height      : 1.6;
    overflow-x       : hidden;
    opacity          : 0;
    transition       : opacity 0.5s ease-in, background-color var(--transition-base);
}

body.loaded   { opacity: 1; }
body.menu-open { overflow: hidden; }  /* Turn off body scroll while the hamburger is open. */

ul { list-style: none; }

.container {
    max-width : 1200px;
    margin    : 0 auto;
    padding   : 0 1.5rem;
}


/* NAVIGATION */
.glass-nav {
    position        : fixed;
    top             : 1.5rem;
    left            : 50%;
    transform       : translateX(-50%);
    width           : 94%;
    max-width       : 1100px;
    height          : 70px;
    z-index         : 9999;
    border-radius   : 24px;
    display         : flex;
    align-items     : center;
    background      : var(--glass);
    backdrop-filter : blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border          : 1px solid var(--glass-border);
    box-shadow      : 0 10px 30px rgba(0, 0, 0, 0.2);
    transition      : all 0.4s var(--ease-out-expo);
}

/* Full width after scrolling */
.glass-nav.scrolled {
    top           : 0;
    width         : 100%;
    max-width     : 100%;
    border-radius : 0;
    height        : 65px;
    border-left   : none;
    border-right  : none;
    border-top    : none;
    background    : rgba(5, 5, 8, 0.96);
    box-shadow    : 0 4px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .glass-nav.scrolled {
    background : rgba(248, 250, 252, 0.96);
    box-shadow : 0 4px 25px rgba(0, 0, 0, 0.05);
}

.nav-inner {
    width      : 100%;
    max-width  : 1200px;
    margin     : 0 auto;
    padding    : 0 2rem;
    display    : flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand {
    font-weight    : 800;
    font-size      : 1.5rem;
    letter-spacing : -1px;
    color          : var(--text);
    text-decoration: none;
}
.brand span { color: var(--accent); }

/* Desktop navigation links */
.nav-links {
    display    : flex;
    align-items: center;
    gap        : 0;
}

.nav-links a {
    color          : var(--text);
    text-decoration: none;
    padding        : 0.4rem 0;
    margin-right   : 1.8rem;
    font-size      : 0.95rem;
    font-weight    : 600;
    position       : relative;
    transition     : color var(--transition-base);
}

/* Underline hover effect */
.nav-links a::after {
    content         : '';
    position        : absolute;
    bottom          : -2px;
    left            : 0;
    width           : 0;
    height          : 2px;
    background      : var(--accent);
    border-radius   : 2px;
    transition      : width 0.3s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

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

/* Right actions */
.nav-actions {
    display    : flex;
    align-items: center;
    gap        : 0.75rem;
}

/* Language selector */
.lang-switch {
    display      : flex;
    gap          : 4px;
    background   : rgba(255, 255, 255, 0.05);
    padding      : 4px;
    border-radius: 12px;
}

.lang-switch button {
    background    : none;
    border        : none;
    color         : var(--text);
    cursor        : pointer;
    font-family   : var(--font-mono);
    font-size     : 0.75rem;
    font-weight   : 700;
    display       : flex;
    align-items   : center;
    gap           : 5px;
    padding       : 6px 12px;
    border-radius : 8px;
    transition    : background 0.2s, color 0.2s;
}
.lang-switch button:hover { background: var(--accent); color: #fff; }

/* Theme toggle */
.theme-toggle {
    background   : var(--glass-border);
    border       : none;
    cursor       : pointer;
    width        : 40px;
    height       : 40px;
    border-radius: 12px;
    color        : var(--text);
    display      : flex;
    align-items  : center;
    justify-content: center;
    transition   : background var(--transition-base), color var(--transition-base);
}
.theme-toggle:hover { background: var(--accent); color: #fff; }

[data-theme="dark"]  .sun-icon,
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"]  .moon-icon,
[data-theme="light"] .sun-icon  { display: none; }


/* HAMBURGER BUTTON */
.hamburger-btn {
    display        : none;   /* Hidden on the desktop */
    flex-direction : column;
    justify-content: center;
    align-items    : center;
    gap            : 5px;
    width          : 40px;
    height         : 40px;
    background     : var(--glass-border);
    border         : none;
    border-radius  : 12px;
    cursor         : pointer;
    flex-shrink    : 0;
    transition     : background var(--transition-base);
}
.hamburger-btn:hover { background: var(--accent); }

.hamburger-btn span {
    display         : block;
    width           : 20px;
    height          : 2px;
    background      : var(--text);
    border-radius   : 2px;
    transform-origin: center;
    transition      : transform 0.35s var(--ease-out-expo),
                      opacity   0.25s ease,
                      width     0.3s ease;
}

/* X Animation */
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* MOBILE MENU OVERLAY */
.mobile-menu {
    display        : none;
    position       : fixed;
    inset          : 0;
    z-index        : 9998;
    background     : var(--bg);
    opacity        : 0;
    transform      : translateY(-12px);
    pointer-events : none;
    transition     : opacity 0.3s ease,
                     transform 0.35s var(--ease-out-expo);
}

.mobile-menu.is-open {
    opacity        : 1;
    transform      : translateY(0);
    pointer-events : all;
}

.mobile-menu-inner {
    display        : flex;
    flex-direction : column;
    justify-content: center;
    align-items    : center;
    height         : 100%;
    padding        : 6rem 2rem 4rem;
    gap            : 0;
}

.mobile-nav-links {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    gap            : 0.5rem;
    width          : 100%;
}

.mobile-nav-link {
    font-size      : 2.2rem;
    font-weight    : 800;
    color          : var(--text);
    text-decoration: none;
    letter-spacing : -1px;
    padding        : 0.6rem 1.5rem;
    border-radius  : 16px;
    text-align     : center;
    width          : 100%;
    transition     : color 0.2s, background 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link:active { color: var(--accent); background: rgba(168, 85, 247, 0.08); }

.mobile-divider {
    width        : 40px;
    height       : 2px;
    background   : var(--glass-border);
    border-radius: 2px;
    margin       : 2rem 0;
}

.mobile-lang {
    background   : rgba(255, 255, 255, 0.06);
    padding      : 6px;
    border-radius: 14px;
}


/* SCROLL REVEAL */
.reveal {
    opacity   : 0;
    transform : translateY(30px);
    transition: opacity  0.7s ease,
                transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
    opacity  : 1;
    transform: translateY(0);
}

/* Stagger — hero */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }

/* Stagger — service cards */
.service-grid .reveal:nth-child(1) { transition-delay: 0s; }
.service-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.24s; }


/* SCROLL-TO-TOP BUTTON */
.scroll-top-btn {
    position       : fixed;
    bottom         : 2rem;
    right          : 2rem;
    width          : 48px;
    height         : 48px;
    border-radius  : 14px;
    background     : var(--accent);
    border         : none;
    color          : #fff;
    cursor         : pointer;
    display        : flex;
    align-items    : center;
    justify-content: center;
    box-shadow     : 0 8px 25px var(--accent-glow);
    opacity        : 0;
    transform      : translateY(12px) scale(0.85);
    pointer-events : none;
    z-index        : 9000;
    transition     : opacity  0.35s ease,
                     transform 0.35s var(--ease-out-expo),
                     box-shadow var(--transition-base);
}
.scroll-top-btn.visible {
    opacity       : 1;
    transform     : translateY(0) scale(1);
    pointer-events: all;
}
.scroll-top-btn:hover {
    transform : translateY(-3px) scale(1.05);
    box-shadow: 0 14px 35px var(--accent-glow);
}


/* HERO */
.hero {
    padding    : 14rem 0 8rem;
    text-align : center;
}

.badge {
    display        : inline-block;
    padding        : 0.6rem 1.2rem;
    background     : rgba(168, 85, 247, 0.1);
    border-radius  : 100px;
    font-family    : var(--font-mono);
    font-size      : 0.8rem;
    color          : var(--accent);
    margin-bottom  : 2rem;
    border         : 1px solid var(--accent);
}

h1 {
    font-size      : clamp(2.5rem, 8vw, 5rem);
    line-height    : 1.05;
    margin-bottom  : 2rem;
    font-weight    : 800;
    letter-spacing : -2px;
}

.accent-text {
    color                  : var(--accent);
    background             : linear-gradient(to right, var(--accent), #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
}

.hero-desc {
    max-width    : 800px;
    margin       : 0 auto 3.5rem;
    color        : var(--text-muted);
    font-size    : 1.25rem;
}

.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn {
    padding      : 1.2rem 2.5rem;
    border-radius: 14px;
    font-weight  : 700;
    text-decoration: none;
    display      : inline-block;
    transition   : transform 0.4s var(--ease-out-expo),
                   box-shadow 0.4s ease;
}
.btn.primary {
    background : var(--accent);
    color      : #fff;
    box-shadow : 0 15px 30px var(--accent-glow);
}
.btn.secondary {
    border     : 1px solid var(--glass-border);
    color      : var(--text);
    background : var(--glass);
}
.btn:hover {
    transform  : translateY(-5px);
    box-shadow : 0 20px 40px rgba(0, 0, 0, 0.3);
}


/* SERVICE CARDS */
.service-grid {
    display               : grid;
    grid-template-columns : repeat(auto-fit, minmax(340px, 1fr));
    gap                   : 2.5rem;
    margin                : 6rem 0;
}

.service-card {
    padding      : 4rem 2.5rem;
    border-radius: 32px;
    border       : 1px solid var(--glass-border);
    transition   : transform 0.5s var(--ease-out-expo),
                   border-color var(--transition-base),
                   box-shadow 0.5s ease;
    position     : relative;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.service-card.active {
    border    : 2px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.icon-accent {
    color        : var(--accent);
    width        : 48px;
    height       : 48px;
    margin-bottom: 2rem;
}

.card-head {
    display        : flex;
    justify-content: space-between;
    align-items    : flex-start;
}
.card-num {
    font-family : var(--font-mono);
    font-size   : 0.75rem;
    color       : var(--text-muted);
    opacity     : 0.5;
}

.feature-list {
    border-top : 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top : 2rem;
}
.feature-list li {
    margin-bottom: 1rem;
    display      : flex;
    align-items  : center;
    gap          : 12px;
    font-size    : 0.95rem;
}
.feature-list li::before {
    content      : '';
    width        : 8px;
    height       : 8px;
    background   : var(--accent);
    border-radius: 50%;
    flex-shrink  : 0;
}


/* VISION / PHILOSOPHY */
.philosophy-box {
    padding      : 5rem 3rem;
    border-radius: 40px;
    text-align   : center;
    margin       : 8rem 0;
    border       : 1px solid var(--glass-border);
}

.phi-icon {
    width        : 56px;
    height       : 56px;
    color        : var(--accent);
    margin-bottom: 1.5rem;
}

.philosophy-box h2 {
    font-size      : clamp(1.6rem, 3vw, 2.2rem);
    font-weight    : 800;
    letter-spacing : -1px;
    margin-bottom  : 1.25rem;
}

.philosophy-box p {
    max-width  : 820px;
    margin     : 0 auto;
    font-size  : clamp(1rem, 1.5vw, 1.15rem);
    color      : var(--text-muted);
    line-height: 1.85;
}


/* CONTACT */
.contact-card {
    padding      : 5rem 3rem;
    border-radius: 40px;
    text-align   : center;
    margin       : 8rem 0;
    border       : 1px solid var(--glass-border);
}

.contact-card h2 {
    font-size      : clamp(1.6rem, 3vw, 2.2rem);
    font-weight    : 800;
    letter-spacing : -1px;
    margin-bottom  : 1rem;
}

.contact-card p {
    color        : var(--text-muted);
    margin-bottom: 0.5rem;
}

.mail-wrap {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 0.75rem;
    margin-top     : 2rem;
    flex-wrap      : wrap;
}

.mail-wrap > i {
    color : var(--accent);
    width : 28px;
    height: 28px;
}

/* E-Mail link size has been balanced. */
.mail-btn {
    font-size      : clamp(1.1rem, 2.8vw, 1.8rem);
    color          : var(--text);
    font-weight    : 800;
    text-decoration: none;
    border-bottom  : 3px solid var(--accent);
    line-height    : 1.2;
    transition     : color var(--transition-base),
                     letter-spacing var(--transition-base);
}
.mail-btn:hover { color: var(--accent); letter-spacing: 1px; }


/* GLASSMORPHISM HELPER */
.glass {
    background              : var(--glass);
    backdrop-filter         : blur(12px);
    -webkit-backdrop-filter : blur(12px);
}


/* FOOTER */
.footer-wrap {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    border-top     : 1px solid var(--glass-border);
    padding        : 3rem 0 6rem;
    color          : var(--text-muted);
}

.hosting-credit { display: flex; align-items: center; gap: 0.5rem; }
.hosting-credit a {
    color           : var(--accent);
    font-weight     : 800;
    text-decoration : none;
    padding         : 4px 10px;
    background      : rgba(168, 85, 247, 0.1);
    border-radius   : 6px;
    transition      : background var(--transition-base);
}
.hosting-credit a:hover { background: rgba(168, 85, 247, 0.2); }


/* RESPONSIVE — TABLET  (≤ 992px) */
@media (max-width: 992px) {
    /* Hide desktop navigation, show hamburger icon. */
    .nav-links                  { display: none; }
    .lang-switch:not(.mobile-lang) { display: none; }
    .hamburger-btn              { display: flex; }
    .mobile-menu                { display: block; }

    h1 { font-size: 3.5rem; }
}


/* RESPONSIVE — MOBILE  (≤ 768px) */
@media (max-width: 768px) {
    .hero        { padding: 12rem 0 5rem; }
    .hero-btns   { flex-direction: column; align-items: center; }
    .btn         { width: 100%; text-align: center; }

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

    .philosophy-box,
    .contact-card { padding: 3.5rem 1.5rem; margin: 5rem 0; }

    .footer-wrap  { flex-direction: column; gap: 2rem; text-align: center; }
    .scroll-top-btn { bottom: 1.5rem; right: 1.5rem; }
    .mobile-nav-link { font-size: 1.8rem; }
}


/* RESPONSIVE — SMALL MOBILE  (≤ 400px) */
@media (max-width: 400px) {
    .nav-inner       { padding: 0 1rem; }
    .mobile-nav-link { font-size: 1.5rem; }
}


/* ACTIVE LANGUAGE BUTTON */
.lang-switch button.active-lang {
    background : var(--accent);
    color      : #fff;
}
