/* =============== RESET & BASE STYLES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-color);
    overflow-x: hidden;
}

/* =============== CSS VARIABLES =============== */
:root {
    /* Colors - New Theme */
    --primary-color: #dc2626; /* Red */
    --primary-color-light: #ef4444;
    --primary-color-dark: #b91c1c;
    --secondary-color: #2563eb; /* Blue */
    --secondary-color-light: #3b82f6;
    --accent-color: #ea580c; /* Orange */
    --accent-color-light: #f97316;
    
    /* Text Colors */
    --text-color: #374151; /* Dark grey */
    --text-color-light: #6b7280; /* Medium grey */
    --text-color-lighter: #9ca3af; /* Light grey */
    --heading-color: var(--accent-color); /* Orange for headings */
    
    /* Background Colors */
    --body-color: #ffffff; /* White */
    --container-color: #f5f5f0; /* Light beige */
    --card-color: #ffffff; /* White cards */
    --hero-bg: linear-gradient(135deg, #fefefe 0%, #f5f5f0 100%); /* White to beige gradient */
    --border-color: #e5e7eb; /* Light grey borders */
    --shadow-light: rgba(55, 65, 81, 0.08);
    --shadow-medium: rgba(55, 65, 81, 0.12);
    
    /* Typography */
    --h1-font-size: 4.8rem;
    --h2-font-size: 3.6rem;
    --h3-font-size: 2.4rem;
    --h4-font-size: 2rem;
    --normal-font-size: 1.6rem;
    --small-font-size: 1.4rem;
    --smaller-font-size: 1.2rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --header-height: 7rem;
    --section-padding: 8rem 0;
    --container-margin: 0 auto;
    --container-padding: 0 2rem;
    
    /* Border Radius */
    --border-radius-sm: 0.4rem;
    --border-radius-md: 0.8rem;
    --border-radius-lg: 1.2rem;
    --border-radius-xl: 1.6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* =============== UTILITY CLASSES =============== */
.container {
    max-width: 1200px;
    margin: var(--container-margin);
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 6rem;
}

.section__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section__description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    max-width: 60rem;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn--primary:hover:not(.button-group .btn) {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn--secondary:hover:not(.button-group .btn) {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
    transform: translateY(-2px);
}

/* =============== HEADER & NAVIGATION =============== */
.header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 120rem;
    background-color: rgba(100, 116, 139, 0.15);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: var(--border-radius-xl);
    z-index: var(--z-fixed);
    transition: all var(--transition-medium);
    box-shadow: 0 8px 32px rgba(55, 65, 81, 0.1);
}

.header.scroll-header {
    background-color: rgba(100, 116, 139, 0.2);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-color: rgba(100, 116, 139, 0.6);
    box-shadow: 0 12px 40px rgba(55, 65, 81, 0.15);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.nav__logo {
    font-size: 2.4rem;
    font-weight: var(--font-bold);
    color: var(--accent-color);
}

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

.nav__list {
    display: flex;
    list-style: none;
    gap: 4rem;
}

.nav__link {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--accent-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-medium);
}

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

.nav__toggle,
.nav__close {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--text-color);
}

/* =============== HERO SECTION =============== */
.hero {
    padding-top: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(#9ca3af 1.5px, transparent 1.5px),
        linear-gradient(90deg, #9ca3af 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
    animation: moveGrid 60s linear infinite;
    -webkit-mask-image: radial-gradient(
        circle at 25% 25%, 
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.16) 20%,
        rgba(0, 0, 0, 0.12) 40%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0.02) 75%,
        transparent 90%
    );
    mask-image: radial-gradient(
        circle at 25% 25%, 
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.16) 20%,
        rgba(0, 0, 0, 0.12) 40%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0.02) 75%,
        transparent 90%
    );
}

@keyframes moveGrid {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-50px) rotate(1deg);
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    order: 1;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--secondary-color);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2rem;
}

.hero__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero__title-accent {
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 1.8rem;
    color: var(--text-color-light);
    margin-bottom: 4rem;
    line-height: 1.7;
}

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

.button-group {
    display: inline-flex;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.button-group .btn {
    border: none;
    border-radius: 0;
    padding: 1.6rem 4.8rem;  /* Increased horizontal padding from 3.2rem to 4.8rem */
    margin: 0;
    transform: none !important;
    box-shadow: none !important;
    min-width: 180px;  /* Added minimum width to ensure consistent button size */
    text-align: center;
}

.button-group .btn--primary {
    background-color: var(--accent-color);
    color: white;
}

.button-group .btn--secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.hero__image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__logo-container {
    background: var(--card-color);
    padding: 4rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 40rem;
    transition: all var(--transition-medium);
}

.hero__logo-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px var(--shadow-medium);
}

.hero__logo {
    width: 20rem;
    height: auto;
    max-height: 20rem;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: transform var(--transition-medium);
}

.hero__logo-container:hover .hero__logo {
    transform: scale(1.05);
}

.hero__logo-text {
    font-size: 2.4rem;
    font-weight: var(--font-bold);
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__logo-tagline {
    font-size: 1.6rem;
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

/* =============== SERVICES SECTION =============== */
.services {
    background-color: var(--container-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.service__card {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: 50%;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: -1;
    transition: all var(--transition-medium);
}

.service__card::before {
    background-image: url('https://res.cloudinary.com/dxtx1kkwy/image/upload/v1736579637/VISHVAKRMAtempFEVICON-removebg-preview_wsihip.png');
    background-size: 50%;
    background-position: center;
}

.service__card[data-service="design"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(220, 38, 38, 0.05);
}

.service__card[data-service="manufacturing"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(37, 99, 235, 0.05);
}

.service__card[data-service="consulting"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(234, 88, 12, 0.05);
}

.service__card[data-service="maintenance"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(59, 130, 246, 0.05);
}

.service__card[data-service="automation"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(249, 115, 22, 0.05);
}

.service__card[data-service="analysis"]::before {
    background-blend-mode: soft-light;
    background-color: rgba(220, 38, 38, 0.05);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.service__card:hover::before {
    opacity: 0.25;
}

.service__icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    display: block;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.service__title {
    font-size: var(--h4-font-size);
    font-weight: var(--font-bold);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.01em;
}

.service__description {
    color: var(--text-color);
    line-height: 1.7;
    font-weight: var(--font-medium);
    font-size: 1.6rem;
}

/* =============== ABOUT SECTION =============== */
.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about__text {
    order: 1;
}

.about__description {
    font-size: 1.8rem;
    color: var(--text-color-light);
    margin-bottom: 4rem;
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background-color: var(--container-color);
    border-radius: var(--border-radius-md);
}

.stat__number {
    font-size: 3.6rem;
    font-weight: var(--font-bold);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

.about__features {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature__icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.feature__title {
    font-size: 1.8rem;
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature__description {
    color: var(--text-color-light);
}

/* =============== PROJECTS SECTION =============== */
.projects {
    background-color: var(--container-color);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.project__card {
    background-color: var(--card-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.project__image {
    position: relative;
    height: 25rem;
    overflow: hidden;
}

.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.project__card:hover .project__img {
    transform: scale(1.05);
}

.project__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2rem;
}

.project__content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.project__title {
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project__description {
    color: var(--text-color-light);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project__category {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: white;
    background-color: var(--accent-color);
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project__btn {
    width: 100%;
    text-align: center;
}

.projects__more {
    text-align: center;
    margin-top: 4rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    z-index: var(--z-modal);
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.modal.modal--active {
    background-color: rgba(0,0,0,0.8);
}

.modal__content {
    position: relative;
    background-color: var(--body-color);
    margin: 5vh auto;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal--active .modal__content {
    transform: translateY(0);
    opacity: 1;
}

.modal__close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 1;
    width: 4rem;
    height: 4rem;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background-color: rgba(0,0,0,0.7);
    transform: rotate(90deg);
}

.modal__body {
    display: flex;
    gap: 4rem;
    padding: 4rem;
}

.modal__image {
    flex: 0 0 40%;
}

.modal__image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.modal__details {
    flex: 0 0 60%;
}

.modal__category {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--accent-color);
    background-color: rgba(234, 88, 12, 0.1);
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2rem;
}

.modal__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.modal__description {
    color: var(--text-color-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.8rem;
}

.modal__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.modal__spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal__spec-label {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal__spec-value {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
}

/* Projects Page Specific Styles */
.projects-page {
    padding-top: 12rem;
}

.projects-page .projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
}

.back-button {
    margin-bottom: 4rem;
}

.back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    padding: 1.2rem 2.4rem;
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.back-button .btn:hover {
    transform: translateX(-5px);
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .projects__grid {
        gap: 2.5rem;
        padding: 0 2rem;
    }

    .project__content {
        padding: 2rem;
    }
}

@media screen and (max-width: 968px) {
    .modal__body {
        flex-direction: column;
        gap: 3rem;
    }
    
    .modal__image {
        flex: 0 0 100%;
    }
    
    .modal__details {
        flex: 0 0 100%;
    }

    .project__image {
        height: 20rem;
    }
}

@media screen and (max-width: 768px) {
    .projects__grid {
        gap: 2rem;
    }

    .project__title {
        font-size: 1.6rem;
    }

    .project__description {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 576px) {
    .projects__grid {
        padding: 0 1.5rem;
    }
    
    .modal__content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal__body {
        padding: 1.5rem;
    }
    
    .modal__specs {
        grid-template-columns: 1fr;
    }

    .project__image {
        height: 18rem;
    }

    .project__content {
        padding: 1.5rem;
    }

    .project__category {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* =============== GALLERY SECTION =============== */
.gallery {
    background-color: var(--body-color);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery__card {
    background-color: var(--card-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.gallery__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.gallery__media {
    position: relative;
    height: 35rem;
    overflow: hidden;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery__card:hover .gallery__img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery__card:hover .gallery__overlay {
    opacity: 1;
}

.gallery__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery__title {
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery__description {
    font-size: var(--small-font-size);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery__video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.gallery__card:hover .gallery__video-indicator {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery__more {
    text-align: center;
}

/* Gallery Page Specific Styles */
.gallery-page {
    padding-top: 12rem;
}

.gallery__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2.4rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.gallery-full__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-full__item {
    background-color: var(--card-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.gallery-full__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

/* =============== CLIENTS SECTION =============== */
.clients {
    background-color: var(--body-color);
}

.client_logo_gallery {
    display: grid;
    gap: 3rem;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(4, 1fr); /* Changed to 4 columns for large screens */
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media screen and (max-width: 1400px) {
    .client_logo_gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

@media screen and (max-width: 1200px) {
    .client_logo_gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 968px) {
    .client_logo_gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.client__card {
    background-color: var(--card-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.client__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-medium);
    border-color: var(--accent-color);
}

.client__card:hover::before {
    opacity: 1;
}

.client__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.05), rgba(249, 115, 22, 0.02));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.client__card img {
    max-width: 100%;
    max-height: 8rem;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.client__card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Client-specific styling adjustments */
.chirag_fuel img,
.super_gas img {
    max-height: 6rem;
}

.tata_chemicals img,
.GSFC img {
    max-height: 7rem;
}

.hathi_cement img,
.siddhi_cement img,
.ambuja_cement img,
.sanghi_cement img,
.ultratech_cement img,
.century_cement img,
.maihar_cement img,
.digvijay_cement img {
    max-height: 8rem;
}

/* =============== CONTACT SECTION =============== */
.contact {
    background-color: var(--container-color);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
}

/* Left Side - Form Container */
.contact__form-container {
    background: linear-gradient(135deg, #fef3e2 0%, #f5e6d3 100%);
    padding: 5rem 4rem;
    color: var(--text-color);
}

.contact__form-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form__label {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1.4rem 1.8rem;
    font-size: var(--normal-font-size);
    font-family: inherit;
    color: var(--text-color);
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__button {
    width: 100%;
    padding: 1.6rem 3rem;
    margin-top: 1rem;
}

/* Right Side - Contact Info Container */
.contact__info-container {
    padding: 5rem 4rem;
    background-color: white;
}

.contact__info-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact__info-subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact__info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__info-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--container-color);
    color: var(--text-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__info-icon svg {
    width: 2rem;
    height: 2rem;
}

.contact__info-details {
    flex: 1;
}

.contact__info-label {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__info-text {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Contact Social Media */
.contact__social {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.contact__social-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact__social-link {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--container-color);
    color: var(--text-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.contact__social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.3);
    border-color: var(--accent-color);
}

.contact__social-link svg {
    width: 2rem;
    height: 2rem;
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.footer__title {
    font-size: 2.4rem;
    font-weight: var(--font-bold);
    color: var(--accent-color-light);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--accent-color-light);
}

.footer__description {
    color: var(--text-color-lighter);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    color: var(--text-color-lighter);
    text-decoration: none;
    transition: all var(--transition-medium);
    background: rgba(255, 255, 255, 0.1);
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-link:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer__subtitle {
    font-size: 1.8rem;
    font-weight: var(--font-semi-bold);
    margin-bottom: 2rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer__subtitle::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--accent-color-light);
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__link {
    color: var(--text-color-lighter);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: inline-block;
    padding: 0.5rem 0;
}

.footer__link:hover {
    color: white;
    transform: translateX(5px);
}

.footer__info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color-lighter);
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
}

.footer__icon {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--accent-color-light);
    opacity: 0.8;
    transition: all var(--transition-medium);
}

.footer__info:hover .footer__icon {
    opacity: 1;
    transform: scale(1.1);
}

.footer__time {
    color: var(--text-color-lighter);
    font-size: var(--small-font-size);
    margin-left: 4rem;
    font-weight: var(--font-medium);
}

.footer__bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    position: relative;
}

.footer__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.footer__copy {
    color: var(--text-color-lighter);
    font-size: var(--small-font-size);
}

.footer__credit {
    color: var(--text-color-lighter);
    font-size: calc(var(--small-font-size) - 0.1rem);
    margin-top: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(234, 88, 12, 0.1),
        rgba(234, 88, 12, 0.15),
        rgba(234, 88, 12, 0.1),
        transparent
    );
    position: relative;
    transition: all var(--transition-medium);
}

.footer__credit:hover {
    color: white;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(234, 88, 12, 0.15),
        rgba(234, 88, 12, 0.2),
        rgba(234, 88, 12, 0.15),
        transparent
    );
}

.footer__credit-divider {
    color: var(--accent-color-light);
    opacity: 0.8;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(234, 88, 12, 0.3);
}

.footer__credit:hover .footer__credit-divider {
    opacity: 1;
    text-shadow: 0 0 15px rgba(234, 88, 12, 0.5);
}

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

/* Large devices (desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    :root {
        --h1-font-size: 4.2rem;
        --h2-font-size: 3.2rem;
        --h3-font-size: 2.2rem;
    }
}

/* Medium devices (tablets) */
@media screen and (max-width: 968px) {
    .container {
        max-width: 720px;
    }
    
    :root {
        --h1-font-size: 3.6rem;
        --h2-font-size: 2.8rem;
        --h3-font-size: 2rem;
        --section-padding: 6rem 0;
    }
    
    .header {
        top: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
    }
    
    .nav {
        padding: 0 2rem;
    }
    
    .nav__menu {
        position: fixed;
        top: calc(var(--header-height) + 3rem);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 4rem);
        max-width: 45rem;
        background-color: rgba(100, 116, 139, 0.95);
        border: 1px solid rgba(100, 116, 139, 0.6);
        border-radius: var(--border-radius-lg);
        box-shadow: 0 12px 40px rgba(55, 65, 81, 0.25);
        transition: all var(--transition-medium);
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-2rem);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
    }
    
    .nav__menu.show-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav__list {
        flex-direction: column;
        gap: 3rem;
        width: 100%;
    }
    
    .nav__link {
        font-size: 1.8rem;
        text-align: center;
        padding: 1rem 0;
        width: 100%;
        color: var(--white-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        color: var(--white-color);
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__image {
        order: 1;
    }
    
    .hero__logo-container {
        max-width: 30rem;
        padding: 3rem;
    }
    
    .hero__logo {
        width: 15rem;
        max-height: 15rem;
    }
    
    .hero__logo-text {
        font-size: 2rem;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .gallery__media {
        height: 40rem;
    }
    
    .gallery-full__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact__form-container {
        padding: 4rem 3rem;
    }
    
    .contact__info-container {
        padding: 4rem 3rem;
    }
    
    .form__title {
        font-size: 2rem;
    }
    
    .form__subtitle {
        font-size: var(--small-font-size);
        margin-bottom: 2.5rem;
    }
    
    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .client_logo_gallery {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
        gap: 2.5rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Small devices (mobile) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    :root {
        --h1-font-size: 3rem;
        --h2-font-size: 2.4rem;
        --h3-font-size: 1.8rem;
        --section-padding: 4rem 0;
    }
    
    .hero__logo-container {
        max-width: 25rem;
        padding: 2.5rem 2rem;
    }
    
    .hero__logo {
        width: 12rem;
        max-height: 12rem;
    }
    
    .hero__logo-text {
        font-size: 1.8rem;
    }
    
    .hero__logo-tagline {
        font-size: var(--small-font-size);
    }
    
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .button-group {
        width: 100%;
    }
    
    .button-group .btn {
        flex: 1;
        min-width: auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .gallery__media {
        height: 30rem;
    }
    
    .gallery-full__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery__filters {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.8rem 1.8rem;
        font-size: var(--small-font-size);
    }
    
    .client_logo_gallery {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 2rem;
    }
    
    .contact__content {
        gap: 3rem;
    }
    
    .contact__form-container {
        padding: 3rem 2rem;
    }
    
    .contact__info-container {
        padding: 3rem 2rem;
    }
    
    .contact__info-list {
        gap: 2rem;
    }
    
    .contact__info-item {
        flex-direction: row;
    }
    
    .contact__info-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .contact__info-icon svg {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .contact__form {
        padding: 2.5rem 2rem;
    }
    
    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 2rem;
    }
    
    .form__input {
        padding: 1.4rem 1.5rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background-color: var(--accent-color);
    color: white;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    z-index: var(--z-fixed);
}

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

.scroll-to-top:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

/* Extra small devices */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero__logo-container {
        max-width: 20rem;
        padding: 2rem 1.5rem;
    }
    
    .hero__logo {
        width: 10rem;
        max-height: 10rem;
    }
    
    .hero__logo-text {
        font-size: 1.6rem;
    }
    
    .hero__logo-tagline {
        font-size: var(--smaller-font-size);
    }
    
    .service__card,
    .contact__form {
        padding: 2rem 1.5rem;
    }
    
    .form__title {
        font-size: 1.8rem;
    }
    
    .form__button {
        padding: 1.6rem 2rem;
        font-size: var(--small-font-size);
    }
}