/* === MODERN DESIGN SYSTEM === */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3399ff;
    --secondary: #ff6b35;
    --accent: #00d4aa;
    --dark: #1a1d29;
    --darker: #151822;
    --light: #f8faff;
    --gray: #8c94a7;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #1e2230 100%);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

/* === MODERN HEADER === */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 29, 41, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1100;
    padding: 1rem 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    min-height: 50px;
}

/* Updated Logo Styles */
.logo-image {
    width: 50px; 
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-image img {
    width: 150%;
    height: 150%;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition);
    filter: brightness(1.1) contrast(1.1);
    max-width: 150%;
    max-height: 150%;
}

.logo-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

/* Fallback logo badge (in case image doesn't load) */
.logo-badge {
    width: 60px; 
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 800; 
    font-size: 1.3rem; 
    color: white; 
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
}

.logo-text h1 {
    font-size: 1.4rem; 
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.logo-text p { 
    font-size: 0.8rem; 
    color: var(--gray); 
    font-weight: 500; 
    line-height: 1.2;
}

.nav-links { display: flex; gap: 0.5rem; list-style: none; }
.nav-link {
    color: var(--light); text-decoration: none; padding: 0.8rem 1.5rem;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: var(--transition); position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-link::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition);
}
.nav-link:hover::before { left: 100%; }
.nav-link.active { background: var(--glass); color: var(--primary-light); }

.mobile-toggle { display: none; background: none; border: none; color: var(--light); font-size: 1.5rem; cursor: pointer; }

/* === MAIN CONTENT === */
#main-content {
    padding-top: 80px;
    position: relative;
    min-height: calc(100vh - 200px);
}

.page-section {
    display: none;
    min-height: 100vh;
    padding: 1rem 2rem; /* Reduced vertical padding */
    animation: fadeIn 0.5s ease-in-out;
}

.page-section.active-section {
    display: block;
}

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

/* === HERO SECTION === */
#home {
    padding: 1rem 2rem 2rem; /* Reduced top padding */
    min-height: calc(100vh - 80px);
}

.hero-background { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,102,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,107,53,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0,212,170,0.06) 0%, transparent 50%);
    z-index: -1;
}

.hero-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
    align-items: center; 
}
.hero-text { padding-right: 2rem; }
.hero-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.8rem; 
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    padding: 0.8rem 1.5rem; 
    border-radius: 50px; 
    border: 1px solid var(--glass-border); 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    color: var(--accent); 
}

.hero-title { 
    font-size: clamp(1.6rem, 3.5vw, 2.8rem); 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 1.2rem; 
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.hero-subtitle { 
    font-size: clamp(0.9rem, 1.8vw, 1.1rem); 
    color: var(--gray); 
    margin-bottom: 2rem; 
    font-weight: 400; 
}

.hero-stats { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem; 
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.hero-stat { 
    text-align: center; 
    padding: 1.2rem 0.8rem; 
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    border-radius: var(--border-radius); 
    border: 1px solid var(--glass-border); 
    transition: var(--transition); 
}
.hero-stat:hover { 
    transform: translateY(-5px); 
    background: rgba(255,255,255,0.12); 
}
.stat-number { 
    font-size: clamp(1.3rem, 2.5vw, 1.8rem); 
    font-weight: 800; 
    display: block; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.stat-label { 
    font-size: 0.75rem; 
    color: var(--gray); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Carousel Slider - OLD TEXT VERSION - FIXED */
.hero-visual { 
    position: relative; 
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 280px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0.7;
    transform: scale(0.85);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 10;
}

.carousel-slide.prev {
    opacity: 0.5;
    transform: scale(0.8) translateX(-100px) translateZ(-100px);
}

.carousel-slide.next {
    opacity: 0.5;
    transform: scale(0.8) translateX(100px) translateZ(-100px);
}

.carousel-slide h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
}

.carousel-slide p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

/* === SECTION STYLING === */
.section-header { 
    text-align: center; 
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.section-badge { 
    display: inline-block; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); 
    color: white; 
    padding: 0.6rem 1.2rem;
    border-radius: 50px; 
    font-size: 0.75rem;
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.section-title { 
    font-size: 1.8rem;
    font-weight: 800; 
    margin-bottom: 0.4rem; 
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.section-subtitle { 
    font-size: 0.9rem;
    color: var(--gray); 
    max-width: 600px; 
    margin: 0 auto; 
    line-height: 1.5;
}

/* About Section */
.about-section { 
    background: linear-gradient(135deg, rgba(26,29,41,0.8) 0%, rgba(21,24,34,0.9) 100%); 
    border-radius: var(--border-radius); 
    padding: 2rem;
    margin-top: 1rem; 
    border: 1px solid var(--glass-border); 
}
.about-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.2rem; 
}

.about-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
}

.about-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.about-card strong {
    color: var(--accent);
    font-weight: 600;
}

/* Leadership Section */
.leadership-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.leadership-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.leadership-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.leadership-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.leader-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    position: relative;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.leader-photo i {
    font-size: 2.5rem;
    color: white;
}

.leader-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.leader-title {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.leader-qualification {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.leader-experience {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
}

/* Clients Section */
.clients-section {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.clients-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.clients-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--primary-light);
}

.clients-section .section-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.clients-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.client-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-width: 180px;
    transition: var(--transition);
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

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

.client-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.client-item:hover .client-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-name {
    font-size: 0.8rem;
    text-align: center;
    color: var(--gray);
    line-height: 1.3;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Client rows specific styling */
.client-row:nth-child(1) {
    /* L&T row - single client */
    justify-content: center;
}

.client-row:nth-child(2) {
    /* Jharkhand row - 5 clients */
}

.client-row:nth-child(3) {
    /* Goa row - 3 clients */
}

.client-row:nth-child(4) {
    /* Tamil Nadu row - 2 clients */
}

.client-row:nth-child(5) {
    /* Power & Karnataka row - 2 clients */
}

.client-row:nth-child(6) {
    /* Other states row - 4 clients */
}

/* Services Section */
#services {
    padding-top: 3rem; /* Reduced from 4rem */
}

.services-content {
    margin-top: 2rem;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}

.service-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    cursor: pointer;
    text-align: left;
}

.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 5px; 
    height: 100%; 
    background: linear-gradient(to bottom, var(--primary), var(--accent)); 
}
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow); 
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-count {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Learn More Button */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    width: fit-content;
}

.learn-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.learn-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(3px);
}

/* ==================== SERVICE DETAIL IMAGE CAROUSEL ==================== */
#service-detail {
    padding-top: 1rem; /* SIGNIFICANTLY REDUCED from 2rem */
    min-height: 100vh;
}

.service-detail-content {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem; /* Reduced from 2rem */
    margin-top: 1rem; /* Reduced from 2rem */
}

.service-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem; /* Reduced margin */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.service-detail-header h2 {
    font-size: 1.6rem;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
}

.service-detail-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 800px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.back-button:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.3);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    min-height: 0;
}

.service-image-carousel {
    margin-bottom: 1.5rem;
    width: 100%;
}

.service-carousel-container {
    position: relative;
    width: 100%;
    height: 385px; /* Increased from 400px for better visibility */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
}

.service-carousel-slide.active {
    opacity: 1;
}

.service-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--dark);
}

.service-carousel-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.service-carousel-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-carousel-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Service Carousel Navigation */
.service-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.service-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.service-carousel-prev {
    left: 15px;
}

.service-carousel-next {
    right: 15px;
}

/* Service Carousel Dots */
.service-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.service-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    border-color: white;
}

.service-carousel-dot:hover {
    background: white;
    transform: scale(1.1);
}

.service-features {
    margin-top: 1.5rem;
    width: 100%;
}

.service-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
    text-align: left;
}

.feature-list {
    list-style: none;
    margin-top: 0.8rem;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ==================== NEW SERVICE DETAIL STYLES ==================== */

.service-detail-content-new {
    margin-top: 1.5rem;
}

.service-commitment,
.service-achievements,
.service-impact {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary);
}

.service-impact {
    border-left-color: var(--accent);
}

.service-achievements {
    border-left-color: var(--secondary);
}

.service-commitment h3,
.service-achievements h3,
.service-impact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-commitment p,
.service-impact p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light);
    margin-bottom: 0.5rem;
}

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

.achievement-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.4;
}

.achievement-list li:last-child {
    border-bottom: none;
}

.achievement-list li i {
    color: var(--secondary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Project Lists - STATIC (NO SCROLL UNLESS NECESSARY) */
.project-list-static {
    margin-bottom: 2rem;
}

.project-list-static h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-list-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: none;
    overflow-y: visible;
}

.project-item {
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.project-item.ongoing {
    border-left: 3px solid var(--secondary);
}

.project-item.completed {
    opacity: 0.8;
    cursor: default;
}

.project-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.project-details {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-value {
    color: var(--accent);
    font-weight: 600;
    background: rgba(0, 212, 170, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-status {
    color: var(--secondary);
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Equipment Section */
#equipment {
    padding-top: 3rem; /* Reduced from 4rem */
}

.equipment-content {
    margin-top: 2rem;
}

.equipment-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 1.5rem; 
}

.equipment-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.equipment-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

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

.equipment-details h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.equipment-details p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

/* Project Detail Page - COMPACT */
#project-detail {
    padding-top: 1rem; /* Reduced from 4rem */
    min-height: 100vh;
}

.project-detail-content {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem; /* Reduced from 1.5rem */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.project-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-detail-header h2 {
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.project-detail-header .project-category {
    font-size: 0.9rem;
    color: var(--gray);
    background: rgba(0, 102, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-info {
    margin-bottom: 1rem;
}

.project-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.project-info-item:last-child {
    border-bottom: none;
}

.project-info-label {
    font-weight: 600;
    color: var(--primary-light);
}

.project-info-value {
    color: var(--light);
    text-align: right;
}

.project-description {
    margin-top: 1rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.project-description h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--primary-light);
}

.project-image-placeholder {
    width: 100%;
    height: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.project-image-placeholder i {
    font-size: 2.5rem;
    color: var(--gray);
}

/* Contact Section */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card { 
    background: var(--glass); 
    backdrop-filter: blur(20px); 
    border: 1px solid var(--glass-border); 
    border-radius: var(--border-radius); 
    padding: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05); 
    border-radius: var(--border-radius-sm); 
    transition: var(--transition); 
}

.contact-item i { 
    color: var(--accent); 
    margin-top: 0.1rem; 
    font-size: 0.9rem;
}

.contact-details strong { 
    display: block; 
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.contact-details span { 
    font-size: 0.8rem;
    color: var(--gray); 
    line-height: 1.4;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
}

.contact-info-item i {
    color: var(--accent);
    margin-top: 0.1rem;
    font-size: 0.9rem;
}

.contact-info-details strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.contact-info-details span {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Form Styles */
.modern-form { 
    margin-top: 1rem;
}

.form-group { 
    margin-bottom: 1rem;
}

.form-control { 
    width: 100%; 
    padding: 0.8rem;
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    border-radius: var(--border-radius-sm); 
    color: var(--light); 
    font-size: 0.85rem;
    transition: var(--transition); 
    font-family: 'Inter', sans-serif; 
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: rgba(255,255,255,0.08); 
}

.btn { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: white; 
    border: none; 
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm); 
    font-size: 0.85rem;
    font-weight: 700; 
    cursor: pointer; 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    width: 100%; 
    justify-content: center; 
}

.btn-secondary { 
    background: linear-gradient(135deg, var(--secondary) 0%, #e55a2b 100%); 
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: rgba(21,24,34,0.9);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    margin-top: 2rem;
}

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

.footer-content p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.footer-info {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive Design - ADJUSTED FOR NEW LAYOUT */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid,
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-carousel-container {
        height: 380px; /* Adjusted for tablet */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker);
        padding: 1rem;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .client-row {
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .client-item {
        min-width: 120px;
        padding: 0.5rem;
    }
    
    .client-logo {
        width: 100px;
        height: 70px;
    }
    
    .client-name {
        font-size: 0.7rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        max-width: 350px;
        height: 250px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .page-section {
        padding: 0.5rem 1rem; /* Reduced padding for mobile */
    }
    
    .service-detail-content,
    .project-detail-content {
        padding: 1rem;
        margin-top: 0.5rem; /* Reduced margin for mobile */
    }
    
    .service-detail-header,
    .project-detail-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .service-carousel-container {
        height: 320px; /* Adjusted for mobile */
    }
    
    .service-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .service-carousel-dots {
        bottom: 15px;
    }
    
    /* Mobile adjustments for logo */
    .logo {
        gap: 0.8rem;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .logo-badge {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Mobile adjustments for service detail */
    .service-detail-grid {
        gap: 1.5rem;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
    }
    
    .service-features h3 {
        text-align: center;
    }
    
    .service-detail-header h2 {
        font-size: 1.4rem;
    }
    
    .service-detail-header p {
        font-size: 0.9rem;
    }
    
    /* New service detail mobile adjustments */
    .service-commitment,
    .service-achievements,
    .service-impact {
        padding: 0.8rem;
    }
    
    .service-commitment h3,
    .service-achievements h3,
    .service-impact h3 {
        font-size: 1rem;
    }
    
    .service-commitment p,
    .service-impact p,
    .achievement-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        max-width: 280px;
        height: 200px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    #home {
        padding: 0.5rem 1rem 1rem; /* Reduced padding for mobile */
    }
    
    .clients-grid {
        gap: 1rem;
    }
    
    .client-row {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .client-item {
        min-width: 100px;
        max-width: 120px;
    }
    
    .client-logo {
        width: 80px;
        height: 60px;
    }
    
    .client-name {
        font-size: 0.65rem;
    }
    
    /* Small mobile adjustments for logo */
    .logo {
        gap: 0.6rem;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    .logo-badge {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .service-detail-header h2,
    .project-detail-header h2 {
        font-size: 1.3rem;
    }
    
    .service-carousel-container {
        height: 280px; /* Adjusted for small mobile */
    }
    
    .service-carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .service-carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .service-detail-header p {
        font-size: 0.85rem;
    }
    
    .project-title {
        font-size: 0.8rem;
    }
}