/* ============================================
   AXIO SYSTEMS - PREMIUM DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- COLOR PALETTE: Deep Space / Neon Tech --- */
    --bg-deep: #030712;
    /* Almost black */
    --bg-surface: #0f172a;
    /* Dark blue-grey */
    --bg-glass: rgba(15, 23, 42, 0.6);

    --accent-primary: #3b82f6;
    /* Electric Blue */
    --accent-glow: #60a5fa;
    /* Lighter Blue */
    --accent-secondary: #8b5cf6;
    /* Electric Purple */
    --accent-tertiary: #10b981;
    /* Emerald for success/data */

    --text-main: #f8fafc;
    /* White-ish */
    --text-muted: #94a3b8;
    /* Grey */
    --text-dark: #0f172a;
    /* For light backgrounds */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(to bottom, #030712, #0f172a);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* --- TYPOGRAPHY --- */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* --- SPACING & LAYOUT --- */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* --- EFFECTS --- */
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(12px);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: revealUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* ============================================
   NAVIGATION (Bootstrap Overrides)
   ============================================ */
.navbar {
    padding: 0;
    transition: var(--transition-smooth);
    background: transparent;
    /* Bootstrap sets bg-light usually, we want transparent start */
    height: auto;
    /* Allow expansion */
    min-height: var(--header-height);
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.9) !important;
    /* Ensure override */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

/* Logo styling from before */
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: white !important;
    /* Bootstrap override */
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-primary);
}

/* Nav Link Styling */
.navbar-nav {
    align-items: center;
    gap: 32px;
    /* Desktop gap */
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0 !important;
    /* Override bootstrap padding */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    color: var(--text-main);
}

.nav-link.active {
    color: var(--text-main) !important;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu Adjustments */
@media (max-width: 991px) {

    /* Bootstrap LG breakpoint */
    .navbar {
        background: rgba(3, 7, 18, 0.95);
        /* Solid background on mobile open */
        padding: 16px 0;
    }

    .navbar-collapse {
        margin-top: 24px;
        background: rgba(3, 7, 18, 0.5);
        border-radius: 16px;
        padding: 24px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav {
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Dynamic Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--accent-glow);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SERVICES / DOMAINS
   ============================================ */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-subtitle {
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced from 350px for mobile */
    gap: 32px;
}

.service-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-glow);
}

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

.service-card p {
    color: var(--text-muted);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg-deep);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: 32px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-deep);
    padding: 80px 0 40px;
    margin-top: 80px;
}

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

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   WORK & CONTACT (Responsive)
   ============================================ */
.project-card {
    padding: 48px;
    border-radius: 32px;
    display: grid;
    gap: 32px;
    grid-template-columns: 2fr 1fr;
}

.contact-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
    width: 500px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }

    /* Navbar Toggle Fix - Ensure high contrast */
    .navbar-toggler {
        margin-right: 12px;
        border-color: rgba(255, 255, 255, 0.5);
        /* Make border visible */
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        filter: none !important;
        /* Reset filter */
    }

    .hero {
        padding-top: 120px;
        align-items: flex-start;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
        margin-top: 40px;
        padding-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        /* Stack everything */
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 24px !important;
        /* Reduce padding on mobile */
        border-radius: 24px;
    }

    .brand-item {
        font-size: 1.2rem;
    }

    /* Contact Page Specifics */
    .contact-title {
        display: none;
        /* Hide 'Contact Info' title on mobile as requested */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   MARQUEE (BRAND CAROUSEL)
   ============================================ */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.brand-item:hover {
    color: var(--text-main);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}

/* ============================================
   DYNAMIC TEXT ANIMATION
   ============================================ */
.dynamic-text-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
}

.dynamic-word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.dynamic-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.dynamic-word.exit {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
}