/* ===== Custom Styles for Terrific Tan ===== */

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

/* Base styles */
body {
    font-family: 'Outfit', sans-serif;
}

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

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

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

/* Hero animations */
.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slide-up-delay 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slide-up-delay-2 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(20, 184, 166, 0.15);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-reverse 6s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(20, 184, 166, 0.1);
    top: 25%;
    left: 8%;
    animation: spin-slow 20s linear infinite;
    transform-origin: center;
}

.shape-diamond-1 {
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.08);
    top: 60%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
    transform: rotate(45deg);
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    bottom: 15%;
    right: 20%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.shape-square-1 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(20, 184, 166, 0.12);
    top: 40%;
    left: 15%;
    animation: float-reverse 5s ease-in-out infinite;
    transform: rotate(30deg);
}

/* Dot grid pattern */
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(20, 184, 166, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.15);
}

/* ===== Reason Cards ===== */
.reason-card {
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-4px);
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Input focus styles ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle-1 {
        display: none;
    }
    
    .shape-diamond-1 {
        display: none;
    }
    
    .shape-ring-1 {
        width: 120px;
        height: 120px;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a0e27;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}
