/* 
  Lotus MEP Solutions - Design System & Styles
  Inspired by Saudi ProTech but customized for Lotus MEP
*/

:root {
    --primary-color: #DE3538; /* Red from Logo */
    --primary-hover: #ea4b4e;
    --secondary-color: #24478B; /* Navy Blue from Logo */
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --accent-color: #E67E22; /* Small accents if needed */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 29, 29, 0.3);
}

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

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

.btn-white-outline {
    border: 2px solid white;
    color: white;
}

.btn-white-outline:hover {
    background: white;
    color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.top-bar-info {
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: auto;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

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

.logo img {
    height: 55px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary-color);
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/mep_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Home Overview / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Stats Page/Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .stats-grid {
        padding: 40px 20px;
        margin-top: -40px;
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

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

.service-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-img {
    height: 200px;
    background: #ddd;
    position: relative;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
}

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

.service-content ul {
    margin-top: 15px;
}

.service-content li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-content li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Page */
.project-card {
    display: flex;
    background: var(--white);
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.project-img {
    flex: 0 0 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-info {
    padding: 40px;
    flex: 1;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-pill {
    font-size: 0.9rem;
}

.detail-pill strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .project-card {
        flex-direction: column;
    }
    .project-img {
        flex: 0 0 300px;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

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

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(139, 29, 29, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-method h4 {
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

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

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-info {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    .top-bar-content {
        flex-direction: column;
    }
    .top-social { display: none; }
    
    .logo img {
        height: 45px;
    }
    
    .header-btns {
        display: none; /* Hide Quote button on mobile to save space */
    }
    .hero {
        padding: 80px 20px;
        min-height: 500px;
        height: auto;
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/mep_hero_bg.png') center/cover no-repeat !important;
    }
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .info-item span {
        font-size: 0.75rem;
    }
    .logo img {
        height: 35px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}


/* Project List Table */

/* Project List Table */
.project-list-section {
    background: var(--bg-light);
    border-top: 1px solid #eee;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.project-table th {
    background: var(--secondary-color);
    color: var(--white);
    text-align: left;
    padding: 15px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.project-table tr:last-child td {
    border-bottom: none;
}

.project-table tr:nth-child(even) {
    background: #fafafa;
}

.project-table tr:hover {
    background: #f1f1f1;
}

.sq-feet {
    white-space: nowrap;
    font-weight: 600;
    color: var(--primary-color);
}

/* Quality Plan Styles */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quality-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    transition: var(--transition);
}

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

.quality-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 29, 29, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.quality-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.quality-card ul li {
    font-size: 0.9rem;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.quality-card ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
}

/* Why Choose Us Styles */
.choose-us-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.choose-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

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

.choose-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.choose-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: white; /* Ensure visibility on dark background */
}

.choose-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

/* Certification Badges */
.cert-badge {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    transition: var(--transition);
}

.cert-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cert-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

/* ESA Circular Logo Style */
.esa-circle-logo {
    width: 90px;
    height: 90px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(36, 71, 139, 0.2);
    border: 3px solid rgba(255,255,255,0.1);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}


/* Spectrum Section Redesign */
.spectrum-section {
    background: #fdfdfd;
}

.spectrum-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.spectrum-image {
    position: relative;
    position: sticky;
    top: 120px;
}

.spectrum-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #e0e0e0, -20px -20px 60px #ffffff;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 10px 10px 30px rgba(139, 29, 29, 0.3);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.experience-badge h4 {
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.spectrum-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spectrum-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-left: 4px solid #eee;
}

.spectrum-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.spectrum-icon {
    width: 55px;
    height: 55px;
    background: rgba(139, 29, 29, 0.05);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.spectrum-item:hover .spectrum-icon {
    background: var(--primary-color);
    color: white;
}

.spectrum-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.spectrum-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.4;
}

/* Organizational Chart Redesign */
.org-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 30px 5px;
    background: #fff;
    border-radius: 15px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.02);
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.9); /* Scale down slightly to fit more */
    transform-origin: top center;
}

.node {
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.72rem;
    text-align: center;
    position: relative;
    margin: 6px 0;
    box-shadow: 0 2px 6px rgba(118, 185, 177, 0.15);
    width: 140px; /* Even smaller width */
    z-index: 2;
    flex-shrink: 0;
}

.node.sub-node { 
    background: white; 
    color: #444; 
    border: 1.2px solid var(--secondary-color); 
    border-radius: 8px; 
    box-shadow: none;
    width: 130px;
}

.node.special-node { 
    background: var(--secondary-color); 
    opacity: 0.95; 
    border-radius: 5px; 
    font-size: 0.68rem;
    width: 105px;
}

.connector-v {
    width: 1.5px;
    height: 15px;
    background: #ccc;
    z-index: 1;
}

.dept-row {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-top: 15px;
}

.dept-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 110px; /* Very narrow */
}

@media (max-width: 1200px) {
    .org-tree { transform: scale(0.85); }
}

@media (max-width: 768px) {
    .org-chart-wrapper {
        padding: 40px 15px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    }
    .org-tree {
        transform: scale(1);
        width: 100%;
        gap: 0;
    }
    .dept-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 30px;
        width: 100%;
    }
    .dept-column {
        width: 100%;
        min-width: unset;
        position: relative;
        padding-top: 20px;
        border-top: 1px dashed var(--secondary-color);
    }
    .dept-column:first-child {
        border-top: none;
    }
    .dept-column::after, .dept-column::before {
        display: none !important;
    }
    .sub-branches {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
    .branch-col {
        width: 100%;
    }
    .node {
        width: 180px; /* Slightly wider for better text fit on mobile stack */
        margin: 8px 0;
    }
    .node.sub-node {
        width: 170px;
    }
    .node.special-node {
        width: 150px;
    }
    .connector-v {
        height: 20px;
        background: var(--secondary-color);
    }
}

.dept-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1.5px;
    height: 15px;
    background: #ccc;
    transform: translateX(-50%);
}

.sub-branches {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}

.branch-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1200px) {
    .org-tree { transform: scale(0.85); }
}

/* Pan India Presence Redesign */
.presence-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.map-wrapper {
    position: relative;
    background: #fdfdfd;
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
}

.map-india-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.05));
}

.map-india-svg path {
    fill: #e0e0e0; /* Default map color */
    stroke: #fff;
    stroke-width: 1px;
    transition: var(--transition);
}

.map-india-svg path:hover {
    fill: #d0d0d0;
}

/* Location Pins */
.city-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(139, 29, 29, 0.4);
    z-index: 5;
    transition: var(--transition);
}

.city-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-pin 2s infinite;
    opacity: 0.6;
}

@keyframes pulse-pin {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.city-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.pin-delhi { top: 25%; left: 35%; }
.pin-mumbai { top: 60%; left: 20%; }
.pin-pune { top: 65%; left: 22%; }
.pin-kolkata { top: 52%; left: 75%; }
.pin-hyderabad { top: 70%; left: 42%; }
.pin-bangalore { top: 82%; left: 38%; }
.pin-chennai { top: 85%; left: 45%; }
.pin-kochi { top: 92%; left: 35%; }

/* Location Side Cards */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loc-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 4px solid #eee;
    transition: var(--transition);
}

.loc-card:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.loc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.loc-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(139, 29, 29, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.loc-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.loc-card p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 992px) {
    .presence-layout {
        grid-template-columns: 1fr;
    }
    .map-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Responsive Utility Classes */
.grid-responsive {
    display: grid;
    gap: 30px;
}

.grid-2-col {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.about-story-grid {
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 992px) {
    .about-story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-stats-side {
        padding: 25px !important;
    }
    .about-stats-side h3 {
        font-size: 1.4rem;
        margin-bottom: 20px !important;
    }
    .about-stat-row {
        gap: 10px;
    }
    .about-stat-row span {
        font-size: 0.9rem;
    }
}

.about-stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

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

@media (max-width: 600px) {
    .form-row-responsive {
        grid-template-columns: 1fr;
    }
}

.stack-on-mobile {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .stack-on-mobile {
        flex-direction: column;
    }
}

/* Engineering Spectrum Mobile Fixes */
@media (max-width: 992px) {
    .spectrum-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .spectrum-image {
        position: relative;
        top: 0;
        margin-bottom: 70px;
    }
    .experience-badge {
        bottom: -40px;
        right: 50%;
        transform: translateX(50%);
        animation: float-mobile 4s ease-in-out infinite;
        width: 280px;
        max-width: 90%;
        padding: 15px 20px;
    }
}

@keyframes float-mobile {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-10px); }
}

@media (max-width: 480px) {
    .experience-badge {
        width: 240px;
        padding: 12px 15px;
    }
    .experience-badge h4 {
        font-size: 1.4rem;
    }
    .spectrum-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 29, 29, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
