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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #0A1628;
    background-color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background-color: #0FBF7E;
    color: #050D1A;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050D1A;
}
::-webkit-scrollbar-thumb {
    background: #1A3655;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0FBF7E;
}

/* ── Navigation ── */
.nav {
    background: transparent;
    color: #ffffff;
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #7DE8BE;
}

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

/* ── Mobile Menu ── */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
    color: #7DE8BE;
    transform: translateX(8px);
}

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

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

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #050D1A 0%, #0A1628 50%, #0F2035 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    color: #7DE8BE;
    border-bottom-color: #0FBF7E;
    gap: 1rem;
}

/* ── Service Cards ── */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    background: #F8FAFC;
}

.service-card:hover svg path,
.service-card:hover svg circle,
.service-card:hover svg rect {
    stroke: #0FBF7E !important;
}

/* ── Project Cards ── */
.project-card {
    position: relative;
    cursor: pointer;
}

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

.testimonial-card:hover {
    border-color: rgba(15, 191, 126, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(5, 13, 26, 0.08);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }

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

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

/* ── Input Focus ── */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #0FBF7E !important;
}

/* ── Contact Form Button ── */
#contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #0A1628;
    border-bottom: 1px solid #CBD5E1;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

#contact-form button[type="submit"]:hover {
    color: #0FBF7E;
    border-bottom-color: #0FBF7E;
    gap: 1rem;
}

/* ── Select Arrow ── */
select {
    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='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
