/* 
 * Connect Information Technology - Modern Design System 2025
 * Core Stylesheet (Complete & Updated)
 */

/* =========================================
   1.CSS VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette */
    --primary-blue:#0A2342;
    /* Navy */
    --primary-dark:#051224;
    --secondary-green:#FF6600;
    /* Orange for consistency */
    --accent-orange: #FF6600;
    --neutral-dark:#1a1a1a;
    --neutral-gray:#333333;
    --text-body:#666666;
    --text-light:#999999;
    --bg-light:#F5F7FA;
    --bg-white:#FFFFFF;
    /* Flat Theme - No Gradients */
    --bg-gradient:#0A2342;
    /* Solid Navy */

    /* Functional Colors */
    --error: #DD3333;
    --success:#00AA44;
    --warning:#FFCC00;

    /* Typography */
    --font-heading:'Poppins', sans-serif;
    --font-body:'Inter', sans-serif;
    --font-mono:'Courier Prime', monospace;

    /* Spacing System (8px grid) */
    --space-xs:4px;
    --space-sm:8px;
    --space-md:16px;
    --space-lg:24px;
    --space-xl:32px;
    --space-2xl:60px;
    --space-3xl:80px;

    /* Shadows & Elevation */
    --shadow-sm:0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg:0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover:0 12px 48px rgba(0, 0, 0, 0.20);
    --shadow-xl:0 20px 60px rgba(0, 0, 0, 0.20);

    /* Border Radius */
    --radius-sm:6px;
    --radius-md:12px;
    --radius-lg:16px;
    --radius-xl:20px;
    --radius-full:9999px;

    /* Transitions */
    --transition-fast:150ms ease;
    --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-width:1200px;
    --header-height:80px;
}

/* =========================================
   2.RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html {
    scroll-behavior:smooth;
    font-size:16px;
    -webkit-text-size-adjust: 100%;
}

/* Make the page a vertical flex container so footer can stick to bottom */
html,
body {
    height:100%;
}

body {
    display:flex;
    flex-direction:column;
    min-height:100vh;
    padding-top:var(--header-height);
    font-family:var(--font-body);
    color:var(--text-body);
    background-color:var(--bg-white);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:var(--font-heading);
    color:var(--neutral-dark);
    font-weight:700;
    line-height:1.2;
    margin-bottom:var(--space-lg);
}

h1 {
    font-size:3.5rem;
    letter-spacing:-0.01em;
}

h2 {
    font-size:2.5rem;
}

h3 {
    font-size:1.75rem;
}

h4 {
    font-size:1.5rem;
}

p {
    margin-bottom:var(--space-md);
}

a {
    text-decoration:none;
    color:inherit;
    transition:var(--transition-normal);
}

ul {
    list-style:none;
}

img {
    max-width:100%;
    height:auto;
    display:block;
}

/* =========================================
   3.NAVBAR - Fixed header with proper spacing
   ========================================= */

.navbar {
    height:var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter:blur(6px);
    position:fixed;
    top:0;
    left:0;
    right: 0;
    z-index:1200;
    border-bottom:1px solid rgba(0, 0, 0, 0.05);
    transition:var(--transition-normal);
    display:flex;
    align-items:center;
}

.navbar .container {
    width:100%;
    max-width: var(--container-width);
    height:100%;
    display:flex;
    justify-content:space-between;
    align-items: center;
    padding:0 var(--space-lg);
    margin:0 auto;
}

.navbar.scrolled {
    box-shadow:var(--shadow-sm);
}

/* Logo */
.logo {
    display:flex;
    align-items:center;
    gap:var(--space-sm);
    flex-shrink:0;
    /* prevent logo from shrinking */
}

.logo-img {
    height:40px;
    display:block;
    mix-blend-mode:multiply;
}

.logo-img-small {
    height:32px;
}

.brand-title {
    font-family:var(--font-heading);
    font-weight:700;
    font-size:1.5rem;
    color:var(--primary-blue);
}

/* Navigation menu (desktop visible, mobile hidden) */
.nav-menu {
    display:flex;
    align-items:center;
    gap:20px;
    flex: 1;
    margin-left:40px;
}

.nav-link {
    font-weight:500;
    color:var(--neutral-dark);
    position:relative;
    padding:8px 10px;
    white-space:nowrap;
}

.nav-link::after {
    content:'';
    position:absolute;
    bottom:-6px;
    left:0;
    width:0;
    height:2px;
    background-color:var(--primary-blue);
    transition:var(--transition-normal);
}

.nav-link:hover {
    color:var(--primary-blue);
}

.nav-link:hover::after {
    width:100%;
}

/* Dropdown menu */
.nav-dropdown {
    position:relative;
}

.dropdown-menu {
    display:none;
    position: absolute;
    top:100%;
    left:0;
    background:white;
    min-width:220px;
    border-radius:12px;
    box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);
    z-index:1300;
    margin-top:8px;
    padding:8px 0;
}

.nav-dropdown:hover .dropdown-menu {
    display:block;
}

.dropdown-item {
    display:block;
    padding:10px 16px;
    color:#444;
    font-size:0.95rem;
    transition:var(--transition-fast);
}

.dropdown-item:hover {
    background-color:rgba(0, 0, 0, 0.04);
    color:var(--primary-blue);
}

/* Hamburger button (mobile only) */
.hamburger {
    display:none;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
    margin-left:auto;
    flex-shrink:0;
}

.hamburger i {
    font-size:1.5rem;
    color:var(--neutral-dark);
}

.hamburger:focus {
    outline:2px solid var(--primary-blue);
    outline-offset:2px;
}

/* =========================================
   4. HERO (Visual-first, mobile-friendly)
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom:   40px;
    background: linear-gradient(180deg, rgba(10,35,66,0.95) 0%, rgba(10,35,66,0.9) 100%);
    color: white;
    position: relative;
    overflow: visible;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: 0;
    /* Remove negative margin */
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
}

/* Visual card that holds the image */
.hero-visual-card {
    background:rgba(255,255,255,0.04);
    border-radius:12px;
    padding:6px;
    display:block;
    box-shadow:0 20px 50px rgba(0,0,0,0.25);
    overflow:hidden;
}

/* Image inside hero visual */
.hero-image {
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
    border-radius:8px;
    max-height: 420px;
}

/* Content side */
.hero-content {
    padding:8px 4px;
}

.hero-pill {
    display:inline-block;
    background:rgba(255, 255, 255, 0.08);
    padding:6px 14px;
    border-radius: 9999px;
    font-size:0.85rem;
    margin-bottom:14px;
    border:1px solid rgba(255,255,255,0.06);
}

/* Title adjustments */
.hero-title {
    font-size:2.25rem;
    margin-bottom:18px;
    line-height:1.05;
    color:var(--bg-white);
}

.hero-accent {
    color:var(--accent-orange);
    font-weight:700;
}

.hero-highlight {
    color:var(--bg-white);
    font-weight:800;
}

/* Hero lead paragraph */
.hero-lead {
    font-size:1.05rem;
    margin-bottom: 20px;
    max-width:640px;
    opacity:0.95;
    line-height:1.6;
}

/* CTA group */
.hero-cta {
    display: flex;
    gap:var(--space-md);
    flex-wrap:wrap;
}

.hero-cta .btn-cta {
    min-width:180px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* Button variants */
.btn-ghost-white {
    background:var(--bg-white);
    color:var(--primary-blue);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:none;
    padding:12px 20px;
}

.btn-ghost-white:hover {
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
}

.btn-outline-white {
    background:transparent;
    color:rgba(255,255,255,0.95);
    border:1px solid rgba(255,255,255,0.14);
    padding:12px 20px;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color:rgba(255,255,255,0.5);
    color:white;
    transform:translateY(-2px);
}

/* =========================================
   5.UTILITY CLASSES
   ========================================= */
.container {
    width:100%;
    max-width:var(--container-width);
    margin:0 auto;
    padding:45px var(--space-lg);
}

/* Utility Classes */
.mb-xs { margin-bottom:var(--space-xs) !important; }
.mb-sm { margin-bottom:var(--space-sm) !important; }
.mb-md { margin-bottom:var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom:var(--space-xl) !important; }
.mb-3xl { margin-bottom:var(--space-3xl) !important; }

.text-success { color:var(--secondary-green); }
.text-warning { color:var(--warning); }
.text-primary { color:var(--primary-blue); }
.text-white { color:var(--bg-white); }
.text-light { color:var(--text-light); }
.text-center { text-align:center; }
.text-small { font-size:0.9rem; }

.font-semibold { font-weight:600; }
.mr-sm { margin-right:var(--space-sm); }

.transition-transform { transition:transform 0.3s ease; }
.rounded-md { border-radius:var(--radius-md); }

.bg-light { background-color:var(--bg-light); }
.bg-dark { background-color:var(--neutral-dark); color:var(--bg-white); }
.bg-primary { background-color:var(--primary-blue); color:var(--bg-white); }

.flex { display:flex; }
.flex-column { flex-direction:column; }
.items-center { align-items:center; }
.justify-center { justify-content:center; }
.justify-between { justify-content:space-between; }

.gap-md { gap:var(--space-md); }
.gap-lg { gap:var(--space-lg); }
.gap-xl { gap:var(--space-xl); }
.gap-2xl { gap:var(--space-2xl); }
.gap-3xl { gap:var(--space-3xl); }

.grid { display:grid; }
.grid-2 { grid-template-columns:repeat(2, 1fr); }
.grid-3 { grid-template-columns:repeat(3, 1fr); }
.grid-4 { grid-template-columns:repeat(4, 1fr); }

.section { padding:var(--space-3xl) 0; }

.max-width-900 { max-width:900px; margin-left:auto; margin-right: auto; }
.max-width-1200 { max-width:1200px; margin-left: auto; margin-right:auto; }

.mobile-hide { display:none ! important; }
.mobile-show { display:block !important; }

/* The element that contains page content should expand to push footer down */
.site-content { flex: 1 0 auto; }

/* Ensure footer never collapses and sticks after content */
.footer { flex-shrink:0; }
/* =========================================
   6. PAGE HERO (Fixed)
   ========================================= */
.page-hero,
.page-hero-lg {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom:  50px;
    background:  var(--neutral-dark);
    color: white;
    margin-top: 0;
    /* Remove negative margin - it breaks layout */
}

.page-hero h1,
.page-hero-lg h1 {
    color: var(--accent-orange) !important;
}

.page-hero h2,
.page-hero h3,
.page-hero p,
.page-hero-lg h2,
.page-hero-lg h3,
.page-hero-lg p {
    color: white !important;
}

.page-hero-lg {
    padding-bottom: 30px;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius:  50%;
    background: #ddd;
    margin: 0 auto 20px;
}

/* =========================================
   7.COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 28px;
    border-radius:var(--radius-full);
    font-weight:600;
    font-family:var(--font-body);
    font-size:1rem;
    cursor:pointer;
    transition:var(--transition-normal);
    border:2px solid transparent;
    touch-action:manipulation;
}

.btn-primary {
    background-color:var(--primary-blue);
    color:var(--bg-white);
    box-shadow:var(--shadow-md);
}

.btn-primary:hover {
    background-color:var(--primary-dark);
    transform:translateY(-2px);
    box-shadow:var(--shadow-lg);
}

.btn-outline {
    background-color:transparent;
    border-color:var(--primary-blue);
    color:var(--primary-blue);
}

.btn-outline:hover {
    background-color:var(--primary-blue);
    color:var(--bg-white);
    transform:translateY(-2px);
}

.btn-lg {
    padding:16px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding:8px 16px;
    font-size:0.875rem;
}

.btn-ghost {
    background:transparent;
    color:var(--text-body);
    border-color:transparent;
    box-shadow:none;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color:var(--primary-blue);
    transform:translateY(-1px);
}

/* Cards */
.card {
    background:var(--bg-white);
    border-radius:var(--radius-md);
    padding:var(--space-xl);
    box-shadow:var(--shadow-sm);
    transition:var(--transition-normal);
    border:1px solid rgba(0, 0, 0, 0.05);
    position:relative;
    overflow:hidden;
}

.card:hover {
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-top: 4px solid var(--primary-blue);
}

.card-icon {
    font-size:2.5rem;
    color:var(--primary-blue);
    margin-bottom:var(--space-lg);
}

.card-media {
    padding:0;
    overflow:hidden;
}

.card-media .card-content {
    padding:var(--space-xl);
}

.card-media:hover {
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-top:none;
}

/* Form Styles */
.form-input {
    width:100%;
    padding:12px 16px;
    border:1px solid #E5E7EB;
    border-radius:var(--radius-sm);
    font-family:var(--font-body);
    transition:var(--transition-fast);
    font-size:16px;
}

.form-input:focus {
    outline: none;
    border-color:var(--primary-blue);
    box-shadow:0 0 0 3px rgba(10, 35, 66, 0.1);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-size:16px;
    padding:12px;
}

/* =========================================
   8.FOOTER
   ========================================= */
.footer {
    background-color:var(--neutral-dark);
    color:var(--text-light);
    padding:var(--space-xl) 0 var(--space-lg);
}

.footer h4 {
    color:var(--bg-white);
    margin-bottom:var(--space-lg);
}

.footer-link {
    display:block;
    margin-bottom:var(--space-sm);
    color:var(--text-light);
    transition:var(--transition-normal);
}

.footer-link:hover {
    color:var(--primary-blue);
    transform:translateX(4px);
}

.footer-text-small {
    font-size:0.9rem;
    margin-bottom:var(--space-lg);
}

.footer-bottom {
    border-top:1px solid rgba(255, 255, 255, 0.1);
    padding-top:var(--space-lg);
    text-align:center;
}

.footer-col {
    display:flex;
    flex-direction:column;
}

/* =========================================
   9.PARTNER CARDS
   ========================================= */
.partner-card {
    width:220px;
    height:140px;
    padding:var(--space-md);
    background-color:var(--bg-white);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
    border:1px solid rgba(0, 0, 0, 0.05);
    transition:var(--transition-normal);
    display:flex;
    justify-content:center;
    align-items:center;
}

.partner-card:hover {
    transform:translateY(-5px);
    box-shadow:var(--shadow-md);
}

.partner-card img {
    max-height:90px;
    max-width:100%;
    object-fit:contain;
}

/* =========================================
   10.HERO IMAGE - Responsive sizing
   ========================================= */
.hero-image {
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
    border-radius:12px;
    max-height:420px;
}

@media (max-width:768px) {
    .hero-image {
        max-height: 240px;
        margin-top:8px;
    }
}

@media (max-width:480px) {
    .hero-image {
        max-height: 200px;
        margin-top: 6px;
    }
}

@media (max-width:360px) {
    .hero-image {
        max-height: 160px;
        margin-top: 4px;
    }
}