/* ============================================
   NASA — Professional Services | Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #d9a3b8;
    color: #2b0e1a;
}

/* --- Hero Gradient --- */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, #fde68a 0%, #fbbf24 20%, #a34068 50%, #5c213b 75%, #2b0e1a 100%);
}

/* --- Hero Pattern --- */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(253, 214, 184, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(163, 64, 104, 0.2) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: heroFadeUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: heroFadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: heroFadeUp 0.8s ease forwards 0.8s;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- Navbar --- */
#navbar {
    background: rgba(250, 245, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 33, 59, 0.08);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    box-shadow: 0 4px 30px rgba(43, 14, 26, 0.08);
}

.nav-logo {
    transition: color 0.3s ease;
}

/* --- Section Styles --- */
.section-label {
    letter-spacing: 0.2em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    letter-spacing: -0.01em;
}

/* --- Service Cards --- */
.service-card-inner {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(43, 14, 26, 0.15);
}

/* --- About Image --- */
.about-image-wrapper {
    box-shadow: 0 30px 80px rgba(43, 14, 26, 0.2);
    transition: transform 0.5s ease;
}

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

/* --- Approach Steps --- */
.approach-step {
    padding: 2rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(43, 14, 26, 0.1);
}

/* --- Buttons --- */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(43, 14, 26, 0.25);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(92, 33, 59, 0.05);
    transform: translateY(-2px);
}

.btn-cta {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}

/* --- Form Inputs --- */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

.form-input::placeholder {
    color: #d9a3b8;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c213b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Contact Icons --- */
.contact-icon {
    transition: transform 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.05);
}

/* --- Mobile Menu --- */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    transition: color 0.3s ease;
}

/* --- Menu Button --- */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal-section {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-section:nth-child(2) { transition-delay: 0.1s; }
    .reveal-section:nth-child(3) { transition-delay: 0.2s; }
    .reveal-section:nth-child(4) { transition-delay: 0.3s; }
}

/* --- About Pattern --- */
.about-pattern {
    background-image: 
        linear-gradient(45deg, rgba(253, 214, 184, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(253, 214, 184, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(253, 214, 184, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(253, 214, 184, 0.1) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* --- CTA Pattern --- */
.cta-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(253, 214, 184, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(193, 110, 145, 0.2) 0%, transparent 50%);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-gradient {
        background: radial-gradient(ellipse at 50% 50%, #fbbf24 0%, #a34068 40%, #5c213b 70%, #2b0e1a 100%);
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-accent-1,
    .hero-accent-2,
    .hero-accent-3 {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }

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

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .hero-scroll,
    .reveal-section {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-gradient {
        background: #2b0e1a !important;
    }
}
