* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #e4e4e7;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0a0a0b;
}

/* Header & Navigation */
header {
	
    background:#F8F9FA;
    backdrop-filter: blur(12px);
    padding: 18px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
nav a:hover {
    color: #fbbf24;
}
nav a.active {
    color: #fbbf24;
}
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}
/* Header inner layout (logo + nav) */
.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    margin-right: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;   
    width: auto;
    display: block;
}

/* Nav alignment fix */
.header-inner nav {
    margin-left: auto;
}

/* Hero Sections */
.hero {
	
    background: linear-gradient(to bottom, rgba(10, 10, 11, 0.85), rgba(0, 0, 0, 0.95)),
                url('../images/slides/main_page_slider_1.jpg') center/cover no-repeat fixed;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 100px;
    color: white;
    position: relative;
}
.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #d4d4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.4rem;
    max-width: 900px;
    opacity: 0.8;
    margin: 20px auto 0;
    color: #d4d4d8;
}

/* Main Hero (Index Page) */
#main_top_section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, rgba(10, 10, 11, 0.88), rgba(0, 0, 0, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}
#main_top_content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}
#main_top_section h2 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#main_top_section p {
    font-size: 1.35rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    opacity: 0.85;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.45);  /* dark glass effect */
    padding: 20px 28px;
    border-radius: 8px;
    max-width: 700px;
}
#main_top_section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Compact Slider (Index) */
.compact-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.compact-slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 30s infinite;
    filter: grayscale(30%);
}
.compact-slider img:nth-child(1) { animation-delay: 0s;   }
.compact-slider img:nth-child(2) { animation-delay: 6s;   }
.compact-slider img:nth-child(3) { animation-delay: 12s;  }
.compact-slider img:nth-child(4) { animation-delay: 18s;  }
.compact-slider img:nth-child(5) { animation-delay: 24s;  }
.compact-slider img:nth-child(6) { animation-delay: 30;  }
@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.05); }
    50% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

/* Why GeoTechs Section (Index) */
#main_bottom_section {
    padding: 100px 20px 120px;
    text-align: center;
    background: #0a0a0b;
}
#main_bottom_section h2 {
    font-size: 2.8rem;
    color: #fbbf24;
    margin-bottom: 3rem;
    font-weight: 700;
}
#cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.card {
    background: #18181b;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}
.card h3 {
    font-size: 1.55rem;
    color: #fbbf24;
    margin-bottom: 20px;
    font-weight: 600;
}
.card p {
    color: #d4d4d8;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Page */
.services-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    background: #0a0a0b;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 40px;
}
.service-card {
    background: #18181b;
    border-radius: 16px;
    padding: 38px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.3);
}
.service-number {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0a0a0b;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.service-card h2 {
    color: #fbbf24;
    font-size: 1.75rem;
    margin: 0 0 18px 8px;
    font-weight: 600;
}
.service-card > p, .service-card ul {
    padding-left: 8px;
    color: #d4d4d8;
}
.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-card ul li {
    padding: 10px 0 10px 34px;
    position: relative;
    font-size: 1.08rem;
    line-height: 1.7;
}
.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
    font-size: 1.4rem;
}

/* Equipment Page */
.equipment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    background: #0a0a0b;
}
.equipment-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
    background: #18181b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.equipment-item:hover {
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}
.equipment-item:nth-child(even) {
    direction: rtl;
}
.equipment-item:nth-child(even) .equipment-info {
    direction: ltr;
}
.equipment-info {
    padding: 50px 40px;
}
.equipment-info h2 {
    font-size: 2.2rem;
    color: #fbbf24;
    margin-bottom: 20px;
    font-weight: 600;
}
.equipment-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.equipment-info ul li {
    padding: 12px 0 12px 34px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
}
.equipment-info ul li:last-child {
    border-bottom: none;
}
.equipment-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
    font-size: 1.4rem;
    top: 10px;
}
.equipment-image {
    min-height: 480px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.equipment-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Publications Page */
.publications-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    background: #0a0a0b;
}
.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.publication-item {
    background: #18181b;
    padding: 32px 34px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border-left: 4px solid #fbbf24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fbbf24;
}
.publication-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.25);
}
.publication-item h3 {
    font-size: 1.28rem;
    color: #fbbf24;
    margin: 0 0 14px 0;
    line-height: 1.5;
    font-weight: 600;
}
.publication-item .authors {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 8px;
}
.publication-item .journal {
    color: #f59e0b;
    font-style: italic;
    margin-bottom: 10px;
}
.publication-item .year { color: #a1a1aa; margin-bottom: 8px; }
.publication-item .doi a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
}
.publication-item .doi a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: #0a0a0b;
}
.contact-info {
    background: #18181b;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-info h2 {
    font-size: 2.2rem;
    color: #fbbf24;
    margin-bottom: 30px;
    font-weight: 600;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d4d4d8;
}
.contact-item i {
    color: #fbbf24;
    font-weight: bold;
    margin-right: 16px;
    font-size: 1.4rem;
    font-style: normal;
}
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-map iframe {
    width: 100%;
    height: 520px;
    border: 0;
    filter: invert(90%) hue-rotate(180deg);
}

/* About Page */
.about-intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 2;
    color: #d4d4d8;
    background: #0a0a0b;
}
.team-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    background: #0a0a0b;
}
.team-card {
    background: #18181b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.3);
}
.team-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-bottom: 4px solid #fbbf24;
}
.team-info {
    padding: 32px 28px;
}
.team-info h3 {
    font-size: 1.8rem;
    color: #fbbf24;
    margin: 0 0 8px 0;
    font-weight: 600;
}
.team-info .title {
    font-size: 1.1rem;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}
.team-info p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #d4d4d8;
    text-align: left;
}

/* Footer */
footer {
    background: #18181b;
    color: #71717a;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95rem;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .equipment-item, .contact-container, .publications-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .equipment-item:nth-child(even) {
        direction: ltr;
    }
    .equipment-image {
        min-height: 300px;
    }
    .contact-map iframe {
        height: 400px;
    }
}
@media (max-width: 480px) {

    header {
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
    }

    nav {
        flex-direction: row;      /* ⬅ keep horizontal */
        flex-wrap: wrap;          /* ⬅ wrap instead of stacking */
        gap: 14px;                /* ⬅ smaller gaps */
        padding: 0;
        justify-content: center;
    }

    nav a {
        padding: 6px 0;
        font-size: 0.95rem;
    }

    .logo img {
        height: 40px;
    }
}