:root {
    --color-primary: #E31E24;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-dark: #1a1a1a;
    --color-light-gray: #f5f5f5;
    --color-medium-gray: #666666;
    --font-primary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
    gap: 12px;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text-company {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* Legacy support for text-based logo (if image not found) */
.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-white);
}

.logo-subtext {
    color: var(--color-primary);
    font-weight: 600;
}

.logo-text-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Using placeholder image - replace with your own images/hero-bg.jpg */
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%), 
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80'),
                url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--color-white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-phone {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.hero-phone span {
    opacity: 0.8;
    margin-right: 10px;
}

.phone-number {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-medium-gray);
    font-weight: 300;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--color-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.2);
}

.service-card h3,
.service-card p {
    color: inherit;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
    font-weight: 700;
}

.service-card p {
    color: var(--color-medium-gray);
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--color-white);
}

.about-content {
    width: 100%;
    max-width: 100%;
}

.about-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-right: 0;
    margin-right: 0;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-medium-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.feature {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Ensure all 3 cards stay on one row on desktop */
@media (min-width: 969px) {
    .about-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .feature {
        min-width: 0; /* Prevents cards from forcing wrap */
    }
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-light-gray);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.feature strong {
    display: block;
    color: var(--color-black);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature p {
    color: var(--color-medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.about-card {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    padding: 3rem;
    border-radius: 15px;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
}

.card-content {
    position: relative;
    z-index: 2;
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stars {
    color: var(--color-primary);
    font-size: 1.5rem;
    letter-spacing: 3px;
}

/* Customer Reviews Section */
.customer-reviews {
    width: 100%;
    margin-top: 3rem;
}

.reviews-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--color-black);
    font-weight: 700;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.review-stars {
    color: var(--color-primary);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.review-text {
    color: var(--color-medium-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    color: var(--color-black);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    margin: 0;
}

/* Instagram Gallery Section */
.instagram-gallery {
    padding: 6rem 0;
    background: var(--color-black);
    color: var(--color-white);
}

.instagram-gallery .section-title {
    color: var(--color-white);
}

.instagram-gallery .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.instagram-link svg {
    width: 24px;
    height: 24px;
}

.instagram-link:hover {
    transform: translateX(5px);
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background: var(--color-dark);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

.instagram-post-icon {
    color: var(--color-white);
    font-size: 2rem;
}

.instagram-post-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-black);
    font-weight: 700;
}

.contact-item a,
.contact-item p {
    color: var(--color-medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-light-gray);
    padding: 2.5rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-image {
    height: 50px;
}

.footer-logo .logo-text-company {
    font-size: 18px;
}

/* Mobile responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-text-company {
        font-size: 18px;
    }
    
    .logo-image {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .logo-text-company {
        font-size: 16px;
    }
    
    .logo-image {
        height: 65px;
    }
    
    .logo {
        gap: 10px;
    }
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-services ul li {
    color: rgba(255, 255, 255, 0.8);
}

.footer-services ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-services ul li a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.free-estimate-badge {
    color: var(--color-primary) !important;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Background - Mobile Optimization */
@media (max-width: 968px) {
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .reviews-title {
        font-size: 1.75rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

