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

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

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.shape-circle-1 {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(154, 30, 56, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 5%;
    right: -3%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 139, 160, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 20%;
    right: 5%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(154, 30, 56, 0.1);
    border-radius: 16px;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    bottom: 25%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(255, 92, 122, 0.08);
    animation: float-slow 7s ease-in-out infinite;
}

.shape-dots {
    top: 15%;
    right: 15%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(154, 30, 56, 0.12) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.6;
}

.shape-stripe {
    bottom: 10%;
    left: 3%;
    width: 60px;
    height: 200px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 92, 122, 0.06),
        rgba(255, 92, 122, 0.06) 8px,
        transparent 8px,
        transparent 16px
    );
    border-radius: 8px;
    transform: rotate(-15deg);
}

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

@keyframes spin-slow {
    from { transform: rotate(15deg); }
    to { transform: rotate(375deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slide-up-delay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up-delay-2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.7s ease-out 0.1s both;
}

.animate-slide-up-delay {
    animation: slide-up-delay 0.7s ease-out 0.25s both;
}

.animate-slide-up-delay-2 {
    animation: slide-up-delay-2 0.7s ease-out 0.4s both;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(154, 30, 56, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 4px 30px rgba(154, 30, 56, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    border-radius: 1rem;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(154, 30, 56, 0.15);
}

/* ===== Gallery Items ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(154, 30, 56, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a1e38;
}

/* ===== Selection ===== */
::selection {
    background: rgba(154, 30, 56, 0.15);
    color: #3a0a15;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 2px solid #9a1e38;
    outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-square-1,
    .shape-triangle-1,
    .shape-dots,
    .shape-stripe {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    .geo-shape,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
