/* ============================================
   SKD INTERNATIONAL LTD - Corporate Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0f2b46;
    --primary-light: #1a3d5c;
    --secondary: #2563eb;
    --secondary-light: #3b82f6;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px 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);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary);
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-left span,
.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar i {
    color: var(--secondary-light);
    font-size: 0.75rem;
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary);
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--secondary);
    font-weight: 600;
}

.btn-nav {
    background: var(--secondary) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    margin-left: 8px;
}

.btn-nav:hover {
    background: var(--secondary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e4976 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    font-size: 0.7rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.hero-card-title {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-card-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-stat {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ---------- Section Styles ---------- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-label i {
    font-size: 0.7rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.section-dark .section-header p {
    color: var(--gray-400);
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: rgba(37,99,235,0.1);
    color: var(--secondary);
}

.feature-icon.green {
    background: rgba(16,185,129,0.1);
    color: var(--accent);
}

.feature-icon.purple {
    background: rgba(139,92,246,0.1);
    color: #8b5cf6;
}

.feature-icon.orange {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.feature-icon.cyan {
    background: rgba(6,182,212,0.1);
    color: var(--info);
}

.feature-icon.red {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---------- About Preview ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    color: var(--white);
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-image-main i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-image-main h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-image-main p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-float-icon {
    width: 48px;
    height: 48px;
    background: rgba(16,185,129,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.about-float-text h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.about-float-text p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-list {
    margin-bottom: 32px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.about-list li i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 0.85rem;
}

/* ---------- Services Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    gap: 10px;
}

/* ---------- API Preview Section ---------- */
.api-preview {
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.api-preview-header {
    background: var(--dark);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.api-dot.red { background: #ef4444; }
.api-dot.yellow { background: #f59e0b; }
.api-dot.green { background: #10b981; }

.api-preview-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.8;
    overflow-x: auto;
}

.api-preview-body .comment { color: var(--gray-600); }
.api-preview-body .keyword { color: #c084fc; }
.api-preview-body .string { color: #34d399; }
.api-preview-body .number { color: #fbbf24; }
.api-preview-body .key { color: #60a5fa; }

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), #1d4ed8);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Trusted / Partners ---------- */
.partners-section {
    padding: 60px 0;
    background: var(--gray-100);
    text-align: center;
}

.partners-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.partner-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-700);
    letter-spacing: 2px;
}

/* ---------- Page Hero / Breadcrumb ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    position: relative;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--gray-600);
}

.breadcrumb .current {
    color: var(--accent);
}

/* ---------- About Page ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gray-300);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    top: 8px;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---------- API Documentation Page ---------- */
.api-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.api-nav {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.api-nav h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.api-nav ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    margin-bottom: 2px;
}

.api-nav ul li a:hover,
.api-nav ul li a.active {
    background: var(--gray-100);
    color: var(--secondary);
}

.api-main { }

.api-section {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.api-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.api-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: 24px;
}

.api-section p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.api-endpoint {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.api-method.get { background: rgba(16,185,129,0.15); color: var(--accent); }
.api-method.post { background: rgba(37,99,235,0.15); color: var(--secondary); }

.code-block {
    background: var(--gray-900);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.8;
    white-space: pre;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.param-table th {
    background: var(--gray-100);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-300);
}

.param-table td {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.param-table td code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--danger);
}

.badge-required {
    font-size: 0.7rem;
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.badge-optional {
    font-size: 0.7rem;
    background: rgba(148,163,184,0.2);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-form-wrap > p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Legal Pages ---------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 60px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 12px;
}

.legal-content p {
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul, .legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    list-style: disc;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content .last-updated {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 30px;
}

/* ---------- Alert Messages ---------- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--accent-dark);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    padding: 80px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px !important;
}

.footer-contact i {
    color: var(--secondary-light);
    margin-top: 3px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-contact span {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer .logo {
    margin-bottom: 16px;
}

.footer .logo-name {
    color: var(--white);
}

.footer .logo-sub {
    color: var(--gray-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.4rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .api-grid { grid-template-columns: 1fr; }
    .api-sidebar { position: static; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .nav-toggle { display: flex; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-link { padding: 12px 16px; width: 100%; }
    
    .btn-nav { margin-left: 0 !important; text-align: center; }
    
    .hero { padding: 60px 0; min-height: auto; }
    
    .hero-content { 
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center;
    }
    
    .hero h1 { font-size: 2rem; }
    
    .hero p { margin: 0 auto 30px; }
    
    .hero-buttons { justify-content: center; }
    
    .hero-visual { order: -1; }
    
    .hero-card { max-width: 100%; }
    
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .legal-content { padding: 30px 20px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .timeline::before { left: 16px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-dot {
        left: 16px;
    }
    
    .about-float-card {
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
    .partners-grid { gap: 30px; }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-700);
}
