/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Technical color palette for laboratory */
    --technical-blue: #2F3B46;
    --earth-brown: #9A6B43;
    --technical-beige: #F3EDE5;
    --deep-black: #1E2429;
    
    /* Extended palette for UI elements */
    --blue-light: #4A5A68;
    --brown-light: #B8845A;
    --beige-dark: #E8DDD0;
    --text-primary: var(--deep-black);
    --text-secondary: var(--technical-blue);
    --text-accent: var(--earth-brown);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--technical-blue), var(--blue-light));
    --gradient-secondary: linear-gradient(135deg, var(--earth-brown), var(--brown-light));
    --gradient-accent: linear-gradient(135deg, var(--technical-beige), var(--beige-dark));
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(47, 59, 70, 0.1);
    --shadow-medium: 0 8px 32px rgba(47, 59, 70, 0.15);
    --shadow-dark: 0 12px 40px rgba(30, 36, 41, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--technical-beige);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(243, 237, 229, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--technical-blue);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--technical-blue);
    letter-spacing: 1px;
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--earth-brown);
    letter-spacing: 0.5px;
}

.logo-desc {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--earth-brown);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

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

.nav-back {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    font-weight: 600;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--technical-blue);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-accent);
    position: relative;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-main {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--technical-blue);
    letter-spacing: 1px;
}

.title-sub {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--earth-brown);
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--earth-brown);
    font-weight: 600;
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--technical-blue);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

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

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

.btn-secondary:hover {
    background: var(--technical-blue);
    color: white;
    transform: translateY(-3px);
}

/* Soil Layers Visualization */
.hero-visual {
    display: flex;
    justify-content: center;
}

.soil-layers {
    width: 300px;
    height: 400px;
    border: 3px solid var(--technical-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    background: white;
}

.layer {
    height: 20%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(47, 59, 70, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--deep-black);
    overflow: hidden;
}

.layer:last-child {
    border-bottom: none;
}

.layer-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: -1;
}

.layer-1 {
    background-color: #8B4513;
}

.layer-1 .layer-texture {
    background: repeating-linear-gradient(45deg, #654321, #654321 2px, #8B4513 2px, #8B4513 4px);
}

.layer-2 {
    background-color: #DEB887;
}

.layer-2 .layer-texture {
    background: radial-gradient(circle at 20% 30%, #F4A460 2px, transparent 2px),
                radial-gradient(circle at 80% 70%, #F4A460 1px, transparent 1px);
    background-size: 15px 15px;
}

.layer-3 {
    background-color: #9A6B43;
}

.layer-3 .layer-texture {
    background: linear-gradient(0deg, #8B5A3C 50%, #9A6B43 50%);
    background-size: 100% 8px;
}

.layer-4 {
    background-color: #A0A0A0;
}

.layer-4 .layer-texture {
    background: radial-gradient(circle at 25% 25%, #808080 3px, transparent 3px),
                radial-gradient(circle at 75% 75%, #808080 2px, transparent 2px);
    background-size: 20px 20px;
}

.layer-5 {
    background-color: #696969;
}

.layer-5 .layer-texture {
    background: repeating-linear-gradient(30deg, #555555, #555555 3px, #696969 3px, #696969 6px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--technical-blue);
    letter-spacing: 1px;
}

.section-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

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

.service-card {
    background: var(--technical-beige);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(47, 59, 70, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
    border-color: var(--earth-brown);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--technical-blue);
}

.service-card p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-list li {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '•';
    color: var(--earth-brown);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Director Section */
.director {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.director::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.director-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.director-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 3px solid var(--earth-brown);
}

.profile-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.credential-badge {
    background: var(--technical-beige);
    border: 2px solid var(--earth-brown);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--technical-blue);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.credential-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--technical-blue);
}

.credential-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.director-info {
    background: var(--technical-beige);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(47, 59, 70, 0.1);
    box-shadow: var(--shadow-light);
}

.director-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--technical-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.director-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--earth-brown);
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

.director-description {
    margin-bottom: 2.5rem;
}

.director-description p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.director-expertise h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--technical-blue);
    margin-bottom: 1.5rem;
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--earth-brown);
    box-shadow: 0 2px 10px rgba(47, 59, 70, 0.1);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.expertise-item i {
    color: var(--technical-blue);
    font-size: 1.1rem;
}

.expertise-item span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Specialized Tests Section */
.specialized-tests {
    padding: 6rem 0;
    background: white;
}

.specialized-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.specialized-card {
    background: var(--technical-beige);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.specialized-header {
    background: var(--gradient-primary);
    padding: 2.5rem;
    text-align: center;
    color: white;
}

.specialized-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.specialized-icon i {
    font-size: 2.5rem;
    color: white;
}

.specialized-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.specialized-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.specialized-content {
    padding: 2rem;
}

.specialized-description {
    margin-bottom: 2rem;
}

.specialized-description p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-secondary);
}

.specialized-features h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--technical-blue);
    margin-bottom: 1rem;
}

.specialized-features ul {
    list-style: none;
    padding: 0;
}

.specialized-features li {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.specialized-features li i {
    color: var(--earth-brown);
    font-size: 0.9rem;
}

.specialized-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(47, 59, 70, 0.1);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
}

.spec-item i {
    font-size: 1.8rem;
    color: var(--earth-brown);
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--technical-blue);
}

/* Geotechnical Studies Section */
.geotechnical-studies {
    padding: 6rem 0;
    background: var(--technical-beige);
}

.studies-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.study-type {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.study-header {
    padding: 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.study-header.conventional {
    background: var(--gradient-secondary);
}

.study-header.specialized {
    background: var(--gradient-primary);
}

.study-header i {
    font-size: 3rem;
}

.study-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.study-content {
    padding: 2rem;
}

.study-intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--technical-beige);
    border-radius: 10px;
    font-style: italic;
}

.study-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--technical-blue);
    margin-bottom: 1rem;
}

.deliverables-list {
    list-style: none;
    padding: 0;
}

.deliverables-list li {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.6;
}

.deliverables-list li i {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.study-header.conventional + .study-content .deliverables-list li i {
    color: var(--earth-brown);
}

.study-header.specialized + .study-content .deliverables-list li i {
    color: var(--technical-blue);
}

.study-deliverables {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.study-deliverables h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--technical-blue);
    text-align: center;
    margin-bottom: 2.5rem;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.deliverable-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--technical-beige);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.deliverable-item i {
    font-size: 2.5rem;
    color: var(--earth-brown);
    margin-bottom: 1rem;
}

.deliverable-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--technical-blue);
    margin-bottom: 0.8rem;
}

.deliverable-item p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Lab Tests Section */
.lab-tests {
    padding: 6rem 0;
    background: var(--beige-dark);
}

.tests-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.test-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--technical-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.test-grid {
    display: grid;
    gap: 1rem;
}

.test-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--earth-brown);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.test-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--technical-blue);
    font-size: 0.9rem;
}

.test-name {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    font-weight: 500;
}

.test-item.subcontracted {
    border-left-color: var(--blue-light);
    opacity: 0.85;
}

.test-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: right;
}

/* Equipment Section */
.equipment {
    padding: 6rem 0;
    background: white;
}

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

.equipment-card {
    background: var(--gradient-accent);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(47, 59, 70, 0.1);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-color: var(--technical-blue);
}

.equipment-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.equipment-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--technical-blue);
}

.equipment-card p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: var(--technical-blue);
    color: white;
}

.certifications .section-header h2 {
    color: white;
}

.certifications .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.cert-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cert-item i {
    font-size: 2rem;
    color: var(--earth-brown);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cert-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cert-item p {
    font-family: 'Open Sans', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cert-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ibmetro-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 280px;
}

.ibmetro-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.ibmetro-logo p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.cert-badge {
    width: 250px;
    height: 250px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-dark);
}

.cert-badge i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.cert-badge span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--technical-beige);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--technical-blue);
}

.contact-details p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(47, 59, 70, 0.1);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--technical-blue);
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--technical-beige);
    border: 2px solid rgba(47, 59, 70, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--earth-brown);
    box-shadow: 0 0 0 3px rgba(154, 107, 67, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--earth-brown);
}

/* Footer */
.footer {
    background: var(--deep-black);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.footer-sub {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--earth-brown);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--earth-brown);
}

.footer-copyright p {
    font-family: 'Open Sans', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .specialized-grid {
        grid-template-columns: 1fr;
    }
    
    .specialized-specs {
        grid-template-columns: 1fr;
    }
    
    .studies-comparison {
        grid-template-columns: 1fr;
    }
    
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .director-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .director-profile {
        order: 1;
    }
    
    .director-info {
        order: 2;
        padding: 2rem;
    }
    
    .director-info h3 {
        font-size: 1.6rem;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .image-placeholder {
        font-size: 3rem;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--technical-beige);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 2px solid var(--technical-blue);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .soil-layers {
        width: 250px;
        height: 300px;
    }

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

    .tests-categories {
        grid-template-columns: 1fr;
    }

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

    .cert-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .soil-layers {
        width: 200px;
        height: 250px;
    }

    .layer {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--beige-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--earth-brown);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--technical-blue);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #20BA5A, #25D366);
}

.whatsapp-float-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.whatsapp-float-text {
    white-space: nowrap;
    font-weight: 600;
}

/* Pulse animation for WhatsApp button */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive design for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .whatsapp-float-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .whatsapp-float-text {
        display: none;
    }
    
    .whatsapp-float:hover .whatsapp-float-text {
        display: block;
        position: absolute;
        right: 60px;
        background: rgba(0, 0, 0, 0.8);
        padding: 8px 12px;
        border-radius: 8px;
        white-space: nowrap;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .whatsapp-float-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .whatsapp-float-text {
        display: none;
    }
}