/* ── Reset & Base ── */
*, *::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;
}

::selection {
    background: #d44566;
    color: white;
}

/* ── Hero ── */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    display: block;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(58, 10, 21, 0.88) 0%,
        rgba(107, 26, 44, 0.82) 40%,
        rgba(154, 30, 54, 0.75) 100%
    );
}

/* ── Navbar ── */
.nav-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(107, 26, 44, 0.08);
    padding: 0;
}

.nav-header.scrolled .font-display {
    color: #6b1a2c !important;
}

.nav-header.scrolled .text-plum-600 {
    color: #b82945 !important;
}

.nav-header.scrolled .nav-link {
    color: #6b1a2c;
}

.nav-header.scrolled .mobile-menu-btn {
    background: #fce7eb;
}

.nav-header.scrolled .menu-line {
    background: #6b1a2c;
}

.nav-header.scrolled .mobile-menu {
    background: white;
    border-color: #fce7eb;
}

.nav-header.scrolled .mobile-nav-link {
    color: #6b1a2c;
    border-color: #fce7eb;
}

/* ── Mobile Menu Button ── */
.mobile-menu-btn {
    background: rgba(253, 244, 246, 0.9);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Floating Shapes ── */
.floating-shapes {
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #d44566;
    top: 20%;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    bottom: 10%;
    left: -50px;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #d44566;
    top: 60%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, -10px) scale(1.02); }
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.4s ease;
}

.service-card:nth-child(odd)::after {
    background: linear-gradient(90deg, #d44566, #ec6a8a);
}

.service-card:nth-child(even)::after {
    background: linear-gradient(90deg, #f59e0b, #ffd247);
}

.service-card:hover::after {
    width: 100%;
}

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

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

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

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

/* ── Stagger children ── */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ── Form ── */
select option {
    color: #6b1a2c;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d44566;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #fdf4f6;
}

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

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