:root {
    --primary: #E60000;
    /* Vibrant Red */
    --primary-hover: #cc0000;
    --dark: #111111;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;

    --font-main: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-main);
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.text-highlight {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
}

/* Adjust based on logo aspect ratio */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
}

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

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    margin-top: 80px;
    /* Nav height */
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.badge {
    background: rgba(230, 0, 0, 0.2);
    border: 1px solid var(--primary);
    color: #ffcccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Categories */
.categories {
    background: var(--white);
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

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

.category-card {
    padding: 40px 20px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* Professionals - Dark Section */
.bg-marble-black {
    background-color: var(--dark);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/black-marble-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-content {
    flex: 1;
    text-align: left;
}

/* Ensure left align for these sections */

.visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-icon {
    font-size: 8rem;
    color: var(--light-grey);
    opacity: 0.1;
}

.big-icon-glow {
    font-size: 8rem;
    color: #25D366;
    filter: drop-shadow(0 0 20px rgba(37, 211, 102, 0.3));
    animation: float 3s ease-in-out infinite;
}

.check-list {
    list-style: none;
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.check-list li i {
    color: var(--primary);
}

.wa-action-block {
    margin-top: 30px;
}

.wa-note {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .mobile-reverse {
        flex-direction: column-reverse;
    }

    /* Icon on top/middle on mobile? Or simple stack */

    .bg-marble-black .text-content {
        text-align: center;
    }

    .wa-action-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


/* Technology Section */
.tech-section {
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.tech-content {
    max-width: 900px;
    margin: 0 auto;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    text-align: left;
}

.tech-list li {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.tech-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-highlight {
    background: var(--dark);
    color: var(--white);
    padding: 60px 40px 40px;
    border-radius: var(--radius);
    margin-top: 50px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tech-highlight p {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
}

.tech-highlight::before {
    content: '\f10d';
    /* quote-left icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -25px;
    left: 40px;
    font-size: 3rem;
    color: var(--primary);
    background: var(--dark);
    padding: 0 10px;
    border-radius: 5px;
}

/* Catalog Section */
/* Catalog Section */
.catalog-section {
    background: var(--light-grey);
}

.section-desc {
    text-align: center;
    margin: -30px auto 40px;
    color: var(--text-muted);
    max-width: 600px;
}

/* New Segmented Layout */
.catalog-segment {
    margin-bottom: 50px;
}

.catalog-segment:last-child {
    margin-bottom: 0;
}

.segment-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--primary);
    color: var(--dark);
    font-weight: 700;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look, or keep it? User didn't specify. Standard is usually visible or thin. */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
}

.horizontal-scroll-container .catalog-item {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    /* Reset grid specific constraints if any */
}

/* Keeping existing catalog-item styles but modified for flex */
.catalog-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    height: 100%;
    /* Ensure meaningful height */
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.catalog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.catalog-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    /* Pushes content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    /* Match the user's input style if desired, or keep normal */
}

.catalog-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    min-width: 280px;
    /* Match other items */
}

.cta-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-card p {
    margin-bottom: 20px;
    color: #ccc;
}

/* Projects Section */
.projects-section {
    background: var(--white);
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

/* Location Pro (Overhauled) */
.location-section-pro {
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
    background: var(--light-grey);
}

.location-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    min-height: 450px;
}

.location-text {
    flex: 1;
    padding: 50px;
}

.location-map {
    flex: 1.5;
    position: relative;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

.sub-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.location-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.location-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-box h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .location-card {
        flex-direction: column;
    }

    .location-map {
        height: 300px;
        min-height: 300px;
        flex: none;
    }

    .location-text {
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        height: 70px;
        padding: 0;
    }

    .nav-logo {
        height: 40px;
    }

    .mobile-menu-icon {
        display: block;
        color: var(--dark);
        font-size: 1.8rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
        text-align: center;
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-item {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    /* Hero */
    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
        /* Easier to read */
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-lg {
        width: 100%;
    }

    /* General Section adjustments */
    .section {
        padding: 50px 0;
        /* More compact */
    }

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

    /* Grids & Layouts */
    .flex-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .mobile-reverse {
        flex-direction: column-reverse;
    }

    /* Specific Section Tweaks */
    .bg-marble-black .text-content,
    .text-content {
        text-align: center;
        /* Center text on mobile for harmony */
        padding: 0 10px;
    }

    .check-list {
        display: inline-block;
        text-align: left;
        /* Keep list left valid inside centered block if preferred, or center it */
    }

    .check-list li {
        justify-content: flex-start;
    }

    .wa-action-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .big-icon,
    .big-icon-glow {
        font-size: 6rem;
        /* Smaller icons */
    }

    .whatsapp-card {
        padding: 40px 20px;
    }

    .big-wa-icon {
        font-size: 3.5rem;
    }

    .footer-grid {
        gap: 30px;
        grid-template-columns: 1fr;
        /* Stack footer cols */
        text-align: center;
    }

    .footer-col p,
    .footer-col a {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Footer override to account for location overlap if desired, else standard */
.main-footer {
    padding-top: 60px;
    margin-top: 0;
    background: #1a1a1a;
}

.center-content {
    text-align: center;
}

/* Helper */
/* Contact Form */
.contact-section {
    padding-bottom: 40px;
}

.contact-wrapper {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header h2 {
    text-align: center;
}

.contact-header h2::after {
    margin: 15px auto;
}

/* Align underline left */
.whatsapp-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.big-wa-icon {
    font-size: 4rem;
    color: #25D366;
    /* WhatsApp Green */
    margin-bottom: 20px;
}

.whatsapp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.whatsapp-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.wa-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

.pulse-btn {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    background-color: #25D366;
    /* WA Green */
    border: none;
}

.pulse-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* FAQ */
.faq-section {
    background: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-content {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    color: var(--primary);
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: #888;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    width: auto;
    max-width: 100%;
}

/* Make logo white if PNG is not transparent/white already */
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: auto;
    height: 40px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    color: var(--white);
    gap: 8px;
}

.social-links a:hover {
    color: var(--primary);
    background: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Developer Credit */
.developer-credit {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.developer-credit:hover {
    opacity: 1;
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.developer-credit a:hover {
    color: var(--primary);
}