:root {
    --primary: #B82329;
    --primary-dark: #9A1D22;
    --secondary: #264653;
    --dark: #1B2E35;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --text-main: #1E293B;
    --text-light: #475569;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand-logo {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(184, 35, 41, 0.3);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
    line-height: 1;
    letter-spacing: 0.5px;
}

.nav-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(184, 35, 41, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 35, 41, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.75rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(27, 46, 53, 0.85), rgba(38, 70, 83, 0.85)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 100px;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background-color: rgba(184, 35, 41, 0.2);
    border: 1px solid rgba(184, 35, 41, 0.5);
    color: var(--primary);
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-line {
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.section-tag h4 {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--dark);
    line-height: 1.3;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.75rem;
}

.feature-item span {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.125rem;
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header .section-tag {
    justify-content: center;
}

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

.service-card {
    grid-column: span 2;
    background-color: var(--light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    width: 72px;
    height: 72px;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.service-list i {
    color: var(--primary);
    margin-top: 6px;
    font-size: 0.875rem;
}

.service-card.wide {
    grid-column: span 3;
}

/* Projects */
.projects-section {
    padding: 100px 0;
    background-color: var(--dark);
    color: var(--white);
}

.projects-section .section-title {
    color: var(--white);
}

.projects-section .section-header {
    text-align: center;
}

.projects-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
}

.projects-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.projects-grid::-webkit-scrollbar-track {
    display: none;
}

.projects-grid::-webkit-scrollbar-thumb {
    display: none;
}

.project-wrapper {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
    scroll-snap-align: start;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,46,53,0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background-color: rgba(184, 35, 41, 0.3);
    border: 1px solid rgba(184, 35, 41, 0.5);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: bold;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.5rem;
    color: var(--white);
}

.project-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 64px;
    height: 64px;
    background-color: rgba(184, 35, 41, 0.9);
    backdrop-filter: blur(4px);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(184,35,41,0.6);
}

.project-card:hover .project-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Contact */
.contact-section {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(184,35,41,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text-light);
    font-weight: 600;
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--light);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184,35,41,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .nav-brand-title {
    color: var(--white);
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    margin: 20px 0;
    font-weight: 600;
}

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

.social-link {
    width: 48px;
    height: 48px;
    background-color: rgba(27,46,53,0.5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(27,46,53,0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    max-width: 1000px;
    width: 90%;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.modal-title {
    color: var(--white);
    margin-top: 32px;
    font-size: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 4rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-image img {
        height: 400px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card {
        grid-column: span 1;
    }
    .service-card.wide {
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active {
        display: flex;
        gap: 20px;
    }
    .nav-actions {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card, .service-card.wide {
        grid-column: span 1;
    }
    .project-wrapper {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}
