/* === Variables === */
:root {
    /* Colors */
    --primary-yellow: #fbbf24;
    --primary-yellow-light: #fcd34d;
    --primary-yellow-dark: #f59e0b;
    --primary-grey: #4b5563;
    --light-grey: #f3f4f6;
    --dark-grey: #1f2937;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* === Base Styles === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--dark-grey);
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* === Utilities === */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* === Navigation === */
.nav-fixed {
    backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
}

.nav-link {
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--primary-yellow);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

/* Mobile Navigation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-normal),
                transform var(--transition-normal);
}

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

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast),
                transform var(--transition-fast);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    transition: transform var(--transition-slow);
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Animated Background Patterns */
.bg-grid-pattern {
    background-image: linear-gradient(var(--primary-grey) 1px, transparent 1px),
                      linear-gradient(90deg, var(--primary-grey) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-dots-pattern {
    background-image: radial-gradient(var(--primary-grey) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* === Cards & Elements === */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-card {
    background: var(--light-grey);
    border-radius: 1rem;
    transition: all var(--transition-normal);
}

.service-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* === Gallery === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.gallery-item img {
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* === Form Elements === */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-grey);
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
}

.form-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    outline: none;
}

.form-input.error {
    border-color: #ef4444;
}

.submit-button {
    background: var(--primary-yellow);
    color: var(--dark-grey);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.submit-button:hover {
    background: var(--primary-yellow-dark);
    transform: translateY(-2px);
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* === Loading Animations === */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-grey);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .hero-image {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-yellow-dark);
}

/* === Helper Classes === */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Print Styles === */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black;
    }
    
    a {
        text-decoration: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}