/* ============================================
   KALPTARU ROADLINES - PREMIUM DESIGN SYSTEM
   ============================================ */

/* --- MODERN COLOR SYSTEM --- */
:root {
    /* Primary Brand Colors */
    --primary-blue: #0A2540;
    --primary-blue-light: #1a3a5f;
    --primary-blue-dark: #051424;

    /* Accent Colors with Gradients */
    --accent-orange: #FF5722;
    --accent-orange-light: #FF7043;
    --accent-orange-dark: #E64A19;

    /* Modern Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF5722 100%);
    --gradient-blue: linear-gradient(135deg, #1a3a5f 0%, #0A2540 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(26, 58, 95, 0.85) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6c757d;
    --border-color: #dee2e6;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Shadows - Layered for depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 87, 34, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
}

/* --- PREMIUM TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

ul {
    list-style: none;
}

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

/* --- UTILITY CLASSES --- */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-gradient {
    background: var(--gradient-primary);
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- PREMIUM BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange-light) 0%, var(--accent-orange-dark) 100%);
    z-index: -1;
    transition: transform var(--transition-base);
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* --- HEADER & NAVIGATION --- */
.top-bar {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-info i {
    color: var(--accent-orange);
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: height var(--transition-base);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

/* --- PAGE HEADERS --- */
.page-header {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(26, 58, 95, 0.9) 100%),
        url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: clamp(6rem, 12vw, 10rem) 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 87, 34, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    color: var(--white);
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* --- SECTION TITLES --- */
.section-title {
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: var(--space-md) auto 0;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, #051424 0%, #0A2540 100%);
    color: #ffffff;
    padding: var(--space-3xl) 0 var(--space-md);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col p {
    color: #e2e8f0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #e2e8f0;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: var(--space-md) 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: var(--space-sm);
        gap: 16px;
    }

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

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-info span {
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .section-padding {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
}