:root {
    --primary-color: #C1272D;
    --primary-hover: #a01f24;
    --text-color: #333333;
    --bg-light: #F2F2F2;
    --bg-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    display: block;
    margin-top: -30px;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-header {
    background-color: #FFFFFF !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
}

.btn-header:hover {
    background-color: var(--primary-color) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(193, 39, 45, 0.4);
}

/* Button Shine Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/hero.png');
    background-attachment: fixed;
    /* Parallax Effect */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Authority / Differentiators */
.authority {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Projects Gallery */
.projects {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

/* How it Works */
.process {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Social Proof */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.client-info {
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.client-info span {
    font-weight: 400;
    color: #666;
    font-size: 0.8rem;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
    color: #fff;
}

.cta-section .btn {
    background-color: #fff;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: #f2f2f2;
}

/* Contact/Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* Form Styles */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        background-attachment: scroll;
        /* Fix for mobile parallax issues */
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations for Children */
.reveal-group .feature-card,
.reveal-group .project-item,
.reveal-group .step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-group.active .feature-card,
.reveal-group.active .project-item,
.reveal-group.active .step {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group.active .feature-card:nth-child(1),
.reveal-group.active .project-item:nth-child(1),
.reveal-group.active .step:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-group.active .feature-card:nth-child(2),
.reveal-group.active .project-item:nth-child(2),
.reveal-group.active .step:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-group.active .feature-card:nth-child(3),
.reveal-group.active .project-item:nth-child(3),
.reveal-group.active .step:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-group.active .feature-card:nth-child(4),
.reveal-group.active .project-item:nth-child(4),
.reveal-group.active .step:nth-child(4) {
    transition-delay: 0.4s;
}

/* Testimonials Carousel Styles */
.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0 50px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.testimonial-card {
    flex: 0 0 100%;
    /* Default mobile: 1 item per view */
    max-width: 100%;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        /* Tablet: 2 items */
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 20px);
        /* Desktop: 3 items */
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Enhanced Hover Effects */
.feature-card:hover {
    transform: translateY(-10px);
}

.process-steps .step {
    transition: var(--transition);
}

.process-steps .step:hover {
    transform: translateY(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

/* Form Enhancements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

/* Success Message Toast */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.4s ease-out;
    z-index: 2000;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.success-toast.show {
    transform: translateX(0);
}

.success-toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}