/* ===== CUSTOM STYLES ===== */

/* Floating Card Animations */
.floating-card {
    position: absolute;
    z-index: 20;
}

.card-top-right {
    top: -20px;
    right: -20px;
    animation: float-slow 4s ease-in-out infinite;
}

.card-bottom-left {
    bottom: 60px;
    left: -30px;
    animation: float-medium 3.5s ease-in-out infinite;
}

.card-mid-right {
    top: 50%;
    right: -40px;
    animation: float-fast 3s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

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

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

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 86, 64, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: drift 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(207, 160, 90, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: drift 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(192, 86, 64, 0.06);
    border-radius: 24px;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
    animation: spin-slow 12s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(207, 160, 90, 0.08);
    top: 60%;
    right: 10%;
    animation: spin-slow 15s linear infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(192, 86, 64, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 8%;
    opacity: 0.6;
}

/* About section shapes */
.shape-circle-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 86, 64, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: drift 10s ease-in-out infinite;
}

.shape-rect-2 {
    width: 200px;
    height: 200px;
    background: rgba(207, 160, 90, 0.08);
    border-radius: 40px;
    bottom: -50px;
    right: 10%;
    transform: rotate(30deg);
    animation: spin-slow 20s linear infinite;
}

/* CTA section shapes */
.shape-circle-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: drift 7s ease-in-out infinite;
}

.shape-rect-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
    animation: spin-slow 18s linear infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 10px); }
}

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

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(251, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease;
}

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(192, 86, 64, 0.2);
    color: #3F1A12;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C05640;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .shape-circle-1,
    .shape-circle-2,
    .shape-rect-1,
    .shape-triangle-1,
    .shape-dots {
        display: none;
    }
}
