/* ============================================
   Expresso Yourself — Custom Styles
   Midnight Blue + Mint Color Palette
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    background: rgba(10, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(98, 125, 152, 0.1);
}

.nav-header.scrolled {
    background: rgba(10, 26, 46, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #86efac);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #86efac !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #0a1a2e;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #d9e2ec;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid rgba(98, 125, 152, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #22c55e;
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: radial-gradient(ellipse at 30% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(134, 239, 172, 0.05) 0%, transparent 50%),
                #0a1a2e;
}

.hero-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero .flex {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero .animate-bounce {
    animation: fadeInUp 0.8s ease forwards, bounce 2s ease-in-out infinite 1.5s;
    animation-delay: 0s, 0s;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Hero Geometric Shapes */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
    animation-delay: 0s;
}

.shape-circle-2 {
    animation-delay: 2s;
}

.shape-diamond {
    animation: spin-slow 20s linear infinite;
}

.shape-square {
    animation: float 8s ease-in-out infinite reverse;
}

.shape-triangle {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ============================================
   Feature Pills
   ============================================ */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   Cards
   ============================================ */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), transparent, rgba(134, 239, 172, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible by default,
   JS adds animated state only when preferred.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    background: rgba(10, 26, 46, 0.8);
    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(98, 125, 152, 0.6);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #f0f4f8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nav-header,
    .back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
