/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 107, 0.04);
    bottom: 20%;
    left: -100px;
    transform: rotate(45deg);
    border-radius: 20px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: 10%;
    border-radius: 50%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(255, 107, 107, 0.03);
    top: 40%;
    right: 5%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255, 107, 107, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    top: 60%;
    left: 8%;
    opacity: 0.6;
}

/* Navigation */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* Buttons */
.btn-primary {
    background: #FF6B6B;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.btn-cta {
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-outline {
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
}

.hero-img-wrapper {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.hero-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    pointer-events: none;
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #FF6B6B, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
}

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

/* Gallery */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

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

/* About Images */
.about-img-wrapper {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    pointer-events: none;
}

/* Form Inputs */
.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-field:focus {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-field option {
    background: #2d2d2d;
    color: #ffffff;
}

/* Success Message */
.success-message {
    animation: fadeIn 0.5s ease;
}

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

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-rect-1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-dots {
        display: none;
    }
}
