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

:root {
    /* Brand Colors — Navy / Cyan / Silver */
    --primary: #0f2547;
    --primary-dark: #091a33;
    --primary-light: #1a3a6b;
    --accent: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.5);

    /* Backgrounds — Dark Mode */
    --bg-body: #060d1a;
    --bg-glass: rgba(15, 37, 71, 0.55);
    --bg-glass-strong: rgba(15, 37, 71, 0.85);

    /* Text — Light on Dark */
    --text-primary: #e8edf5;
    --text-secondary: #8b9dc3;
    --text-light: #5a6f96;

    /* Interface */
    --border-light: rgba(0, 180, 216, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 180, 216, 0.06) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(15, 37, 71, 0.15) 0%, transparent 20%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1225;
}

::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Selection */
::selection {
    background: var(--accent);
    color: #000;
}

/* Glassmorphism - Premium Dark Mode */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.15);
    box-shadow: var(--shadow-lg);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(15, 37, 71, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.floating-card {
    animation: float 6s ease-in-out infinite;
}

/* Neon Glows */
.glow-text-blue {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

.glow-text-green {
    color: #00e5a0;
    text-shadow: 0 0 20px rgba(0, 229, 160, 0.3);
}

.glow-box-blue {
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.2);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.modal-content {
    background: rgba(15, 37, 71, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    color: var(--text-primary);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 216, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 180, 216, 0.4);
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(6, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(0, 180, 216, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 180, 216, 0.3);
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #0077b6 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00e5a0 0%, #00b4d8 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
    color: #000;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Gradient Text Helper */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Brand Logo Watermark */
.brand-watermark {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%) rotate(8deg);
    width: 500px;
    height: auto;
    opacity: 0.08;
    filter: brightness(1.2) saturate(0.8);
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .brand-watermark {
        width: 300px;
        right: -15%;
        opacity: 0.05;
    }
}

/* PRINT STYLES FOR PDF */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
        overflow: visible !important;
    }

    #navbar,
    #bg-canvas,
    .animate-pulse-slow,
    .floating-card,
    .btn-primary,
    button[type="submit"],
    a[href^="#contact"],
    button[onclick="window.print()"],
    footer .grid,
    input,
    textarea,
    .border-white\/10,
    .glass-panel {
        display: none !important;
        /* Hide non-essential elements */
        border: none !important;
        background: none !important;
        box-shadow: none !important;
    }

    h1,
    h2,
    h3,
    h4,
    span,
    p,
    i {
        color: #000 !important;
        text-shadow: none !important;
        filter: none !important;
    }

    .text-neon-blue,
    .text-neon-green,
    .text-purple-400,
    .text-yellow-400,
    .text-cyan-400 {
        color: #000 !important;
        /* Flatten neon colors to black for clarity */
        font-weight: bold;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0 !important;
    }

    .service-card,
    .group {
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 2rem;
        border-radius: 8px;
        page-break-inside: avoid;
    }

    /* Keep layout grids for services/projects */
    .grid {
        display: block !important;
        /* Often grid prints poorly, fallback to block stacking */
    }

    .grid>div {
        width: 100% !important;
        margin-bottom: 20px;
    }
}