/* ===== CSS Custom Properties ===== */
:root {
    --plum-950: #2d0415;
    --plum-900: #500724;
    --plum-800: #831443;
    --plum-700: #9d174d;
    --plum-600: #be185d;
    --amber-400: #f59e0b;
    --amber-300: #fcd34d;
}

/* ===== 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;
}

/* ===== Geometric Shape Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: #f59e0b;
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid #f59e0b;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: rotateSlow 25s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f59e0b;
    top: 60%;
    right: 10%;
    animation: floatSlow 18s ease-in-out infinite;
    opacity: 0.04;
}

.shape-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid #be185d;
    border-radius: 50%;
    top: 20%;
    left: 15%;
    animation: rotateSlow 30s linear infinite reverse;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #f59e0b 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    bottom: 25%;
    right: 5%;
    opacity: 0.15;
}

.shape-diamond-1 {
    width: 100px;
    height: 100px;
    background: #f59e0b;
    transform: rotate(45deg);
    top: 20%;
    left: 5%;
    opacity: 0.03;
    animation: floatSlow 22s ease-in-out infinite;
}

.shape-hex-1 {
    width: 150px;
    height: 150px;
    border: 2px solid #be185d;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    bottom: 10%;
    right: 8%;
    opacity: 0.04;
    animation: rotateSlow 35s linear infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Floating Card Animations ===== */
.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.card-top-right {
    animation-delay: 0s;
}

.card-bottom-left {
    animation-delay: -2s;
}

.card-mid-right {
    animation-delay: -4s;
}

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Service Card Hover ===== */
.card-service {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(45, 4, 21, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d0415;
}
::-webkit-scrollbar-thumb {
    background: #831443;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* ===== Selection ===== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* ===== Utility ===== */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
}
