/* Design System */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    
    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    
    /* Spacing Scale */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
}

/* Cinematic Components */
.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-delay-1 {
    animation-delay: 0.2s;
}

.reveal-delay-2 {
    animation-delay: 0.4s;
}

.reveal-delay-3 {
    animation-delay: 0.6s;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.slide-in {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Image Hover Effects */
.image-hover {
    overflow: hidden;
    position: relative;
}

.image-hover img {
    transition: transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Fancy Border Animation */
.fancy-border {
    position: relative;
}

.fancy-border::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.fancy-border:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-cinematic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-cinematic:hover::before {
    width: 100%;
}

/* Card Styles */
.card-cinematic {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card-cinematic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.input-cinematic {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.input-cinematic:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .reveal, .scale-in, .slide-in {
        animation: none;
        opacity: 1;
    }
    
    h1 {
        font-size: var(--font-3xl);
    }
    
    h2 {
        font-size: var(--font-2xl);
    }
}

/* Performance optimized animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    will-change: opacity, transform;
}

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

/* Optimized layout classes */
.section-padding {
    padding: var(--spacing-16) 0;
    contain: content;
    position: relative;
}

/* Card with optimized transforms */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Form element optimizations */
input, select, textarea {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    font-size: var(--font-base);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Button optimizations */
button, .button {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    border-radius: 9999px;
    transition: all 0.3s ease;
    will-change: transform;
    font-weight: 500;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

button:active, .button:active {
    transform: translateY(1px);
}

/* Modern Hero Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    width: 100%;
    height: 100%;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.floating-elements::before {
    left: 10%;
    animation-delay: -5s;
}

.floating-elements::after {
    right: 15%;
    width: 60px;
    height: 60px;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-100px) rotate(90deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
    75% {
        transform: translateY(-150px) rotate(270deg);
    }
}

/* Glassmorphism Effects */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Enhanced Button Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Service Cards Enhancement */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
    transition: transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Service Box Styles */
.service-box {
    border-radius: 1rem;
    overflow: hidden;
}

.service-box > div {
    border-radius: 1rem;
}

.service-box img {
    border-radius: 1rem;
}

.service-box .absolute {
    border-radius: 1rem;
}

/* Ensure all service box children maintain rounded corners */
.service-box * {
    border-radius: inherit;
}

/* Testimonial Cards */
blockquote {
    position: relative;
    padding-left: var(--spacing-6);
}

blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    opacity: 0.2;
}

/* Award-winning Design Elements */
@keyframes scroll {
    0% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite;
}

/* Animated Lines */
.lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 100vw;
    z-index: 0;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
    margin-left: -25%;
}
.line:nth-child(1)::after {
    animation-delay: 2s;
}

.line:nth-child(3) {
    margin-left: 25%;
}
.line:nth-child(3)::after {
    animation-delay: 2.5s;
}

@keyframes drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

/* Enhanced Typography */
.text-balance {
    text-wrap: balance;
}

/* Modern Gradients */
.gradient-mask {
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Card Styles */
.card-modern {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Button Effects */
.button-glow {
    position: relative;
    overflow: hidden;
}

.button-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Responsive Design */
@media (max-width: 640px) {
    .lines {
        display: none;
    }
}

/* Wave Pattern */
.wave-pattern {
    display: none;
}

/* Add modern gradient mesh background */
.gradient-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(255, 107, 43, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(255, 143, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 107, 43, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 143, 89, 0.1) 0%, transparent 50%);
}

/* Add subtle animated gradient lines */
.gradient-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 107, 43, 0.05) 15%,
        rgba(255, 143, 89, 0.05) 35%,
        transparent 50%
    );
    background-size: 200% 100%;
    animation: moveGradient 8s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Hero Section */
.hero { 
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #FF6B2B;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 43, 0.95);
    z-index: 1;
}

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

/* Typography */
.playfair { 
    font-family: 'Playfair Display', serif; 
}

.inter { 
    font-family: 'Inter', sans-serif; 
} 