/* ============================================================
   Nexylum Global Technologies - Shared Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Variables
   ---------------------------------------------------------- */
:root {
    --primary-purple: #0077b6;
    --primary-dark: #1a1f2e;
    --accent-coral: #E04741;
    --text-dark: #424242;
    --text-gray: #6b7280;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-light: #EAEAEA;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);

    /* Editorial type system */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --font-ui: 'Outfit', sans-serif;

    /* Brand palette */
    --ink: #0a0e1a;
    --ink-soft: #131a2c;
    --paper-white: #f8f5ef;
    --brand: #0077b6;
    --brand-bright: #38bdf8;
    --accent: #E04741;
    --hairline: rgba(255,255,255,0.12);
    --muted-white: rgba(248,245,239,0.7);
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 3px;
}

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

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   4. Navbar
   ---------------------------------------------------------- */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

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

.logo-img {
    height: 70px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

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

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255,255,255,0.8);
}

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

.nav-cta {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff !important;
    background: #E04741;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #c73a35;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 71, 65, 0.3);
}

/* Scrolled navbar state — dark glass so the white-NEX logo stays legible */
.navbar.scrolled {
    position: fixed;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.92);
}

.navbar.scrolled .nav-links a::after {
    background: var(--brand-bright);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--brand-bright);
}

.navbar.scrolled .nav-cta {
    color: var(--text-white) !important;
    background: var(--accent-coral);
}

.navbar.scrolled .nav-cta:hover {
    background: #c93b35;
    box-shadow: 0 6px 18px rgba(224, 71, 65, 0.35);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text-white);
}

/* ----------------------------------------------------------
   5. Page Hero (secondary pages)
   ---------------------------------------------------------- */
.page-hero {
    padding: 180px 0 160px;
    background: linear-gradient(135deg, rgba(20, 50, 85, 0.97) 0%, rgba(30, 70, 115, 0.97) 50%, rgba(40, 85, 130, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover no-repeat;
    opacity: 0.2;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 100, 0.4) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144;
    font-size: clamp(46px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-hero h1 .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .section-tag {
    color: #7dd3fc;
}

/* ----------------------------------------------------------
   6. Section Styles
   ---------------------------------------------------------- */
.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
}

/* ----------------------------------------------------------
   7. Stats Section
   ---------------------------------------------------------- */
.stats-section {
    background: var(--primary-purple);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::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.05'%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");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ----------------------------------------------------------
   8. CTA Section
   ---------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.92) 0%, rgba(224, 242, 254, 0.92) 50%, rgba(240, 249, 255, 0.92) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section .cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #424242;
}

.cta-content p {
    font-size: 18px;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-primary {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    background: #0077b6;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #E04741;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 71, 65, 0.3);
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #0077b6, #0096c7);
    color: #ffffff;
}

.cta-section .btn-primary:hover {
    background: #E04741;
    color: #ffffff;
}

/* ----------------------------------------------------------
   9. Footer
   ---------------------------------------------------------- */
.footer {
    background: #0f172a;
    padding: 50px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0077b6, #22d3ee, #0077b6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-brand {
    flex: 0 0 280px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #0077b6;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    color: #ffffff;
}

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

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

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #22d3ee;
}

.footer-contact {
    flex: 0 0 200px;
}

.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #22d3ee;
}

.footer-bottom {
    text-align: center;
    padding-top: 5px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ----------------------------------------------------------
   10. Mobile Menu
   ---------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1000;
    padding: 100px 30px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu ul li a {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: rgba(0, 119, 182, 0.3);
    color: #7dd3fc;
}

.mobile-menu .mobile-cta {
    display: block;
    margin-top: 30px;
    padding: 15px 25px;
    background: var(--accent-coral);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu .mobile-cta:hover {
    background: #c73a35;
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   11. Scroll Reveal
   ---------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------
   12. Animations
   ---------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------
   13. Responsive - 1024px
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-wrap: wrap;
    }

    .footer-brand {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
}

/* ----------------------------------------------------------
   13. Responsive - 768px
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 16px;
    }

    .logo-img {
        height: 50px;
    }

    .page-hero {
        padding: 80px 0 60px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 42px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        flex: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }

    .footer-contact {
        flex: none;
    }
}
