/**
 * Author: Shiva Sharan Shrestha
 * License: MIT
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Heroes Responsive */
.page-hero {
    min-height: clamp(40vh, 50vh, 60vh);
    height: auto;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(231, 76, 60, 0.95) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: calc(clamp(100px, 12vh, 140px) - var(--header-height)) 20px clamp(50px, 8vh, 80px);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Cpath d="M30 0L0 30M60 30L30 60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/%3E%3C/svg%3E');
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: clamp(12px, 2.5vw, 20px);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    margin: 0;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero {
        background-attachment: scroll;
        padding: calc(90px - var(--header-height)) 20px 50px;
        min-height: 45vh;
    }

    .page-hero .hero-content {
        padding: 0 15px;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 5.5vw, 2.8rem);
    }

    .page-hero p {
        font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    }
} 

@media (max-width: 480px) {
    .page-hero {
        padding: calc(80px - var(--header-height)) 15px 40px;
        min-height: 40vh;
    }

    .page-hero .hero-content {
        padding: 0 10px;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .page-hero p {
        font-size: clamp(0.9rem, 2vw, 1.05rem);
    }
}

/* Gallery Styles */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.gallery-filters .btn {
    border-radius: 999px;
    padding: 10px 26px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.gallery-filters .btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25);
}

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

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #101820;
    box-shadow: 0 12px 30px rgba(15, 23, 30, 0.18);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(15, 23, 30, 0.28);
}

.gallery-media {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 30, 0.75);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 30, 0.2) 0%, rgba(231, 76, 60, 0.92) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: white;
    padding: 24px;
    text-align: left;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.gallery-overlay button {
    align-self: flex-end;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gallery-overlay button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 16, 0.96);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal .modal-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.gallery-modal .modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-modal img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #0f1720;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-info {
    padding: 22px 24px;
    text-align: center;
}

.modal-info h3 {
    margin-bottom: 8px;
    color: #2c3e50;
}

.modal-info p {
    color: #666;
    margin: 0;
}

/* Projects Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 30, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(15, 23, 30, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
}

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

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

.project-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--status-color, #95a5a6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(15, 23, 30, 0.18);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 30, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e74c3c;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 12px 25px rgba(231, 76, 60, 0.35);
}

.project-info {
    padding: 24px;
}

.project-summary {
    color: #666;
    margin: 10px 0 18px;
    min-height: 54px;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
}

.project-stat {
    text-align: center;
}

.project-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.project-stat-budget {
    font-size: 1rem;
}

.project-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.project-detail {
    display: flex;
    align-items: center;
    color: #666;
    gap: 8px;
}

.project-detail i {
    color: #e74c3c;
    width: 16px;
}

.section-muted {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 220px;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .gallery-filters .btn {
        width: 100%;
        max-width: 320px;
    }

    .project-image img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item img {
        height: 200px;
    }

    .project-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

:root {
    --header-height: 120px; /* Adjust to match .header total height (top-bar + navbar) */
}

@media (max-width: 768px) {
    :root { --header-height: 90px; }
}

@media (max-width: 480px) {
    :root { --header-height: 80px; }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Prevent header from covering content on anchor navigation */
}

body {
    padding-top: var(--header-height); /* Prevent fixed header from overlapping content */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Ensure smooth scrolling with proper offset */
:target {
    scroll-margin-top: 120px;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
}

h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 500;
}

h5 {
    font-size: 1.4rem;
    font-weight: 500;
}

h6 {
    font-size: 1.2rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-secondary:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #e74c3c;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.top-bar {
    background: #2c3e50;
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: #e74c3c;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e74c3c;
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

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

.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 65vh;
    height: auto;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(231, 76, 60, 0.95) 100%),
                url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Cpath d="M30 0L0 30M60 30L30 60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/%3E%3C/svg%3E');
    background-size: cover, 60px 60px;
    background-position: center, center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 50px;
    scroll-margin-top: 80px; /* Prevents header from covering hero on anchor navigation */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    width: 100%;
    animation: fadeInUp 1s ease;
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.2rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-buttons .btn {
    padding: 16px 38px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Stats section responsive improvements */
.stats-section {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(25px, 5vw, 50px);
    padding: 0 30px;
}

.stat-item {
    text-align: center;
    color: white;
    padding: clamp(20px, 3vw, 35px) clamp(15px, 2.5vw, 25px);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.stat-number {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: clamp(8px, 2vw, 15px);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(0.9rem, 2.2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .stats-section {
        margin: 35px auto 0;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 340px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .stat-item {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: clamp(2.8rem, 8vw, 3.5rem);
    }

    .stat-label {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        padding: 0 15px;
        gap: 20px;
        max-width: 320px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: clamp(2.5rem, 7vw, 3rem);
    }

    .stat-label {
        font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    }
}

/* Section Styles */
.section {
    padding: clamp(60px, 10vh, 100px) 0;
    position: relative;
    scroll-margin-top: 100px; /* Prevents header from covering sections */
}

/* Section header responsive improvements */
.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vh, 60px);
    position: relative;
}

.section-subtitle {
    color: #e74c3c;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Project filters responsive */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 20px;
}

.project-filters .btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    min-width: 120px;
}

.project-filters .btn.active {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.project-filters .btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .project-filters .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .project-filters .btn {
        max-width: 240px;
        padding: 9px 18px;
        font-size: 0.8rem;
    }
}

/* About Section */
.about {
    scroll-margin-top: 100px;
}

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

.about-text h3 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.features-list i {
    color: #e74c3c;
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    top: -30px;
    right: -30px;
    background: #e74c3c;
    color: white;
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    scroll-margin-top: 100px;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="80" height="80" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h80v80H0z" fill="none"/%3E%3Ccircle cx="40" cy="40" r="1" fill="rgba(231,76,60,0.05)"/%3E%3C/svg%3E');
    opacity: 0.4;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(30px, 4vw, 45px);
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: clamp(35px, 5vw, 45px) clamp(28px, 4vw, 35px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 76, 60, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.2);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    color: white;
    position: relative;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 20px 45px rgba(231, 76, 60, 0.35);
}

.service-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.service-card h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.service-card p {
    margin-bottom: 25px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: #666;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.9), rgba(44, 62, 80, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay a {
    color: white;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-overlay a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    background: white;
}

.project-category {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    margin: 10px 0 15px;
}

/* ===== NEW RICH PROJECTS SECTION ===== */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-showcase-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.project-showcase-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(44, 62, 80, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.project-quick-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-meta-item i {
    color: #e74c3c;
    font-size: 0.9rem;
}

.project-status-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.project-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-status-badge i {
    font-size: 1rem;
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.project-category-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.project-category-tag i {
    font-size: 0.8rem;
}

.project-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.project-stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.stat-item {
    text-align: center;
    padding: 10px 5px;
}

.stat-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 5px;
}

.stat-value i {
    font-size: 1.2rem;
    color: #e74c3c;
}

.stat-value span {
    font-size: 0.9rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-details-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.detail-row i {
    color: #e74c3c;
    width: 16px;
    font-size: 0.9rem;
}

.detail-row strong {
    color: #2c3e50;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-view-btn,
.project-quote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-view-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #e74c3c;
}

.project-view-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.project-quote-btn {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.project-quote-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.no-projects-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 30px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.projects-cta {
    margin-top: 80px;
    text-align: center;
}

.cta-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cta-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== PROJECT STATUS SECTION ===== */

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 50px 0 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn .count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}

.tab-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Featured Project */
.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 50px;
    border: 1px solid #f0f0f0;
}

.project-featured .project-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.project-featured .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-featured:hover .project-image img {
    transform: scale(1.08);
}

.project-status {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
}

.status-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-badge.ongoing {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.25);
    height: 10px;
    border-radius: 5px;
    margin: 15px 0 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.progress-text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.project-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.project-header h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    gap: 35px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.project-meta span {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.project-meta i {
    color: #e74c3c;
    margin-right: 10px;
    font-size: 1.1rem;
}

.project-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.project-stats .stat {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.project-stats .stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-stats .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.3);
}

.project-stats .label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Ongoing Projects Grid */
.ongoing-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.ongoing-project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.ongoing-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.ongoing-project-card .card-header {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ongoing-project-card .card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.progress-ring {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #e74c3c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #e74c3c;
}

.progress-percent {
    font-size: 1.1rem;
    color: #e74c3c;
}

.card-content {
    padding: 25px;
}

.card-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-content .location,
.card-content .timeline {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-content i {
    color: #e74c3c;
    margin-right: 10px;
    width: 16px;
    font-size: 0.9rem;
}

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

.tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
}

/* Completed Projects */
.completed-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

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

.completed-project-card:hover {
    transform: translateY(-5px);
}

.completed-project-card .project-image {
    position: relative;
    height: 200px;
}

.completion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f39c12;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.completed-project-card .project-info {
    padding: 25px;
}

.completion-date {
    color: #2ecc71;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-brief {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.achievement i {
    color: #2ecc71;
    width: 16px;
}

/* Upcoming Projects Timeline */
.upcoming-projects-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 80px;
    bottom: -40px;
    width: 2px;
    background: #e1e8ed;
}

.timeline-date {
    text-align: center;
    padding: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    position: relative;
}

.timeline-date .month {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-date .year {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.timeline-content .location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content .location i {
    color: #e74c3c;
    margin-right: 8px;
}

.timeline-content .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.highlight {
    padding: 6px 12px;
    background: #f8f9fa;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Ccircle cx="30" cy="30" r="0.8" fill="rgba(231,76,60,0.04)"/%3E%3C/svg%3E');
    opacity: 0.6;
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    margin-bottom: 35px;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #2c3e50;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 28px 25px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.2);
}

.contact-item i {
    color: #e74c3c;
    font-size: 2rem;
    margin-right: 25px;
    margin-top: 5px;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.15);
}

.contact-item div h5 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-item div span {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}


.contact-form {
    background: white;
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.08);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 20px 55px rgba(231, 76, 60, 0.12);
}

.contact-form h3 {
    margin-bottom: 35px;
    font-size: clamp(1.7rem, 4vw, 2rem);
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    color: #2c3e50;
    font-weight: 800;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    word-wrap: break-word;
    hyphens: auto;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 80px;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 80px 0 40px;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #e74c3c;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 40px;
    margin-right: 15px;
}

.footer-logo h3 {
    color: white;
    margin: 0;
}

.footer .social-links {
    margin-top: 25px;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}

.footer .contact-item {
    margin-bottom: 20px;
}

.footer .contact-item i {
    color: #e74c3c;
    margin-right: 15px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* ===== RESPONSIVE DESIGN GLOBAL OPTIMIZATION ===== */

/* Base Responsive Improvements */
@media (max-width: 1400px) {
    .container {
        max-width: 95%;
        padding: 0 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .project-modal-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Devices */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

/* Medium Devices */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    /* Header */
    .top-bar {
        display: none !important;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Mobile menu backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(44, 62, 80, 0.85);
        backdrop-filter: blur(4px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu.active::before {
        opacity: 1;
    }

    /* Individual nav item animations - only in mobile menu */
    .nav-menu .nav-item {
        transform: translateX(-30px);
        opacity: 0;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }

    .nav-menu.active .nav-item {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.4s; }

    .nav-item {
        margin: 0;
        text-align: center;
        padding: 0;
    }

    .nav-item a {
        display: block;
        padding: 15px 20px;
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }

    .nav-item a:hover,
    .nav-item a.active {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        border-left-color: #ffffff;
        transform: translateX(5px);
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero {
        min-height: 55vh;
        padding: 90px 20px 35px;
        background-attachment: scroll;
    }

    .hero::before,
    .hero::after {
        opacity: 0.5;
        width: 400px;
        height: 400px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: clamp(1rem, 3vw, 1.15rem);
        margin-bottom: 1.8rem;
        line-height: 1.6;
    }

    .hero-content {
        margin-bottom: 35px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .hero-buttons .btn {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    /* Sections */
    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-badge {
        position: static;
        margin: 20px auto 0;
        width: 120px;
        height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Small Devices */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.5rem;
    }

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

    /* Header */
    .navbar {
        padding: 10px 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px;
        margin-right: 10px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Hero */
    /* Hero */
    .hero {
        min-height: 50vh;
        padding: 85px 15px 30px;
        background-attachment: scroll;
    }

    .hero::before,
    .hero::after {
        opacity: 0.3;
        width: 300px;
        height: 300px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5.5vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-content {
        margin-bottom: 25px;
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 13px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-description {
        font-size: 1.1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 250px;
    }

    /* Contact */
    .contact-form {
        padding: 30px 20px;
    }

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

    .footer-main {
        padding: 60px 0 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    /* Newsletter */
    .newsletter-section {
        padding: 40px 0;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

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

    /* Header */
    .nav-content {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-extras .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        min-height: 45vh;
        padding: 75px 10px 25px;
        background-attachment: scroll;
    }

    .hero::before,
    .hero::after {
        opacity: 0.2;
        width: 250px;
        height: 250px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        line-height: 1.3;
    }

    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .hero-content {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-buttons {
        gap: 12px;
        margin-top: 1.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 240px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Services */
    .service-card {
        padding: 25px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Back to top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 75px 20px 30px;
    }

    .hero::before,
    .hero::after {
        opacity: 0.4;
        width: 350px;
        height: 350px;
    }

    .stats-section {
        margin: 30px auto 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }

    .section {
        padding: 20px 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }

    .project-card,
    .service-card {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }

    .btn-secondary {
        border-color: #000;
        color: #000;
    }

    .nav-link {
        color: #000;
    }

    .service-icon {
        background: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: #2c3e50;
        color: white;
    }

    .contact-form {
        background: #2c3e50;
        color: white;
    }


    .contact-form p,
    .contact-form h3,
    .form-group label,
    .checkbox-label,
    .checkbox-label a,
    .contact-social h5 {
        color: rgba(255, 255, 255, 0.95);
    }

    /* Force Contact Information heading to be visible on all backgrounds */
    .contact-info-section h3 {
        color: #1a2233 !important;
        background: #fff !important;
        font-weight: 900 !important;
        text-shadow: none !important;
        font-size: 2rem !important;
        padding: 4px 16px 4px 8px;
        border-radius: 6px;
        margin-bottom: 18px;
        display: inline-block;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #34495e;
        color: white;
        border-color: #4a5568;
    }

    /* make placeholders slightly dimmer but readable */
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    /* checkbox text and links */
    /* checkbox styles removed (markup removed from contact form) */

    /* ensure icon colors contrast */
    .contact-item i,
    .contact-social .social-links a {
        color: #e74c3c;
    }
}

/* Team member-specific styles removed per project request */


/* Contributor images styling (applies site-wide to service cards) */
.services-grid .service-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    background: #ffffff;
    border: 4px solid #e74c3c; /* apply accent border consistently */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.services-grid .service-card img:hover {
    transform: scale(1.05);
    border-color: #c0392b;
}

/* Improve contrast for the hero stats (Projects Completed / Years Experience / Happy Clients)
   so labels and numbers are readable against the dark hero background. This targets
   the stats when placed inside the hero section without affecting other stat blocks. */
.hero .stats-grid .stat-item {
    background: rgba(255, 255, 255, 0.04);
}

.hero .stats-grid .stat-number {
    color: #e74c3c;
    /* keep accent color for numbers */
}

.hero .stats-grid .stat-label {
    color: rgba(255, 255, 255, 0.95);
}


/* ================================
   ENHANCED STATISTICS STYLES
   ================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   ENHANCED CALL TO ACTION STYLES
   ================================ */
.cta-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.process-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.process-card p {
    color: #666;
    margin-bottom: 25px;
}

.cta-button:hover {
    background: white;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ================================
   AWARD CARDS STYLES
   ================================ */
.award-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.award-card:hover {
    border-color: #e74c3c;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.2);
}

.award-card:hover::before {
    left: 100%;
}

.award-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.award-card:hover .award-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.award-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.award-description {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Footer Improvements - Compact Version */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 15px;
    /* Reduced padding */
    font-size: 0.85rem;
    /* Slightly smaller font */
}

.newsletter-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 25px 30px;
    /* Reduced padding */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    /* Reduced margin */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 3px;
    font-size: 1.3rem;
    /* Smaller heading */
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #34495e;
    transform: translateY(-2px);
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e74c3c;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85rem;
}

/* Footer contact info visibility and compact spacing */
.footer .newsletter-section {
    padding: 20px 24px;
    margin-bottom: 28px;
}

.footer .newsletter-content h3 {
    font-size: 1.2rem;
}

.footer .newsletter-content p {
    font-size: 0.95rem;
}

.footer .contact-item {
    background: transparent;
    padding: 6px 0;
    margin-bottom: 10px;
    box-shadow: none;
    border: none;
}

.footer .contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer .contact-item i {
    color: #e74c3c;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Projects Page Complete Responsive Design */
.projects-page {
    padding: 20px 0;
}

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

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.project-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--status-color, #95a5a6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.project-overlay a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-overlay a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.project-stat {
    text-align: center;
    padding: 10px 0;
}

.project-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
}

.project-stat-budget {
    font-size: 1rem;
}

.project-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.project-detail {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    gap: 8px;
    line-height: 1.4;
}

.project-detail i {
    color: #e74c3c;
    width: 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .projects-page {
        padding: 15px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }
    
    .project-card {
        border-radius: 15px;
        margin: 0 10px;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-info h4 {
        font-size: 1.2rem;
    }
    
    .project-summary {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .project-stats-grid {
        padding: 15px;
        gap: 12px;
    }
    
    .project-stat-value {
        font-size: 1.2rem;
    }
    
    .project-detail {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        margin: 0 -5px;
    }
    
    .project-card {
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 18px;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .project-summary {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .project-stats-grid {
        padding: 12px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }
    
    .project-stat {
        padding: 8px 0;
    }
    
    .project-stat-value {
        font-size: 1.1rem;
    }
    
    .project-stat-budget {
        font-size: 0.9rem;
    }
    
    .project-stat-label {
        font-size: 0.75rem;
    }
    
    .project-details {
        gap: 8px;
        padding-top: 12px;
    }
    
    .project-detail {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .project-status-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .project-overlay a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .project-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .project-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 6px 0;
    }
    
    .project-stat-value {
        margin-bottom: 0;
    }
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-section {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .nav-menu {
        display: none;
        /* Mobile menu handling needed */
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: white;
    z-index: 999;
    transform: translateX(100%);
    transition: 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-nav-menu a {
    font-size: 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.mobile-nav-menu a.active {
    color: #e74c3c;
}

/* CTA Section Responsive Design */
.cta-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 8vw, 80px) 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    color: white;
    margin-bottom: clamp(15px, 3vw, 25px);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(20px, 4vw, 30px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: clamp(12px, 3vw, 16px) clamp(25px, 5vw, 35px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: white;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .cta-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cta-content {
        padding: 0 10px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== RESPONSIVE DESIGN FOR NEW PROJECTS SECTION ===== */
@media (max-width: 768px) {
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .project-showcase-card {
        margin: 0 10px;
    }

    .project-image-container {
        height: 220px;
    }

    .project-content {
        padding: 20px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .stat-item {
        padding: 8px 5px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-value i {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .project-actions {
        flex-direction: column;
        gap: 10px;
    }

    .project-view-btn,
    .project-quote-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .project-meta-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .project-status-badge {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .detail-row {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .projects-showcase {
        gap: 20px;
        margin-top: 30px;
    }

    .project-showcase-card {
        margin: 0 5px;
    }

    .project-image-container {
        height: 180px;
    }

    .project-content {
        padding: 15px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-stats-overview {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .stat-item {
        padding: 6px 5px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-value i {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .project-actions {
        gap: 8px;
    }

    .project-view-btn,
    .project-quote-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .project-meta-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .project-status-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .detail-row {
        font-size: 0.75rem;
    }

    .empty-state h3 {
        font-size: 1.5rem;
    }

    .empty-state p {
        font-size: 1rem;
    }
}

/* ================================
   RESPONSIVE FIXES (PROJECTS + GALLERY)
   ================================ */
.projects-page .project-summary {
    min-height: 0;
}

.projects-page .project-details {
    gap: 8px;
}

.projects-page .project-detail {
    align-items: flex-start;
    flex-wrap: wrap;
    word-break: break-word;
}

/* PROJECT MODAL ENHANCED RESPONSIVE DESIGN */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    backdrop-filter: blur(5px);
}

.project-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: min(1000px, 98vw);
    max-height: 95vh;
    width: 100%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.project-modal .main-image {
    position: relative;
    width: 100%;
}

.project-modal .main-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    background: #f8f9fa;
}

.project-modal .image-thumbnails {
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
}

.project-modal .image-thumbnails img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
}

.project-modal .image-thumbnails img:hover,
.project-modal .image-thumbnails img.active {
    border-color: #e74c3c !important;
    transform: scale(1.05) !important;
}

.project-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-modal .modal-close:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.project-modal .modal-info {
    padding: clamp(16px, 3vw, 30px);
}

.project-modal .project-stats-modal {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 15px !important;
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid rgba(231, 76, 60, 0.1) !important;
}

.project-modal .details-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.project-modal .detail-item {
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    font-size: clamp(13px, 2.5vw, 14px) !important;
    word-break: break-word;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.project-modal .detail-item strong {
    display: inline-block;
    color: #2c3e50;
    margin-right: 8px;
}

.project-modal .detail-item span {
    color: #666;
}

/* Modal responsive breakpoints */
@media (max-width: 900px) {
    .project-modal .project-stats-modal {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .project-modal .image-thumbnails {
        justify-content: center !important;
    }
    
    .project-modal .image-thumbnails img {
        width: 70px !important;
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    .project-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .project-modal .modal-content {
        max-width: 95vw;
        border-radius: 15px;
    }
    
    .project-modal .main-image img {
        max-height: 40vh;
        border-radius: 15px 15px 0 0;
    }
    
    .project-modal .project-stats-modal {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .project-modal .modal-info {
        padding: 16px !important;
    }
    
    .project-modal .image-thumbnails {
        padding: 12px 16px !important;
        gap: 6px !important;
        overflow-x: auto !important;
    }
    
    .project-modal .image-thumbnails img {
        width: 60px !important;
        height: 45px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 576px) {
    .project-modal {
        padding: 2px;
        padding-top: 10px;
    }
    
    .project-modal .modal-content {
        max-width: 98vw;
        margin: 10px auto;
        border-radius: 12px;
    }
    
    .project-modal .main-image img {
        max-height: 35vh;
        border-radius: 12px 12px 0 0;
    }
    
    .project-modal .project-stats-modal {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 10px !important;
        margin: 15px 0 !important;
    }
    
    .project-modal .modal-info {
        padding: 12px !important;
    }
    
    .project-modal .image-thumbnails {
        padding: 10px 12px !important;
        gap: 4px !important;
        justify-content: center !important;
    }
    
    .project-modal .image-thumbnails img {
        width: 50px !important;
        height: 38px !important;
    }
    
    .project-modal .detail-item {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .project-modal .detail-item strong {
        display: block !important;
        margin-bottom: 4px !important;
        margin-right: 0 !important;
    }
    
    .project-modal .modal-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 10px;
        right: 15px;
    }
}

/* Additional modal styles */
.project-modal .stat-item-modal {
    text-align: center;
}

.project-modal .stat-value-modal {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.project-modal .stat-label-modal {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-modal .details-heading {
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    font-size: clamp(1rem, 3vw, 1.3rem);
}

.project-modal .details-heading i {
    margin-right: 10px;
    color: #e74c3c;
}

.project-modal .project-details-modal {
    background: #fff;
    padding: clamp(15px, 4vw, 25px);
    border-radius: 10px;
    border: 1px solid #eee;
    margin: 20px 0;
}

.project-modal .modal-cta-btn {
    width: 100%;
    margin-top: 20px;
    padding: clamp(10px, 3vw, 15px) clamp(20px, 5vw, 30px);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 900px) {
    .project-modal .project-stats-modal {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .project-modal .image-thumbnails {
        justify-content: center;
    }
    
    .project-modal .image-thumbnails img {
        width: 70px !important;
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    .project-modal .modal-content {
        max-width: 95vw;
        margin: 20px auto;
    }
    
    .project-modal .main-image img {
        max-height: 40vh;
    }
    
    .project-modal .project-stats-modal {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .project-modal .modal-info {
        padding: 16px !important;
    }
    
    .project-modal .image-thumbnails {
        padding: 12px 16px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .project-modal .image-thumbnails img {
        width: 60px !important;
        height: 45px !important;
        border-radius: 6px;
    }
    
    /* Gallery responsive fixes */
    .gallery-overlay {
        position: static;
        opacity: 1;
        background: #ffffff;
        color: #2c3e50;
        padding: 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    .gallery-info h4 {
        color: #2c3e50;
        margin-bottom: 6px;
    }

    .gallery-info p {
        color: #666;
    }

    .gallery-overlay button {
        background: #e74c3c;
        border-color: #e74c3c;
    }
}

@media (max-width: 576px) {
    .project-modal {
        padding: 5px;
    }
    
    .project-modal .modal-content {
        max-width: 98vw;
        margin: 10px auto;
        border-radius: 12px;
    }
    
    .project-modal .main-image img {
        max-height: 35vh;
        border-radius: 12px 12px 0 0;
    }
    
    .project-modal .project-stats-modal {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 10px !important;
        margin: 15px 0 !important;
    }
    
    .project-modal .modal-info {
        padding: 12px !important;
    }
    
    .project-modal .image-thumbnails {
        padding: 10px 12px;
        gap: 4px;
        justify-content: center;
    }
    
    .project-modal .image-thumbnails img {
        width: 50px !important;
        height: 38px !important;
    }
    
    .project-modal .detail-item {
        padding: 10px !important;
        font-size: 13px;
    }
    
    .project-modal .detail-item strong {
        display: block;
        margin-bottom: 4px;
        min-width: auto;
    }
    
    /* Gallery mobile fixes */
    .gallery-item img {
        aspect-ratio: 1 / 1;
    }

    .gallery-overlay {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-overlay button {
        align-self: flex-start;
        margin-top: 12px;
    }
}

/* ===== FINAL RESPONSIVE POLISH ===== */

/* Ultra-responsive design for all screen sizes */
@media (max-width: 350px) {
    .project-modal-thumbnail {
        height: 60px !important;
        border-radius: 6px;
    }
    
    .project-stat-value {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .project-stat-label {
        font-size: 0.7rem;
        color: #666;
    }
    
    .page-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        line-height: 1.3;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Final mobile-first approach */
@media (max-width: 767px) {
    /* Force responsive behavior */
    * {
        box-sizing: border-box;
    }
    
    .responsive-card {
        width: 100% !important;
        margin: 0 auto 20px;
        display: flex;
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .project-info {
        width: 100%;
        flex: 1 1 auto;
        padding: 15px;
    }
}