/*
==========================================================================
JALABYTE ISP - MODERN DESIGN SYSTEM
Professional CSS Framework - Inspired by Modern ISP Websites
==========================================================================
*/

/* ==========================================================================
   CSS RESET & BASE STYLES
========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-background);
    overflow-x: hidden;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================================================
   DESIGN TOKENS & CUSTOM PROPERTIES
========================================================================== */

:root {
    /* Brand Colors - Jalabyte ISP Palette */
    --color-primary: #500aba;
    --color-primary-dark: #3d0891;
    --color-primary-light: #6b1ed4;
    --color-secondary: #5f17cc;
    --color-accent: #ff8800;
    --color-accent-light: #ffa233;
    --color-accent-dark: #e6750a;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Background Colors */
    --color-background: #ffffff;
    --color-background-secondary: #f9fafb;
    --color-background-tertiary: #f3f4f6;
    --color-background-dark: var(--color-gray-900);

    /* Text Colors */
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-600);
    --color-text-muted: var(--color-gray-500);
    --color-text-inverse: var(--color-white);

    /* Border Colors */
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-100);
    --color-border-dark: var(--color-gray-300);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm:
        0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 25px -5px rgba(80, 10, 186, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-secondary) 100%
    );
    --gradient-accent: linear-gradient(
        135deg,
        var(--color-accent) 0%,
        var(--color-accent-dark) 100%
    );
    --gradient-hero: linear-gradient(
        135deg,
        rgba(80, 10, 186, 0.05) 0%,
        rgba(255, 136, 0, 0.05) 100%
    );
    --gradient-glass: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );

    /* Spacing Scale */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 0.75rem; /* 12px */
    --space-lg: 1rem; /* 16px */
    --space-xl: 1.25rem; /* 20px */
    --space-2xl: 1.5rem; /* 24px */
    --space-3xl: 2rem; /* 32px */
    --space-4xl: 2.5rem; /* 40px */
    --space-5xl: 3rem; /* 48px */
    --space-6xl: 4rem; /* 64px */
    --space-7xl: 5rem; /* 80px */
    --space-8xl: 6rem; /* 96px */

    /* Typography Scale */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem; /* 36px */
    --text-5xl: 3rem; /* 48px */
    --text-6xl: 3.75rem; /* 60px */
    --text-7xl: 4.5rem; /* 72px */

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;

    /* Breakpoints */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-2xl: 1536px;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM
========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-none);
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--weight-bold);
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h4 {
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
}

h5 {
    font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
}

h6 {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.text-large {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.text-small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.text-xs {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

/* ==========================================================================
   LAYOUT COMPONENTS
========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-8xl) 0;
}

.section-sm {
    padding: var(--space-6xl) 0;
}

.section-lg {
    padding: var(--space-8xl) 0 10rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6xl);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   MODERN NAVIGATION
========================================================================== */

.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition:
        transform 0.3s ease,
        var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-2xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(80, 10, 186, 0.05);
}

.nav-link.active {
    color: var(--color-white);
    background: var(--gradient-primary);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(80,10,186,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2xl);
}

.hero-content p {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4xl);
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-2xl));
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -1s;
}

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

/* ==========================================================================
   MODERN BUTTONS
========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-colored);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: var(--space-lg) var(--space-4xl);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-sm);
}

/* ==========================================================================
   FEATURE SECTIONS
========================================================================== */

.features {
    background: var(--color-background-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6xl);
    margin-top: var(--space-6xl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--space-5xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-2xl);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2xl);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   PRICING CARDS
========================================================================== */

.pricing {
    background: var(--color-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5xl);
    margin-top: var(--space-6xl);
}

.pricing-card {
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-3xl);
    padding: var(--space-5xl);
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-colored);
}

.pricing-card.featured::before {
    content: "POPULER";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

.pricing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(80, 10, 186, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-2xl);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2xl);
}

.pricing-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

.pricing-price {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.pricing-period {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4xl);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-4xl);
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    text-align: left;
    line-height: var(--leading-relaxed);
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   COVERAGE MAP SECTION
========================================================================== */

.coverage {
    background: var(--color-background-secondary);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8xl);
    align-items: center;
}

.coverage-text h2 {
    margin-bottom: var(--space-2xl);
}

.coverage-text p {
    margin-bottom: var(--space-4xl);
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-primary);
    display: block;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.coverage-map {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
}

/* ==========================================================================
   MODERN FOOTER
========================================================================== */

.footer {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-8xl) 0 var(--space-4xl);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-6xl);
}

/* Responsive footer columns */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5xl);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-4xl);
    }
}

.footer-section h3 {
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2xl);
}

.footer-section p,
.footer-section li {
    color: var(--color-gray-300);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--color-gray-300);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(80, 10, 186, 0.2);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
}

.social-links {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    padding-top: var(--space-4xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray-400);
}

/* ==========================================================================
   ANIMATIONS & INTERACTIONS
========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade;
