/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #FF6B4A;
    color: #1a1a1a;
}

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

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

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

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

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

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

.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #FF6B4A;
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: rotate-slow 30s linear infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #FF6B4A;
    border-radius: 20px;
    top: 25%;
    left: 5%;
    transform: rotate(15deg);
    animation: float 8s ease-in-out infinite;
    opacity: 0.2;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #FF6B4A;
    top: 60%;
    left: 8%;
    animation: float-reverse 10s ease-in-out infinite;
    opacity: 0.12;
}

.geo-circle-2 {
    width: 80px;
    height: 80px;
    background: #FF6B4A;
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
    animation: float-slow 6s ease-in-out infinite;
    opacity: 0.1;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #FF6B4A 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 40%;
    right: 5%;
    animation: drift 12s ease-in-out infinite;
    opacity: 0.15;
}

/* === NAVBAR === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 26, 26, 0.08);
}

#navbar.scrolled .font-display.font-bold.text-lg {
    color: #1a1a1a;
}

/* === 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.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger Animation */
.menu-line {
    display: block;
}

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

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

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

/* === SERVICE CARDS === */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

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

/* === GALLERY === */
.gallery-item {
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(255, 107, 74, 0.4);
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 26, 26, 0.1);
}

/* === FEATURE ITEMS === */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
        right: -50px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid #FF6B4A;
    }
    
    .geo-dots {
        width: 100px;
        height: 100px;
        background-size: 14px 14px;
    }
}

/* === FOCUS VISIBLE === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
