/**
 * Sumuda Technology - Enterprise Global stylesheet (2026 Premium Standard)
 * Designed with a high-end Swiss-Tech visual system, fluid scales, and micro-interactions.
 * Integrates typography, responsive layouts, and strict color values.
 */

:root {
    /* Color Palette */
    --primary: #168587;          /* Deep Tech Teal */
    --primary-dark: #0f5d5e;
    --primary-light: #d0efef;
    --accent: #F2791A;           /* Vibrant Action Orange */
    --accent-dark: #cc5f0d;
    --accent-light: #fef0e6;
    --text-dark: #112122;        /* Elegant Dark Slate */
    --text-muted: #5a6e6f;       /* Muted Tech Slate */
    --text-light: #7b8f90;
    --bg-light: #f4f7f7;         /* Soft Cool Backing */
    --bg-white: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --bg-dark-accent: #0b1516;   /* Rich Footer Dark Backing */
    --border-color: rgba(22, 133, 135, 0.12);
    --border-color-hover: rgba(22, 133, 135, 0.3);
    --sumuda-gradient: linear-gradient(135deg, #168587 0%, #F2791A 100%);

    /* Typography Scale */
    --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Animation & Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 12px rgba(22, 133, 135, 0.04);
    --shadow-md: 0 8px 24px rgba(22, 133, 135, 0.06);
    --shadow-lg: 0 12px 40px rgba(22, 133, 135, 0.08);
}

/* Dark Mode Variables */
html[data-theme="dark"], body[data-theme="dark"] {
    --text-dark: #f0f4f4;
    --text-muted: #a0b2b2;
    --bg-light: #0D1414;
    --bg-white: #141c1c;
    --header-bg: rgba(20, 28, 28, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(22, 133, 135, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --bg-dark-accent: #050808;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Typography Scale classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
p { font-size: 1rem; color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); font-size: 0.85rem; }

/* Global Layout Containers */
.page-wrapper-outer {
    width: 100%;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.container-center {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation: Top Bar Strip */
.top-bar-strip {
    background-color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-left a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a:hover {
    color: var(--accent);
}

.top-bar-left .divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Multilingual Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    transition: var(--transition-fast);
    padding: 2px 8px;
    border-radius: 20px;
}

.lang-switcher a:hover,
.lang-switcher a.active-lang {
    color: var(--text-dark);
    background-color: var(--accent);
}

.lang-switcher .divider-mini {
    color: rgba(255, 255, 255, 0.2);
}

/* Theme Toggle Switch */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-dark);
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Main Navigation Navbar */
.main-navbar-header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    border-image: var(--sumuda-gradient) 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo */
.brand-logo-link {
    text-decoration: none;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.brand-logo-text span {
    color: var(--accent);
}

/* Desktop Navigation Link Items */
.desktop-navigation-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link-item:hover {
    color: var(--primary);
}

/* Premium Navigation Active Bar Indicator */
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.nav-link-item:hover::after,
.nav-link-item.active-nav-link::after {
    width: 100%;
}

.nav-link-item.active-nav-link {
    color: var(--primary);
}

/* Buttons and Action Elements */
.btn-cta-orange {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-white);
    background-color: var(--accent);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(242, 121, 26, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta-orange:hover {
    background: var(--sumuda-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 121, 26, 0.35);
    color: #ffffff;
}

.btn-cta-orange:active {
    transform: translateY(0);
}

.btn-secondary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    background-color: var(--primary-light);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Mobile Drawer Menu Layer */
.mobile-drawer-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-white);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary);
}

.mobile-drawer-menu.active-drawer {
    height: calc(100vh - 75px);
    padding: 30px 24px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-nav-link.active-nav-link {
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.lang-switcher-drawer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher-drawer a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switcher-drawer a.active-lang {
    color: var(--primary);
}

/* Enterprise Cards & Grids Design Pattern */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.premium-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    padding: 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Using border-image for gradients removes border-radius, so we use pseudo-element or background-clip */
.premium-card {
    background-clip: padding-box;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sumuda-gradient);
    opacity: 1; /* Always show 3px top border as requested */
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(22, 133, 135, 0.08);
    border-color: var(--border-color-hover);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.premium-card:hover .premium-card-icon {
    color: var(--accent);
    transform: scale(1.1);
}

/* CSS Utilities and Miscellaneous helpers */
.text-gradient {
    background: var(--sumuda-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-orange { color: var(--accent); }
.bg-teal-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.bg-orange-gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }

/* High-End Enterprise Corporate Footer */
.enterprise-footer {
    background-color: var(--bg-dark-accent);
    color: #dfdfdf;
    padding: 80px 0 0 0;
    position: relative;
    border-top: 4px solid var(--primary);
    overflow: hidden;
    font-family: var(--font-body);
}

/* Tech Visual Grid Layer inside the Footer */
.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(22, 133, 135, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(22, 133, 135, 0.05) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.footer-inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 2fr;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.footer-branding-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 320px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-social-links a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-column-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Bottom Bar Copyright Area */
.footer-bottom-bar {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.bullet-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Responsive Adaptive CSS media queries */
@media (max-width: 1024px) {
    .footer-inner-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .desktop-navigation-menu,
    .header-action-button-container {
        display: none;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .footer-inner-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
