/* Fonts */
@font-face {
    font-family: 'Makro Trial';
    src: url('fonts/MakroTrial-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Makro Trial';
    src: url('fonts/MakroTrial-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Brand Colors */
:root {
    --brand-red: #EC1211;
    --brand-red-hover: #C10F0E;
    --brand-gray: #333333;
}

/* Global Font */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* H1 Headers - Makro Trial */
h1 {
    font-family: 'Makro Trial', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
}

/* Background Color Overrides */
.bg-dark,
.navbar-dark.bg-dark {
    background-color: rgba(51, 51, 51, 0.6) !important;
}

.bg-black {
    background-color: var(--brand-gray) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('media/Images/Image 1.jpg') center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 150px;
}

.hero-buttons .btn {
    padding: 8px 20px;
    font-weight: 600;
    font-size: 1rem;
}

/* Navbar */
.nav-link.active {
    color: var(--brand-red) !important;
}

/* Navbar Logo */
.navbar-brand.logo-wide {
    width: 80%;
    max-width: 800px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 100px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(51, 51, 51, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card h3 {
    color: var(--brand-red);
}

.service-icon {
    display: inline-block;
    padding: 20px;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 8px;
}

.text-primary,
.bi.text-primary {
    color: var(--brand-red) !important;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.project-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.project-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-text {
    flex-grow: 1;
}

/* Project Gallery Modal */
#projectModal .modal-content {
    background-color: var(--brand-gray);
}

#projectModal .carousel-inner img {
    max-height: 70vh;
    object-fit: contain;
    background-color: #000;
}

#projectModal .carousel-control-prev-icon,
#projectModal .carousel-control-next-icon {
    background-color: var(--brand-red);
    border-radius: 50%;
    padding: 20px;
}

#projectModal .modal-header {
    border-bottom: 1px solid var(--brand-red);
}

/* Contact Section */
#contact.bg-dark {
    background-color: var(--brand-gray) !important;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info .bi {
    color: var(--brand-red);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Padding */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand.logo-wide {
        width: 80%;
        max-width: 400px;
    }

    .navbar-brand img {
        height: 80px;
    }
}