/* Landing Page Specific Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fixed header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fixed-header.scrolled {
    background: rgba(44, 62, 80, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Section spacing */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.section:first-child {
    padding-top: 0;
}

/* Hero adjustments for landing */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) rotate(45deg) translateY(0);
    }
    40% {
        transform: translateX(-50%) rotate(45deg) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) rotate(45deg) translateY(-5px);
    }
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Staggered animations */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Initial hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-up.delay-1 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.animate-fade-in-up.delay-2 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Smooth scroll for links */
.scroll-btn,
.nav-link {
    cursor: pointer;
}

/* Section backgrounds */
.about-section {
    background: #f8f9fa;
}

.services-section {
    background: white;
}

.reviews-section {
    background: #f8f9fa;
}

.contact-section {
    background: white;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-top: 4rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Enhanced nav menu for single page */
.nav-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a.active {
    color: #3498db;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
    }

    .section {
        min-height: auto;
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    /* Grid adjustments */
    .features-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Cards mobile optimization */
    .feature-card,
    .service-card,
    .review-card,
    .stat-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }

    /* Mobile form improvements */
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .contact-item strong {
        min-width: auto;
        font-size: 0.9rem;
    }

    .contact-item span {
        font-size: 0.9rem;
        word-break: break-all;
    }

    /* CTA section mobile */
    .cta-section {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Scroll indicator mobile */
    .scroll-indicator {
        bottom: 20px;
    }

    /* Review cards mobile */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reviewer-info {
        width: 100%;
    }

    .review-rating {
        align-self: flex-end;
    }

    /* About section mobile */
    .about-text ul {
        margin-left: 1rem;
    }

    .about-text li {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }

    /* Service cards mobile */
    .service-card ul {
        margin-left: 1rem;
    }

    .service-card li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: 100vh;
    }

    .section {
        padding: 60px 0;
    }
}