/* NYZA Engineering Design - Global Stylesheet (index.css) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --brand-primary: #3b82f6; /* Premium Tech Blue */
    --brand-secondary: #93c5fd; /* Soft Light Blue */
    --bg-obsidian: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-base: rgba(255, 255, 255, 0.03);
    --glass-shadow: rgba(0, 0, 0, 0.37);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    --brand-primary: #3b82f6;
    --brand-secondary: #60a5fa;
    --bg-obsidian: #f8fafc;
    --bg-card: rgba(255,255,255,0.82);
    --border-glow: rgba(15, 23, 42, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --panel-glow: rgba(59, 130, 246, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --glass-base: rgba(248, 250, 252, 0.72);
    --glass-shadow: rgba(15, 23, 42, 0.12);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
                var(--bg-obsidian);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

p {
    color: var(--text-secondary);
}

code, pre {
    font-family: var(--font-mono);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080808;
}
::-webkit-scrollbar-thumb {
    background: #1c1c1c;
    border-radius: 4px;
    border: 1px solid var(--border-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* Visual Theme Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: linear-gradient(135deg, var(--glass-highlight) 0%, var(--glass-base) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-4px);
}

.project-carousel {
    position: relative;
    overflow: hidden;
    background: #050505;
}

.project-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.65s ease;
    will-change: opacity;
}

.project-carousel .carousel-slide.active {
    opacity: 1;
}

.project-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-carousel .carousel-control:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.project-carousel .carousel-control.prev {
    left: 16px;
}

.project-carousel .carousel-control.next {
    right: 16px;
}

.project-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.project-carousel .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.project-carousel .carousel-dot.active {
    background: rgba(59, 130, 246, 0.95);
    border-color: rgba(59, 130, 246, 0.95);
    transform: scale(1.1);
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-blue { background: var(--brand-primary); }
.glow-purple { background: var(--brand-secondary); }

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-obsidian);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

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

/* Animations & Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.35); }
    100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.15); }
}

.glow-card {
    animation: pulse-glow 6s infinite ease-in-out;
}

/* Custom Grid Systems */
.grid-mesh {
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

body[data-theme="light"] {
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
                #f8fafc;
    color: var(--text-primary);
}

body[data-theme="light"] .grid-mesh {
    background-image: linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

body[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .nav-float {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .nav-float:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .btn-brand {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.18);
}

body[data-theme="light"] .text-white {
    color: #0f172a !important;
}

body[data-theme="light"] .text-white\/60 {
    color: rgba(15, 23, 42, 0.65) !important;
}

body[data-theme="light"] .text-gray-400,
body[data-theme="light"] .text-gray-500 {
    color: #64748b !important;
}

body[data-theme="light"] .bg-black\/20,
body[data-theme="light"] .bg-black\/30,
body[data-theme="light"] .bg-black\/40 {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

body[data-theme="light"] .bg-[#050505] {
    background-color: #f8fafc !important;
}

body[data-theme="light"] .border-white\/5,
body[data-theme="light"] .border-white\/8,
body[data-theme="light"] .border-white\/10,
body[data-theme="light"] .border-white\/20 {
    border-color: rgba(15, 23, 42, 0.10) !important;
}

body[data-theme="light"] .bg-white\/5 {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

body[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.floating-contact-dock {
    position: fixed;
    right: 20px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 60;
}

.floating-contact-btn {
    width: 54px;
    height: 54px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.floating-email {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(147, 197, 253, 0.4);
}

.floating-whatsapp {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(134, 239, 172, 0.4);
}

.floating-contact-btn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .floating-contact-dock {
        right: 14px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-contact-btn {
        width: 48px;
        height: 48px;
    }
}

/* Form Styling */
.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    color-scheme: dark;
}

.form-select option {
    background-color: #0b0f18;
    color: #e5e7eb;
}

body[data-theme="light"] .form-select {
    color-scheme: light;
}

body[data-theme="light"] .form-select option {
    background-color: #ffffff;
    color: #0f172a;
}

.form-input[type="date"],
.form-input[type="time"] {
    color-scheme: dark;
}

body[data-theme="light"] .form-input[type="date"],
body[data-theme="light"] .form-input[type="time"] {
    color-scheme: light;
}

.tz-combobox {
    position: relative;
}

.tz-combobox-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tz-combobox-trigger:hover,
.tz-combobox-trigger[aria-expanded="true"] {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tz-combobox-trigger:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.tz-combobox-trigger svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.tz-combobox-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.tz-combobox-panel {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #0b0f18;
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

body[data-theme="light"] .tz-combobox-panel {
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.tz-combobox-search {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-glow);
    background: transparent;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.tz-combobox-search:focus {
    outline: none;
}

.tz-combobox-search::placeholder {
    color: var(--text-secondary);
}

.tz-combobox-list {
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.tz-combobox-option {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.tz-combobox-option:hover,
.tz-combobox-option.is-active {
    background: rgba(59, 130, 246, 0.16);
}

.tz-combobox-option.is-selected {
    color: var(--brand-secondary);
    font-weight: 600;
}

.tz-combobox-empty {
    padding: 14px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

/* Interactive Timelines */
.timeline-track {
    position: relative;
}
.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-primary) 0%, rgba(255,255,255,0.05) 100%);
}

@media(min-width: 768px) {
    .timeline-track::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ── Floating Pill Navbar ─────────────────────────────── */
.nav-float {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1280px;
    z-index: 100;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    padding: 10px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.nav-float:hover {
    background: rgba(5, 5, 5, 0.88);
    border-color: rgba(255,255,255,0.13);
}

/* Mobile dropdown inside floating nav */
.nav-float .nav-mobile-menu {
    margin-top: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5,5,5,0.92);
    border-radius: 24px;
    overflow: hidden;
}

/* Addon checkbox styling for pricing page */
.addon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.addon-row:last-child { border-bottom: none; }
.addon-row:hover { background: rgba(255,255,255,0.02); border-radius: 8px; padding-left: 8px; }

.addon-check {
    width: 18px; height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

/* Team Tab Switcher */
.team-tab-btn {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.team-tab-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.team-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-tab-panel {
    animation: teamTabFadeIn 0.4s ease-out;
}

@keyframes teamTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light mode overrides for team tabs */
body[data-theme="light"] .team-tab-btn {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .team-tab-btn:hover {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .team-tab-btn.active {
    color: #1e1b4b;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
}
