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

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

body {
    background-color: #0f131a;
    color: #e2e3e5;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav-scrolled {
    background: rgba(15, 19, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F97066;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* Mobile menu button */
#menuBtn {
    position: relative;
}

#menuBtn[aria-expanded="true"] .menu-line-1 {
    transform: translateY(7.5px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .menu-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] .menu-line-3 {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 5px;
}

.mobile-nav-link {
    border-radius: 0.75rem;
}

/* ===== Hero ===== */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(249, 112, 102, 0.15) 0%, rgba(55, 65, 81, 0.3) 50%, rgba(15, 19, 26, 0.95) 100%);
}

.hero-grid-pattern {
    background-image:
        linear-gradient(rgba(249, 112, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 112, 102, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero entrance animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-scroll {
    animation: fadeIn 1s ease-out 1s both;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 112, 102, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 112, 102, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float 10s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(249, 112, 102, 0.1);
    border-radius: 20px;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
    animation: rotate-slow 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(249, 112, 102, 0.05);
    top: 60%;
    right: 8%;
    animation: float-slower 12s ease-in-out infinite;
}

.geo-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(249, 112, 102, 0.07);
    bottom: 30%;
    left: 15%;
    animation: float 14s ease-in-out infinite;
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

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

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-icon {
    transition: transform 0.4s ease;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Form Styles ===== */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #5f626b;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4b4e56;
}

/* ===== Selection ===== */
::selection {
    background: rgba(249, 112, 102, 0.3);
    color: #f6f6f7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
        right: -50px;
    }

    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }

    .geo-square-1 {
        width: 80px;
        height: 80px;
    }

    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(249, 112, 102, 0.05);
    }

    .geo-ring-1 {
        width: 120px;
        height: 120px;
    }
}
