/* ============================================
   GADITE — Professional Services Website
   Burgundy + Blush Color Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy-950: #3d0a15;
    --burgundy-900: #6d1a2e;
    --burgundy-800: #821a31;
    --burgundy-700: #9c1e38;
    --burgundy-600: #b82844;
    --burgundy-500: #d44562;
    --blush-500: #ff4d7c;
    --blush-400: #ff7fa0;
    --blush-200: #ffd6df;
    --cream: #FFF8F0;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 40, 68, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 124, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(184, 40, 68, 0.05);
    top: 40%;
    left: 5%;
    animation: rotate 20s linear infinite;
}

.geo-rect {
    width: 120px;
    height: 120px;
    background: rgba(255, 127, 160, 0.06);
    border-radius: 24px;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(184, 40, 68, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    top: 25%;
    left: 3%;
    opacity: 0.5;
    animation: float 15s ease-in-out infinite reverse;
}

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

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--burgundy-700) 0%, var(--burgundy-900) 100%);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 26, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 26, 49, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--burgundy-800);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 1rem;
    border: 2px solid var(--burgundy-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--burgundy-50);
    border-color: var(--burgundy-400);
    transform: translateY(-2px);
}

/* --- Navbar --- */
#navbar {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 40, 68, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(130, 26, 49, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy-600), var(--blush-500));
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* --- Hero Animations --- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

/* --- Floating Cards --- */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1.5s;
}

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

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* --- Testimonial Cards --- */
.testimonial-card {
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

/* --- Section Dividers --- */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--burgundy-600), var(--blush-500), var(--burgundy-600));
    border-radius: 2px;
    opacity: 0.3;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-rect {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
}

/* --- Focus Styles --- */
*:focus-visible {
    outline: 2px solid var(--burgundy-500);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background: rgba(184, 40, 68, 0.2);
    color: var(--burgundy-950);
}
