/* ====================================================
   Global Trade and Info Pvt. Ltd.
   Custom Styles - Professional, Modern, Clean
   ==================================================== */

:root {
    /* ---- Brand palette ----
       Tech blue (primary) + warm amber (accent), with a cyan
       "network" tone for variety. Two colors do the heavy
       lifting instead of the full rainbow of Bootstrap defaults,
       so icons/badges/buttons read as one coherent brand. */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #93b4fd;
    --accent: #f59e0b;
    --accent-dark: #c9790a;
    --accent-light: #fcd9a0;
    --teal: #0ea5e9;
    --ink: #0f172a;
    --muted: #64748b;
    --surface-light: #f7f9fc;

    --dark: #0a0e27;
    --darker: #05070f;
    --gradient-1: linear-gradient(135deg, #0a0e27 0%, #1a2456 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(15,23,42,0.08);
    --shadow-md: 0 8px 30px rgba(15,23,42,0.12);
    --shadow-lg: 0 20px 60px rgba(15,23,42,0.16);
    --shadow-warning: 0 8px 30px rgba(245, 158, 11, 0.35);

    /* ---- Bootstrap variable overrides ----
       Bootstrap's utility classes (text-primary, bg-warning-subtle,
       btn-primary, badges, etc.) read from these custom properties,
       so overriding them here re-themes every existing class in the
       markup without having to hunt down each usage individually. */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-primary-text-emphasis: #1e3a8a;
    --bs-primary-bg-subtle: #dce6ff;
    --bs-primary-border-subtle: #a9c2fb;

    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #7c4a03;
    --bs-warning-bg-subtle: #fdecd0;
    --bs-warning-border-subtle: #fbd292;

    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-success-text-emphasis: #05603f;
    --bs-success-bg-subtle: #d6f6ec;
    --bs-success-border-subtle: #a7ebd3;

    --bs-info: #0ea5e9;
    --bs-info-rgb: 14, 165, 233;
    --bs-info-text-emphasis: #075985;
    --bs-info-bg-subtle: #dcf1fd;
    --bs-info-border-subtle: #aee0fa;

    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-danger-text-emphasis: #7f1d1d;
    --bs-danger-bg-subtle: #fde3e3;
    --bs-danger-border-subtle: #fac5c5;

    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-secondary-bg-subtle: #eef1f5;
    --bs-secondary-border-subtle: #d7dde5;

    --bs-dark: #0a0e27;
    --bs-dark-rgb: 10, 14, 39;
    --bs-light: #f7f9fc;
    --bs-light-rgb: 247, 249, 252;

    --bs-body-color: #334155;
    --bs-body-color-rgb: 51, 65, 85;
    --bs-secondary-color: #64748b;
    --bs-heading-color: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    color: var(--bs-body-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
}

/* Buttons: explicit brand states so hover/focus stay true to the
   palette above (CDN Bootstrap's own hover shades are pre-baked
   from ITS default amber/blue, not ours). */
.btn {
    transition: var(--transition);
}

.btn-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #201400;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #201400 !important;
    box-shadow: var(--shadow-warning);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.95);
    color: var(--ink);
}

/* ===== UTILITIES ===== */
.z-index-2 { z-index: 2; }

.section-padding {
    padding: 100px 0;
}

/* ===== DIVIDER ===== */
.divider-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
}

.divider-line {
    display: block;
    width: 60px;
    height: 2px;
    background: #dee2e6;
    border-radius: 2px;
}

.divider-icon {
    color: var(--accent);
    font-size: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 15px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
    padding: 10px 0;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    height: 90px;
    width: auto;
    transition: var(--transition);
}

/* Logo swap on scroll - light logo for transparent nav, dark logo for scrolled */
.navbar .logo-dark { display: none; }

.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark { display: inline-block; }

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

/* Optical/fiber-network background image - the visual anchor of the hero */
.hero-bg-image {
    position: absolute;
    top: -6%;
    left: -6%;
    width: 112%;
    height: 112%;
    background-image: url("../images/hero-bg.svg");
    background-size: cover;
    background-position: center;
    animation: heroDrift 40s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroDrift {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

/* Dark scrim over the image so hero text stays readable */
.hero-scrim {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(6,9,21,0.88) 0%, rgba(10,14,39,0.72) 45%, rgba(6,9,21,0.9) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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");
    opacity: 0.4;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    transition: var(--transition);
}

.scroll-indicator a:hover { color: var(--accent); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-image { animation: none; }
}

/* ===== ABOUT SECTION ===== */
.icon-box-sm {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-sm i { font-size: 1.2rem; }

.stat-number {
    font-size: 1.8rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== SERVICES ===== */
.service-card {
    border-radius: 16px !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.08);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(245, 158, 11, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.service-card .card-body {
    padding: 2rem 1.5rem !important;
}

/* ===== APPROACH ===== */
.approach-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(245,158,11,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(37,99,235,0.1) 0%, transparent 50%);
}

.approach-step {
    padding: 30px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    position: relative;
}

.approach-step:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(245,158,11,0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(245,158,11,0.15);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-icon i {
    color: var(--accent);
}

/* ===== CONTACT ===== */
.contact-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon-box i {
    font-size: 1.2rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.form-floating > label {
    padding-left: 16px;
    padding-top: 14px;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.85;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    padding-top: 6px;
}

/* ===== SOCIAL LINKS ===== */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    .hero-section .d-flex {
        justify-content: center;
    }
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 2rem;
    }
    .about-stats {
        justify-content: center;
    }
    .navbar .navbar-brand {
        font-size: 1.3rem;
    }
    .contact-info, .contact-form-wrapper {
        padding: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 90vh;
    }
    .btn-lg {
        font-size: 0.9rem;
        padding: 10px 20px !important;
    }
}

/* ===== LOADING ANIMATION ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
