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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ── Header Scroll State ── */
#header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background: rgba(26, 10, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 142, 0.3);
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

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

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

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #F5A623;
    animation: float1 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    right: 8%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #7B2D8E;
    animation: float2 10s ease-in-out infinite;
}

.shape-circle-3 {
    bottom: 15%;
    left: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #F5A623;
    animation: float3 6s ease-in-out infinite;
}

.shape-square-1 {
    top: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: #F5A623;
    transform: rotate(45deg);
    animation: spin1 14s linear infinite;
}

.shape-square-2 {
    bottom: 25%;
    left: 8%;
    width: 70px;
    height: 70px;
    background: #C06BD6;
    transform: rotate(20deg);
    animation: spin2 10s linear infinite;
}

.shape-triangle-1 {
    top: 45%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #F5A623;
    opacity: 0.06;
    animation: float1 9s ease-in-out infinite;
}

.shape-diamond-1 {
    top: 70%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: #C06BD6;
    transform: rotate(45deg);
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
}

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

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

@keyframes spin2 {
    from { transform: rotate(20deg); }
    to { transform: rotate(380deg); }
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Area Cards ── */
.area-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.area-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 45, 142, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Selection ── */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #F9F0FC;
}

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

::-webkit-scrollbar-track {
    background: #1A0A20;
}

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

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

/* ── Responsive ── */
@media (max-width: 640px) {
    .shape-circle-1 { width: 180px; height: 180px; }
    .shape-circle-2 { width: 120px; height: 120px; }
    .shape-square-1 { width: 60px; height: 60px; }
    .shape-square-2 { display: none; }
    .shape-triangle-1 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 69px; }
    .shape-diamond-1 { display: none; }
}
