:root {
    --primary-black: #111111;
    --primary-red: #d90429;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none !important;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-red) !important;
    padding-left: 5px;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
}

.btn-outline:hover {
    background: var(--primary-black);
    color: var(--white);
    transform: translateY(-3px);
}

/* Header & Navigation */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 0;
}

header .nav-links a {
    color: var(--white);
}

header .header-phone {
    color: var(--white);
}

header .mobile-menu-btn {
    color: var(--white);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

header.scrolled .nav-links a {
    color: var(--primary-black);
}

header.scrolled .header-phone {
    color: var(--primary-black);
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-black);
}

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

.logo img, .logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo img, 
header.scrolled .logo-img {
    height: 50px;
}

/* Footer Styles */
footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 55px; /* More compact logo */
    width: auto;
    object-fit: contain;
    object-position: left;
    margin-bottom: 15px;
    display: block;
}

.footer-col p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem; /* Smaller text */
}

.footer-col h3 {
    font-size: 1.1rem; /* Smaller headings */
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

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

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

.footer-links a {
    color: #bbb;
    font-size: 0.9rem; /* Smaller links */
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

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

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 13px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.85rem;
}

header.scrolled .logo img {
    /* No filter needed as requested */
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px; /* Normalized size for better alignment */
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-red) !important;
}

.mobile-menu-btn {
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(15px);
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    color: var(--primary-black) !important;
    text-transform: capitalize !important;
    letter-spacing: 0px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f9f9f9;
    color: var(--primary-red) !important;
    padding-left: 20px !important; /* Kept same as original to prevent shift */
}

/* Hero Slider */
.hero {
    height: 940px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: left;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.hero-slider .slide {
    width: 100%; /* Changed from 50% to 100% since it's a full width slide container */
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

.hero-slider .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;
}

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

/* Clients Section - Marquee Effect */
.clients-section {
    background: #fff;
    padding: 40px 0;
    overflow: hidden;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: scrollTrain 25s linear infinite;
    will-change: transform;
}

@keyframes scrollTrain {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-logo {
    margin: 0 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    height: 100%;
    width: auto;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    object-fit: contain;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* About Section */

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

.about-text h2 {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
}

.about-text h3 {
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 50px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-black);
}

/* New Service Cards */
.service-card-new {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-red);
}

.service-img {
    height: 180px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-body {
    padding: 20px;
}

.service-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 15px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-list li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Achievement Slider Simplified */
.achievement-slider {
    border-radius: 12px;
    overflow: hidden;
}

.achievement-slider .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: block;
    border-radius: 12px;
}

/* Directors Section */
.director-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.director-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.director-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8f8f8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Purpose Section (Mission & Vision) */
.purpose-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-color: var(--primary-red);
}

.purpose-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red); /* Changed to brand red */
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.2);
}

.purpose-card h3 {
    color: var(--primary-black);
    font-weight: 800;
}

.purpose-card p {
    color: #444;
}

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

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-black);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover i, 
.service-card:hover p,
.service-card:hover h3 {
    color: var(--white);
}

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

.service-card h3 {
    margin-bottom: 15px;
}

/* Job Card Refinement */
.job-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-black);
}

.job-card h3 {
    color: var(--primary-black);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.job-card .job-bg {
    display: inline-block;
    padding: 5px 12px;
    background: #f1f1f1;
    color: var(--primary-black);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

/* Global Overrides */
.text-primary {
    color: var(--primary-black) !important;
}

.btn-primary {
    background-color: var(--primary-black) !important;
    border-color: var(--primary-black) !important;
}

.btn-primary:hover {
    background-color: #000 !important;
    border-color: #000 !important;
}

.job-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    flex-grow: 1;
}

.job-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.job-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.job-card .apply-btn {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
}

/* Projects Section */
.projects {
    padding: 50px 0;
}

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

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    bottom: 0;
}

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

/* Achievements Section */
.achievements {
    padding: 50px 0;
    background: var(--primary-black);
    color: var(--white);
    margin: 20px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.achievement-item h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #111;
    color: var(--white);
    padding: 80px 0 20px;
}

footer p, 
footer li, 
footer a,
footer span {
    color: #bbb;
    font-size: 0.95rem;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-red) !important;
    text-decoration: none;
}

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

.footer-col h3 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-red);
}

.nav-links li {
    margin: 0;
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px; /* Matched with nav links */
    transition: var(--transition);
    line-height: 1;
}

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

header.scrolled .header-phone {
    color: var(--primary-black);
}

.header-phone:hover {
    color: var(--primary-red) !important;
    transform: translateY(-2px);
}

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

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info i {
    color: var(--primary-red);
    margin-top: 5px;
}

.footer-links a {
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(8px);
}

.footer-col .social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-col .social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-col .social-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

/* Contact Page Refined Styles */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-info-card {
    background: var(--primary-black);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.contact-form {
    padding: 60px 40px;
}

.contact-form h2 {
    color: var(--primary-black);
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-black);
    background: var(--white);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 70, 150, 0.05);
}

.map-section {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
    width: 100%;
    border: none;
}

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

/* Page Header Standardized */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('img/b3.jpeg');
    background-size: cover;
    background-position: center;
    height: 320px; /* New standardized height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.about {
    padding: 50px 0;
}

.content-section {
    padding: 80px 0;
}



/* Gallery Section */
.gallery-section {
    background: #fdfdfd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(186, 28, 28, 0.8); /* Using primary red with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0);
    transition: all 0.4s ease;
}

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

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.project-sidebar {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    position: sticky;
    top: 100px;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-red);
}

.project-details p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Horizontal Testimonial Marquee */
.testimonial-horizontal-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    white-space: nowrap;
}

.testimonial-horizontal-content {
    display: flex;
    animation: scrollHorizontal 30s linear infinite;
    will-change: transform;
}

/* Removed hover pause to keep it moving as requested */
/* .testimonial-horizontal-wrapper:hover .testimonial-horizontal-content {
    animation-play-state: paused;
} */

@keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-card {
    flex: 0 0 380px;
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-right: 30px;
    white-space: normal;
    transition: var(--transition);
}

.ticker-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.ticker-quote {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.ticker-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    height: 80px;
    overflow: hidden;
}

.ticker-author strong {
    display: block;
    color: var(--primary-black);
    font-size: 1.1rem;
}

.ticker-author span {
    color: #888;
    font-size: 0.85rem;
}

.gallery-item-project {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item-project:hover {
    transform: translateY(-5px);
}

.gallery-item-project img {
    transition: all 0.5s ease;
}

.gallery-item-project:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.gallery-item-project::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.gallery-item-project:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-red);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Design Enhancements */
@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 12px 0;
        width: 100%;
    }

    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
        font-weight: 600;
        display: block;
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block !important;
        z-index: 1002;
        color: var(--white);
        font-size: 1.6rem;
        cursor: pointer;
    }

    header.scrolled .mobile-menu-btn {
        color: var(--text-dark);
    }

    .header-phone {
        display: none;
    }

    /* Mobile Dropdown Support */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
        margin-top: 5px;
        border-left: 2px solid var(--primary-red);
        transform: none; /* Reset desktop transform */
        min-width: 100%;
        width: 100%;
        opacity: 1; /* Reset desktop opacity */
        visibility: visible; /* Reset desktop visibility if any */
    }

    .dropdown-content a {
        white-space: normal !important; /* Allow wrapping on mobile */
        padding: 10px 0 !important;
        font-size: 1rem !important;
    }

    .dropdown.mobile-active .dropdown-content {
        display: block;
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.mobile-active > a i {
        transform: rotate(180deg);
    }

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

    .projects-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero {
        height: 550px;
    }

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

    .hero p {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 80px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
}

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

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
}
