/* ========================================
   Wolf Cabins — Custom Styles
   ======================================== */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
    top: -200px;
    right: -150px;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0d9488 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #5eead4 0%, transparent 70%);
    top: 30%;
    right: -80px;
    border-radius: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #99f6e4 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    border-radius: 50%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 15%;
    left: 5%;
    border-radius: 30px;
    transform: rotate(45deg);
    opacity: 0.06;
    animation: spin-slow 30s linear infinite;
}

.geo-square-2 {
    width: 120px;
    height: 120px;
    background: #0d9488;
    bottom: 20%;
    right: 10%;
    border-radius: 20px;
    transform: rotate(20deg);
    opacity: 0.07;
    animation: spin-slow 25s linear infinite reverse;
}

.geo-square-3 {
    width: 160px;
    height: 160px;
    background: #5eead4;
    top: 10%;
    right: 5%;
    border-radius: 25px;
    transform: rotate(30deg);
    opacity: 0.05;
    animation: spin-slow 35s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #2dd4bf;
    top: 40%;
    left: 8%;
    opacity: 0.05;
    animation: float-slow 16s ease-in-out infinite;
}

.geo-diamond-1 {
    width: 150px;
    height: 150px;
    background: #2dd4bf;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.06;
    animation: spin-slow 20s linear infinite;
}

.geo-dots {
    background-image: radial-gradient(circle, #2dd4bf 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
    opacity: 0.15;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(15px) rotate(-3deg); }
}

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

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-text {
    color: #f8fafc;
}

#navbar.scrolled a:not(.bg-teal-500) {
    color: rgba(248, 250, 252, 0.85) !important;
}

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

#mobile-menu.open .mobile-link {
    animation: slideIn 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; }

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

/* Mobile menu button animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Smooth Scroll Padding
   ======================================== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: #0d9488;
    color: #f0fdfa;
}

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

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

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

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

/* ========================================
   Image Hover Effects
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

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

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