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

:root {
    --primary-red: #b70101;
    --dark-red: #8a0000;
    --light-gray: #f5f5f5;
    --medium-gray: #555;
    --dark-gray: #333;
    --border-gray: #ddd;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    width: 100%;
    font-weight: 400;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Main Header */
.main-header {
    background: white;
    border-bottom: 3px solid var(--primary-red);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
    justify-content: center;
}

.header-title-line {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-gray);
    line-height: 1.1;
}

.header-title-line.line-1 {
    font-size: 1.4rem;
}

.header-title-line.line-2 {
    font-size: 1.6rem;
    color: var(--primary-red);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.header-contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header-contact-item:hover {
    color: var(--primary-red);
}

.header-contact-item i {
    font-size: 1rem;
    color: var(--primary-red);
}

.header-service {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-style: italic;
}

.header-service i {
    font-size: 1rem;
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 150px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(183,1,1,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(183,1,1,0.08) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    opacity: 0.95;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(183, 1, 1, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-red);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    background: white;
    padding: 60px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-top: 10px;
}

/* Services Section */
.services {
    background: var(--light-gray);
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: 3.75rem;
    line-height: 1.6;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 35px rgba(183, 1, 1, 0.15);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Specialties Section */
.specialties {
    background: white;
    padding: 80px 20px;
}

.specialties-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 1fr;
}

.specialty-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.specialty-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.specialty-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    min-width: 30px;
}

.specialty-item span {
    color: var(--dark-gray);
    font-size: 1.05rem;
}

/* Featured Projects Carousel */
.featured-projects {
    background: white;
    padding: 80px 20px;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--light-gray);
    align-items: stretch;
    min-height: 500px;
}

.carousel-slide-content {
    padding: 60px 60px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-slide-image {
    background: linear-gradient(135deg, var(--medium-gray), var(--dark-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.carousel-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-slide-image i {
    font-size: 8rem;
    opacity: 0.7;
}

.carousel-slide h3 {
    font-size: 1.75rem;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.carousel-slide p {
    font-size: 1.0625rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.carousel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.carousel-tag {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-red);
    font-weight: 600;
    border: 2px solid var(--primary-red);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 10px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-red);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(183, 1, 1, 0.5);
}

.carousel-indicator:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.carousel-indicator.active {
    background: var(--primary-red);
    width: 30px;
    border-radius: 6px;
}

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

.carousel-action .btn {
    display: inline-block;
}

/* About Section */
.about {
    background: var(--dark-gray);
    color: white;
    padding: 80px 20px;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(183, 1, 1, 0.2), rgba(183, 1, 1, 0.4));
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-photo i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
    font-weight: 700;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    text-align: left;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.credential-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.credential-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.credential-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Contact Section */
.contact {
    background: var(--light-gray);
    padding: 80px 20px;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.contact-map-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 500px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-details-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: left;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.contact-detail-item i {
    font-size: 1.3rem;
    color: var(--primary-red);
    min-width: 30px;
    width: 30px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-detail-item-content {
    flex: 1;
}

.contact-detail-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    line-height: 1.4;
}

.contact-detail-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9375rem;
}

.contact-detail-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-detail-item a:hover {
    color: #c62828;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-map-wrapper {
        height: 350px;
    }

    .contact-details-box {
        padding: 30px;
        height: auto;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Sticky Navigation Header */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1002;
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    box-sizing: border-box;
}

.sticky-nav.active {
    display: flex;
}

.sticky-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.sticky-nav-logo img {
    width: 40px;
    height: 40px;
}

.sticky-nav-logo .highlight {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .sticky-nav {
        justify-content: flex-start;
    }

    .sticky-nav-logo {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .sticky-nav {
        padding: 12px 15px;
        gap: 12px;
    }

    .sticky-nav-logo {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-left: 0;
    }

    .sticky-nav-logo img {
        width: 35px;
        height: 35px;
    }
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: none;
    box-sizing: border-box;
}

.sticky-nav.active ~ .mobile-nav-menu {
    display: block;
}

.mobile-nav-menu.active {
    transform: translateY(0);
}

.mobile-nav-menu a {
    display: block;
    padding: 15px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:last-child {
    border-bottom: none;
}

.mobile-nav-menu a:hover {
    color: var(--primary-red);
    padding-left: 25px;
}

.mobile-nav-menu a i {
    margin-right: 10px;
    width: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(183, 1, 1, 0.4);
    transition: all 0.3s ease;
}

/* Only apply hover effects on devices that support hover (not touch devices) */
@media (hover: hover) and (pointer: fine) {
    .back-to-top-btn:hover {
        background: var(--dark-red);
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(183, 1, 1, 0.6);
    }
}

/* Add active state for touch feedback on mobile */
.back-to-top-btn:active {
    transform: scale(0.95);
}

/* Move back-to-top button above cookie banner when banner is visible */
.back-to-top.cookie-banner-visible {
    bottom: 140px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Adjust for cookie banner on mobile */
    .back-to-top.cookie-banner-visible {
        bottom: 180px;
    }
}

@media (max-width: 480px) {
    /* Adjust for cookie banner on very small screens */
    .back-to-top.cookie-banner-visible {
        bottom: 200px;
    }
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.designer-credit {
    margin-top: 10px;
}

.designer-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 8px
        ),
        rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.designer-badge:hover {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 2px,
            transparent 2px,
            transparent 8px
        ),
        rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.designer-badge a {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.designer-badge a:hover {
    color: #ff6666;
}

/* Navigation Button to Projects */
.projects-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.projects-nav .btn {
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(183, 1, 1, 0.4);
}

/* Move projects-nav button above cookie banner when banner is visible */
.projects-nav.cookie-banner-visible {
    bottom: 140px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.cookie-banner .btn {
    flex-shrink: 0;
    padding: 10px 25px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    .cookie-banner p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cookie-banner .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px 15px;
        gap: 12px;
    }

    .cookie-banner p {
        font-size: 0.8rem;
    }

    .cookie-banner .btn {
        max-width: 100%;
        padding: 11px 18px;
        font-size: 0.8rem;
    }

    /* Extra safeguards for very small screens */
    .main-header {
        padding: 15px 15px;
    }

    .hero {
        padding: 100px 15px;
    }

    .stats,
    .services,
    .specialties,
    .featured-projects,
    .about,
    .contact {
        padding: 60px 15px;
    }

    .back-btn {
        display: none;
    }

    .back-to-top {
        right: 15px;
    }

    .projects-nav {
        right: 15px;
    }

    /* Adjust projects-nav for cookie banner on very small screens */
    .projects-nav.cookie-banner-visible {
        bottom: 200px;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Header mobile styles */
    .main-header {
        padding: 15px 20px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .header-left {
        justify-content: center;
        gap: 15px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .header-title-line.line-1 {
        font-size: 1.1rem;
    }

    .header-title-line.line-2 {
        font-size: 1.3rem;
    }

    .header-right {
        align-items: center;
    }

    .header-contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-contact-item {
        font-size: 0.9rem;
    }

    .header-service {
        font-size: 0.85rem;
    }

    /* Hero mobile styles */
    .hero {
        padding: 100px 20px;
    }

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

    .hero .tagline {
        font-size: 1.1rem;
    }

    .cta-buttons {
        gap: 15px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .projects-nav {
        bottom: 20px;
        right: 20px;
    }

    /* Adjust projects-nav for cookie banner on mobile */
    .projects-nav.cookie-banner-visible {
        bottom: 180px;
    }

    .about-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-photo {
        margin: 0 auto;
    }

    .about-text h2,
    .about-text p {
        text-align: center;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .carousel-slide-content {
        padding: 40px 30px;
    }

    .carousel-slide-image {
        min-height: 300px;
        height: auto;
    }

    .carousel-slide-image i {
        font-size: 5rem;
    }

    .carousel-slide h3 {
        font-size: 1.375rem;
    }

    .carousel-slide p {
        font-size: 0.9375rem;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Page Transition */
.page {
    display: block;
}

.page.hidden {
    display: none;
}

/* Projects Page Styles */
.projects-page {
    min-height: 100vh;
    background: var(--light-gray);
}

.projects-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('images/projects-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.projects-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    background: white;
    color: var(--primary-red);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* Move back button down when sticky nav is active */
body.sticky-nav-active .back-btn {
    top: 90px;
}

.filters {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--dark-gray);
}

.filter-btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

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

.projects-grid {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(183, 1, 1, 0.2);
}

.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--medium-gray), var(--dark-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-image i {
    font-size: 4rem;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--dark-gray);
    font-weight: 700;
    line-height: 1.3;
}

.project-description {
    color: var(--medium-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    padding: 6px 15px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-red);
    font-weight: 600;
}

.project-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-red);
    color: white;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.project-category-badge i {
    margin-right: 6px;
    font-size: 0.75rem;
}
