/* ==========================================================================
   512 CYBERX LIMITED - MODERN ENTERPRISE DESIGN SYSTEM (COOL THEME)
   ========================================================================== */

:root {
    /* --- Cool Color Palette --- */
    --bg-body: #F8FAFC;              /* Clean cool slate-50 */
    --bg-surface: #FFFFFF;           /* Crisp pure white */
    --bg-subtle: #F1F5F9;            /* Cool slate-100 */
    --bg-cool-accent: #E0F2FE;       /* Sky-100 */
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-card: rgba(255, 255, 255, 0.95);
    
    /* --- Deep Slate & Cool Typography --- */
    --text-primary: #0F172A;         /* Slate-900 */
    --text-secondary: #334155;       /* Slate-700 */
    --text-muted: #64748B;           /* Slate-500 */
    --text-light: #94A3B8;           /* Slate-400 */
    --text-white: #FFFFFF;
    
    /* --- Brand & Accent Colors (Cool Blues & CyberX Violet) --- */
    --primary-blue: #0284C7;         /* Sky-600 */
    --primary-blue-hover: #0369A1;   /* Sky-700 */
    --deep-blue: #1E3A8A;            /* Blue-900 */
    --tech-indigo: #4F46E5;          /* Indigo-600 */
    --brand-magenta: #C026D3;        /* Logo X Magenta */
    --brand-purple: #9333EA;         /* Purple-600 */
    --brand-cyan: #06B6D4;           /* Cyan-500 */
    --accent-emerald: #10B981;       /* Emerald-500 for status */
    --whatsapp-green: #25D366;
    
    /* --- Gradients --- */
    --gradient-brand: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #9333EA 100%);
    --gradient-brand-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.08) 50%, rgba(147, 51, 234, 0.08) 100%);
    --gradient-cool-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 249, 255, 0.88) 50%, rgba(245, 243, 255, 0.92) 100%);
    --gradient-dark-banner: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

    /* --- Borders & Outlines --- */
    --border-subtle: #E2E8F0;
    --border-cool: #CBD5E1;
    --border-accent: rgba(2, 132, 199, 0.35);
    
    /* --- Shadows --- */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 30px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(2, 132, 199, 0.22);
    --shadow-accent: 0 10px 25px -5px rgba(37, 99, 235, 0.3);

    /* --- Geometry --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & GLOBAL TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Section Dividers & Badges --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-cool-accent);
    color: var(--primary-blue);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.badge-pill .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
    animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 64px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.divider.center {
    margin: 0 auto 30px auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.2;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(37, 99, 235, 0.45);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Scrolled & Solid State: crisp cool frosted glass */
.navbar.scrolled,
.navbar.navbar-solid {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 98px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 76px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.35s ease;
}

/* In transparent navbar state over skyline picture: crisp brilliant white tech logo */
.navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(10, 20, 40, 0.6));
}

.navbar.navbar-solid .logo img,
.navbar.scrolled .logo img {
    filter: none;
}

.logo:hover img {
    transform: scale(1.03);
}

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

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Transparent State: Nav menus look pasted on hero picture with suitable high contrast colors */
.navbar:not(.scrolled) .nav-links a {
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(10, 25, 47, 0.7);
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: #38BDF8;
    text-shadow: 0 2px 10px rgba(56, 189, 248, 0.85);
}

.navbar:not(.scrolled) .nav-links a::after {
    background: #38BDF8;
}

.navbar:not(.scrolled) .btn-nav {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: none;
}

.navbar:not(.scrolled) .btn-nav:hover {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* Scrolled state */
.navbar.scrolled .nav-links a,
.navbar.navbar-solid .nav-links a {
    color: var(--text-secondary);
    text-shadow: none;
}

.navbar.scrolled .nav-links a:hover,
.navbar.navbar-solid .nav-links a:hover {
    color: var(--primary-blue);
}

.navbar.scrolled .nav-links a::after,
.navbar.navbar-solid .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.navbar.scrolled .nav-links a:hover::after,
.navbar.navbar-solid .nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 22px !important;
    background: var(--bg-surface);
    color: var(--primary-blue) !important;
    border: 1.5px solid var(--primary-blue);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--gradient-brand) !important;
    color: var(--text-white) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar.scrolled .mobile-toggle,
.navbar.navbar-solid .mobile-toggle {
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.mobile-toggle:hover {
    background: var(--bg-subtle);
}

.mobile-toggle svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   HERO SECTION (REALISTIC BACKGROUND + LUMINOUS SCRIM)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    max-height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 170px 0 110px 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Hong Kong skyline realistic deep cool overlay - clear skyline with suitable contrast */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(10, 25, 47, 0.48) 0%, 
        rgba(15, 28, 54, 0.25) 25%, 
        rgba(15, 28, 54, 0.32) 60%, 
        rgba(15, 28, 54, 0.48) 88%, 
        rgba(15, 28, 54, 0.60) 100%
    );
    z-index: 1;
}

/* Subtle decorative ambient cool accents */
.hero-glow-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0) 70%);
    filter: blur(60px);
    z-index: 2;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 5%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, rgba(147, 51, 234, 0) 70%);
    filter: blur(60px);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero .badge-pill {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #E0F2FE;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
}

.hero .badge-pill .pulse-dot {
    background: #00F0FF;
    box-shadow: 0 0 10px #00F0FF;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 20px rgba(10, 20, 40, 0.8);
}

.hero .gradient-text {
    color: #67E8F9;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #67E8F9;
    text-shadow: 0 2px 14px rgba(10, 20, 40, 0.95), 0 0 24px rgba(56, 189, 248, 0.6);
}

.hero p.hero-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #E0F2FE;
    max-width: 800px;
    margin: 0 auto 38px auto;
    font-weight: 450;
    text-shadow: 0 2px 8px rgba(10, 20, 40, 0.85);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
    color: #FFFFFF;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px -2px rgba(2, 132, 199, 0.6);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -2px rgba(2, 132, 199, 0.7);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(10, 20, 40, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary:hover {
    background: #FFFFFF;
    color: #0284C7;
    border-color: #FFFFFF;
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   STATS TICKER (STRADDLING HERO & ABOUT SECTIONS)
   ========================================================================== */
.stats-overlap-band {
    position: relative;
    z-index: 30;
    margin-top: -65px; /* Straddles half on hero picture and half in second about section */
    margin-bottom: 25px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-xl);
    padding: 30px 36px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-subtle);
    padding: 4px 12px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #0284C7;
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.86rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

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

.bg-subtle {
    background-color: var(--bg-body);
}

.bg-light-blue {
    background: linear-gradient(180deg, #F0F9FF 0%, #F8FAFC 100%);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-floating-card {
    position: absolute;
    bottom: -24px;
    right: -20px;
    background: var(--bg-glass-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 280px;
}

.about-floating-card .icon-bubble {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-features .check-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: var(--bg-cool-accent);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon-box {
    transform: scale(1.08) rotate(3deg);
    background: var(--gradient-brand);
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-bullets {
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    margin-bottom: 20px;
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.service-bullets li::before {
    content: '•';
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 4px 10px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PORTFOLIO (FEATURED PROJECTS)
   ========================================================================== */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

.project-image-container {
    position: relative;
    height: 230px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-subtle);
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-container img {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--primary-blue);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-xs);
    z-index: 2;
}

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.55;
}

.project-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-specs strong {
    color: var(--text-primary);
}

/* ==========================================================================
   TECH ARSENAL SECTION
   ========================================================================== */
.tech-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-cat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.tech-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.tech-cat-header .cat-icon {
    font-size: 1.5rem;
}

.tech-cat-header h3 {
    font-size: 1.15rem;
    margin: 0;
}

.tech-pill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-pill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.tech-pill-row span.meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   ENTERPRISE ASSURANCE / STATS SECTION
   ========================================================================== */
.enterprise-banner {
    background: var(--gradient-dark-banner);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.enterprise-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    color: var(--text-white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.banner-content p {
    color: #94A3B8;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.assurance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.assurance-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(8px);
}

.assurance-item h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assurance-item p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: flex-start;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: var(--shadow-sm);
}

.contact-info h2 {
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.contact-info p.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-cool-accent);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.contact-method-text p, .contact-method-text a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-method-text a:hover {
    color: var(--primary-blue);
}

/* Form Styles */
.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px 38px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    padding: 15px 28px;
    font-size: 1rem;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ==========================================================================
   BACK TO TOP BUTTON (ABOVE WHATSAPP)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 104px;
    right: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0F172A;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
    border-color: #38BDF8;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -2px rgba(2, 132, 199, 0.55);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (COOL & PROFESSIONAL)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    cursor: pointer;
    text-decoration: none;
}

.wa-text {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover .wa-text {
    opacity: 1;
    transform: translateX(0);
}

.wa-icon-wrapper {
    background: transparent !important;
    border: none !important;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 8px 18px rgba(37, 211, 102, 0.45));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.whatsapp-float:hover .wa-icon-wrapper {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 26px rgba(37, 211, 102, 0.7));
}

.wa-img-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 80px 0 40px 0;
    font-size: 0.95rem;
    border-top: 1px solid #1E293B;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 18px;
    max-width: 320px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.footer-logo-img {
    height: 62px;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-col ul a {
    color: #94A3B8;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
}

.footer-bottom a {
    color: #38BDF8;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) !important;
}

.fade-up {
    transform: translateY(35px);
}

.slide-left {
    transform: translateX(-40px);
}

.slide-right {
    transform: translateX(40px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 92px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a,
    .navbar:not(.scrolled) .nav-links a {
        color: var(--text-secondary);
        text-shadow: none;
    }

    .nav-links a:hover,
    .navbar:not(.scrolled) .nav-links a:hover {
        color: var(--primary-blue);
    }

    .navbar:not(.scrolled) .nav-links .btn-nav {
        background: var(--bg-surface) !important;
        color: var(--primary-blue) !important;
        border-color: var(--primary-blue) !important;
        text-shadow: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 150px 0 80px 0;
        min-height: auto;
        display: block;
    }

    .hero h1 {
        font-size: 2.6rem;
        margin-top: 10px;
    }

    .stats-overlap-band {
        margin-top: -55px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px 20px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-floating-card {
        right: 0;
        bottom: -16px;
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p.hero-lead {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary, 
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .stats-overlap-band {
        margin-top: -45px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 12px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .assurance-cards {
        grid-template-columns: 1fr;
    }

    .contact-card, .contact-form-card {
        padding: 28px 20px;
    }

    .whatsapp-float {
        bottom: 24px;
        right: 20px;
    }

    .back-to-top {
        bottom: 94px;
        right: 26px;
        width: 46px;
        height: 46px;
    }

    .wa-text {
        display: none;
    }
}