*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
}

/* Loader */
.loader {
    z-index: 50;
}

/* Skip Link */
.skip-link {
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

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

.btn-secondary {
    background: white;
    color: #059669;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #d1fae5;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #ecfdf5;
    border-color: #6ee7b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10B981;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #059669;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

/* Hero Cards */
.hero-card {
    opacity: 0;
    animation: floatIn 0.8s ease forwards;
}

.hero-card.card-1 {
    animation-delay: 0.3s;
    animation-duration: 0.8s;
}

.hero-card.card-2 {
    animation-delay: 0.5s;
    animation-duration: 0.8s;
}

.hero-card.card-3 {
    animation-delay: 0.7s;
    animation-duration: 0.8s;
}

.hero-card.card-4 {
    animation-delay: 0.9s;
    animation-duration: 0.8s;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-card {
    animation: floatCard 6s ease-in-out infinite;
}

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

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

.hero-card.card-3 {
    animation-delay: 3s;
}

.hero-card.card-4 {
    animation-delay: 4.5s;
}

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

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

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

/* Header Scroll State */
header.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(-100%);
}

/* Form Styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* Image Hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Custom Selection */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

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

::-webkit-scrollbar-track {
    background: #FFFDF5;
}

::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* 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;
    }
}
