:root {
    /* Brand Colors */
    --primary-color: #EB1A22;
    --primary-dark: #bf151c;
    --primary-gradient: linear-gradient(135deg, #EB1A22 0%, #FF4D4D 100%);
    --secondary-color: #1D3750;
    --secondary-dark: #14283b;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo img {
    height: 55px;
    /* Slightly larger */
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.cta-button {
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(235, 26, 34, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235, 26, 34, 0.4);
}

.cta-button::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: auto;
    min-height: 500px;
    /* Reduced height as requested */
    /* New background image */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/header-bg.webp') no-repeat center top/cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 120px;
    /* Extra space for the divider */
}

/* Shape Divider */
.custom-shape-divider-bottom-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: #FFFFFF;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content .hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    font-weight: 300;
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Services */
.services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-color: #eee;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 80px 30px 30px;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.project-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About */
.about-section {
    background-color: var(--white);
}

.about-wrapper {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-lg);
}

.about-content {
    padding: 60px;
    flex: 1;
}

.about-image {
    flex: 1;
    background: url('../img/hero_bg.webp') no-repeat center center;
    background-size: cover;
    /* Fallback or reuse hero for now if not specific image */
    min-height: 400px;
    width: 100%;
    display: block;
    background-color: #333;
    /* Fallback color */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

/* Contact & CTA */
.cta-section {
    background: var(--light-bg);
    text-align: center;
    padding-bottom: 30px;
}

.contact-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    padding-top: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-info .subtitle {
    display: block;
    margin-bottom: 30px;
    color: var(--text-light);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.info-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(235, 26, 34, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: var(--light-bg);
    font-family: inherit;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(235, 26, 34, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
    font-size: 1rem;
    border-top: none;
}

.footer-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

/* Columns */
.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col-company {
    flex: 1.2;
    /* Slightly wider */
    padding-left: 40px;
    border-left: 3px solid #EB1A22;
    /* Red Divider */
    margin-left: 20px;
}

/* Headings */
.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.footer-underline {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #EB1A22;
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Menu Items */
.footer-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    /* Vertically align checkmark and text */
    gap: 12px;
}

.footer-list a {
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-list a:hover {
    color: #EB1A22;
    padding-left: 5px;
}

/* Red Checkmarks */
.footer-list i {
    color: #EB1A22;
    font-size: 1.2rem;
    min-width: 20px;
    /* Ensure icon alignment */
}

/* Social Links */
.footer-social-container {
    margin-top: 40px;
    text-align: center;
}

.fb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1877F2;
    color: white;
    font-size: 1.6rem;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.fb-button:hover {
    transform: translateY(-3px);
    color: white;
}

/* Company Column */
.footer-logo-container {
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 55px;
    display: block;
    margin-bottom: 5px;
}

.footer-tagline {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-left: 60px;
    /* Indent to align with text part of logo if needed, adjustable */
    display: block;
}

.company-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-list i {
    color: #EB1A22;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .footer-col-company {
        border-left: none;
        /* Remove border on mobile */
        border-top: 3px solid #EB1A22;
        /* Add top border instead */
        padding-left: 0;
        padding-top: 30px;
        margin-left: 0;
    }

    .footer-underline {
        width: 40px;
    }
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

/* Hero Customization */
.hero-services-list {
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
    display: inline-block;
}

.hero-services-list h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.hero-services-list ul li {
    margin-bottom: 5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-services-list ul li i {
    color: var(--primary-color);
}

.hero-highlight {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
        line-height: 1.2;
    }

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

    .about-content h2 {
        font-size: 2rem;
    }

    .hero-services-list {
        width: 100%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .about-wrapper {
        flex-direction: column;
    }

    .about-image {
        min-height: 250px;
        width: 100%;
    }
}