/* ============================================
   Aurora Mechanical — Main Stylesheet
   Single-page layout · Bootstrap 5.3
   ============================================ */

/* --- Custom Properties --- */
:root {
    --primary: #003366;
    --primary-dark: #002244;
    --accent: #f4a261;
    --accent-hover: #e76f51;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.3s ease;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fafbfc;
    color: #333;
    line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--primary) !important;
    padding: 0.6rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.navbar-logo {
    height: 36px;
    opacity: 0.95;
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    opacity: 1;
}

.navbar.scrolled .navbar-logo {
    height: 30px;
}

/* --- Custom Hamburger Menu (YouTube style) --- */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0;
    gap: 5px;
    flex-shrink: 0;
    order: -1;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu:hover .hamburger-line {
    background-color: var(--accent);
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* --- Hero Carousel --- */
.hero-carousel {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    min-height: 85vh;
}

.hero-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-carousel .carousel-item.active img {
    transform: scale(1.05);
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 34, 68, 0.7) 0%,
        rgba(0, 34, 68, 0.5) 40%,
        rgba(0, 34, 68, 0.7) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero slide labels */
.hero-slide-label {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Hero carousel indicators */
.hero-carousel .carousel-indicators {
    bottom: 1.25rem;
    left: 1.5rem;
    right: auto;
    margin: 0;
    z-index: 3;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Hero carousel arrows */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background-size: 40%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Feature Cards --- */
.feature-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

/* --- Stat Cards --- */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Sections --- */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-alt {
    background-color: #f4f6f8;
}

.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* --- Portfolio Carousel --- */
.portfolio-landing {
    overflow: hidden;
}

.portfolio-landing-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 2rem 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
                box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
}

.carousel-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.carousel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.carousel-card:hover img {
    transform: scale(1.06);
}

.carousel-card-body {
    padding: 0.85rem 1rem;
}

/* --- Team Players --- */
.team-player-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.team-player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dfe6ee 0%, #cfd8e2 100%);
    color: #6b7785;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0.9;
}

.carousel-arrow:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 0.75rem;
}

.carousel-arrow-right {
    right: 0.75rem;
}

/* Fade edges behind arrows */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(250,251,252,0.95), transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(250,251,252,0.95), transparent);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-links h5 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* --- Forms --- */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.15);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: none;
}

.invalid-feedback {
    font-size: 0.8rem;
    color: #dc3545;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.contact-form-disabled-card {
    background: #f3f4f6;
    border: 1px solid #d6dae1;
}

.contact-form-disabled-banner {
    background: #e3e6ea;
    border: 1px solid #c9cfd8;
    border-radius: 10px;
    color: #495057;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
}

.contact-form-disabled-banner a {
    color: var(--primary);
    font-weight: 600;
}

.contact-form-status {
    display: inline-block;
    background: #c2c8d0;
    border-radius: 999px;
    color: #2f3944;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.7rem;
    text-transform: uppercase;
}

.contact-form-disabled-fields {
    opacity: 0.55;
}

.contact-form-disabled-fields .form-control,
.contact-form-disabled-fields .form-select,
.contact-form-disabled-fields .btn {
    background: #e9ecef;
    border-color: #d0d5db;
    color: #6c757d;
    cursor: not-allowed;
}

.contact-form-disabled-fields .btn {
    box-shadow: none;
}

/* --- Alerts --- */
.alert {
    border-radius: 8px;
    border: none;
    padding: 0.85rem 1.1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Contact Info --- */
.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Job Detail Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup-overlay.is-visible {
    display: flex;
}

.popup-overlay.is-open {
    opacity: 1;
}

.popup-card {
    position: relative;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
}

.popup-overlay.is-open .popup-card {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.popup-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.popup-gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.65rem;
    pointer-events: none;
}

.popup-gallery-btn {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-gallery-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.popup-gallery-dots {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    margin: 0.5rem 0 0;
}

.popup-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4dbe2;
}

.popup-gallery-dot.active {
    background: var(--accent);
}

.popup-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Lock page scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* --- Utility --- */
.rounded-card {
    border-radius: 12px;
}

/* --- Error Page --- */
.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet and below */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        min-height: 75vh;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section {
        padding: 3rem 0;
    }

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

/* Mobile */
@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 60px;
    }

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        min-height: 65vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-slide-label {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

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

    .carousel-card {
        flex: 0 0 240px;
    }

    .carousel-card img {
        height: 150px;
    }

    .carousel-track {
        padding: 0.5rem 1rem 1.25rem;
        gap: 1rem;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 40px;
    }

    .btn-lg {
        padding: 0.6rem 1.1rem;
        font-size: 0.95rem;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .popup-img {
        height: 200px;
    }

    .popup-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .site-footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
    }

    .hero-buttons .btn + .btn {
        margin-top: 0.75rem;
    }

    .carousel-card {
        flex: 0 0 200px;
    }

    .carousel-card img {
        height: 120px;
    }

    .carousel-card-body {
        padding: 0.65rem 0.75rem;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .carousel-arrow-left { left: 0.4rem; }
    .carousel-arrow-right { right: 0.4rem; }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 30px;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-message {
        font-size: 1.15rem;
    }
}

/* ============================================
   Desktop Enhancements
   ============================================ */

/* Desktop and above */
@media (min-width: 992px) {
    .section {
        padding: 5rem 0;
    }

    /* Hero — centered for desktop impact */
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        min-height: 90vh;
    }

    .hero-content {
        text-align: center;
        max-width: 740px;
        margin: 0 auto;
        padding: 3rem 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Logo — larger on desktop */
    .navbar-logo {
        height: 42px;
    }

    .navbar.scrolled .navbar-logo {
        height: 34px;
    }

    /* Nav links — more breathing room */
    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    /* Feature cards */
    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    /* Portfolio carousel — larger cards */
    .carousel-card {
        flex: 0 0 320px;
    }

    .carousel-card img {
        height: 210px;
    }

    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 80px;
    }

    /* Stats — more visual weight */
    .stat-card {
        padding: 1.75rem 1.25rem;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Contact */
    .contact-info-card {
        padding: 2.25rem;
    }

    /* Popup — larger on desktop */
    .popup-card {
        max-width: 600px;
    }

    .popup-img {
        height: 320px;
    }

    /* Footer — right-align links */
    .footer-links {
        text-align: right;
    }

    .site-footer {
        padding: 3.5rem 0 1.5rem;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .section {
        padding: 5.5rem 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Portfolio carousel */
    .carousel-card {
        flex: 0 0 340px;
    }

    .carousel-card img {
        height: 230px;
    }

    .carousel-card-body {
        padding: 1rem 1.15rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 2.25rem 1.75rem;
        border-radius: 14px;
    }

    .feature-icon {
        width: 62px;
        height: 62px;
        font-size: 1.5rem;
        border-radius: 14px;
    }

    /* Stats */
    .stat-card {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    /* Contact */
    .contact-info-card {
        padding: 2.5rem;
        border-radius: 14px;
    }

    .contact-info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Popup */
    .popup-card {
        max-width: 660px;
    }

    .popup-img {
        height: 360px;
    }

    .popup-body {
        padding: 1.5rem 2rem 2rem;
    }
}

/* Extra-large desktop */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.2rem;
    }

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

    .hero-subtitle {
        max-width: 640px;
    }

    .carousel-card {
        flex: 0 0 360px;
    }

    .carousel-card img {
        height: 250px;
    }

    .section {
        padding: 6rem 0;
    }

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