* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

/* Header */
header {
    background: transparent;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0px);
    transform: translateY(0);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: transparent;
}

header.hidden-header {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d47e;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    color: #334155;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-center {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Switch */
.lang-switch-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    vertical-align: middle;
}

.lang-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.lang-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 30px;
    border: 2px solid #00c896;
}

.lang-circle {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lang-text-es, .lang-text-en {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    transition: .4s;
    user-select: none;
    z-index: 3;
}

.lang-text-es {
    left: 6px;
    color: #00c896;
    opacity: 1;
}

.lang-text-en {
    right: 6px;
    color: #0056b3; /* Blueish for EN as per image suggestion */
    opacity: 0;
}

.lang-checkbox:checked + .lang-label .lang-circle {
    transform: translateX(30px);
}

.lang-checkbox:checked + .lang-label .lang-text-es {
    opacity: 0;
}

.lang-checkbox:checked + .lang-label .lang-text-en {
    opacity: 1;
    color: #0056b3;
}

/* Move text with circle */
.lang-checkbox:not(:checked) + .lang-label .lang-text-es {
    left: 6px; /* Centered in the circle when on left */
    z-index: 3;
}

/* Adjust text position to be inside the circle */
.lang-text-es {
    left: 7px;
}
.lang-text-en {
    right: 7px;
}

/* When checked, show EN inside circle */
.lang-checkbox:checked + .lang-label .lang-text-en {
    right: 7px;
    z-index: 3;
}

/* Hide the text that is NOT selected/in-circle? 
   Actually, the design shows the text IS inside the circle.
   So I need the text to move with the circle or be inside the circle element.
*/


.logo-link {
    display: inline-block;
}

.logo-image {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 12px 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

header .nav-links a {
    color: #000000;
}

header .nav-links a:hover {
    color: #00d47e;
}

.nav-links a:hover {
    color: #00d47e;
}

.nav-links a.active {
    color: #00d47e;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, #00d47e, #00a078);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 96px 5% 56px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 400px at 20% -10%, rgba(0, 200, 150, 0.12), transparent 60%),
        radial-gradient(800px 300px at 80% 10%, rgba(3, 48, 57, 0.10), transparent 65%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" x="50" y="50" fill="white" opacity="0.08"/></svg>');
    z-index: 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 0 1 800px;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 6px;
    margin-bottom: 24px;
    color: #033039;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(90deg, #033039 0%, #00c896 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #055160;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: #00c896;
    color: white;
}

.btn-primary:hover {
    background-color: #00a078;
    box-shadow: 0 10px 20px rgba(0, 200, 150, 0.25);
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: #033039;
    border: 2px solid #033039;
}

.btn-secondary:hover {
    background-color: #033039;
    color: white;
    box-shadow: 0 10px 20px rgba(3, 48, 57, 0.15);
    transform: translateY(-1px) scale(1.02);
}

.hero-visual {
    flex: 1;
    max-width: 600px;
}

.hero-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(0.001px);
    transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.35;
    animation: float 12s ease-in-out infinite;
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    /* O un color de fondo muy sutil si se prefiere */
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #00d47e;
    /* Color verde */
    transition: width 0.1s ease-out;
}

.orb-1 {
    top: 10%;
    left: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 126, 0.45), rgba(0, 160, 120, 0.2));
    animation-delay: 0s;
}

.orb-2 {
    bottom: 20%;
    right: -60px;
    background: radial-gradient(circle at 70% 30%, rgba(3, 48, 57, 0.30), rgba(0, 200, 150, 0.25));
    animation-delay: 2s;
}

.orb-3 {
    top: 40%;
    right: 30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(0, 200, 150, 0.15));
    animation-delay: 4s;
}

.orb-4 {
    bottom: 5%;
    left: 20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 212, 126, 0.4), rgba(3, 48, 57, 0.2));
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    color: #033039;
    opacity: 0.7;
    animation: bounce 1.8s ease-in-out infinite;
}

.scroll-indicator .arrow {
    font-size: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Section Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 24px 0 48px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-on-scroll .service-card,
.reveal-on-scroll .philosophy-card,
.reveal-on-scroll .project-card,
.reveal-on-scroll .team-card,
.reveal-on-scroll .profile-card {
    opacity: 0;
    transform: translateY(16px);
}

.reveal-on-scroll.in-view .service-card,
.reveal-on-scroll.in-view .philosophy-card,
.reveal-on-scroll.in-view .project-card,
.reveal-on-scroll.in-view .team-card,
.reveal-on-scroll.in-view .profile-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-header h2 {
    font-size: 2.8rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.about::before {
    left: -80px;
    top: -80px;
    background: radial-gradient(circle at center, rgba(0, 212, 126, 0.25), transparent 60%);
}

.about::after {
    right: -80px;
    bottom: -80px;
    background: radial-gradient(circle at center, rgba(3, 48, 57, 0.18), transparent 60%);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.about-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.8;
}


.about-motto {
    background: linear-gradient(135deg, #00d47e, #00b86d);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 212, 126, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.about-motto:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 212, 126, 0.35);
}

.about-motto::after {
    content: '';
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75), transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.35s ease;
}

.about-motto.ripple::after {
    width: 280px;
    height: 280px;
    opacity: 0.22;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.profile-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.profile-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.profile-photo {
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-card h4 {
    font-size: 1.35rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.profile-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.profile-card .social-links {
    margin-top: auto;
    padding-top: 1rem;
}

.profile-link {
    color: #00d47e;
    text-decoration: none;
    font-weight: 600;
}

.profile-link:hover {
    color: #00a078;
    text-decoration: underline;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.team-card:hover,
.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.profile-grid .profile-card:nth-child(1) {
    transition-delay: 0s;
}

.profile-grid .profile-card:nth-child(2) {
    transition-delay: 0.05s;
}

.profile-grid .profile-card:nth-child(3) {
    transition-delay: 0.1s;
}

.team-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-card h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.team-card p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.services-grid .service-card:nth-child(1) {
    transition-delay: 0s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.10s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.15s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-top-color: #00d47e;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Philosophy Section */
.philosophy {
    background: linear-gradient(135deg, #033039 0%, #055160 100%);
    color: white;
}

.philosophy .section-header h2,
.philosophy .section-header p {
    color: white;
}

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

.philosophy-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
}

.philosophy-grid .philosophy-card:nth-child(1) {
    transition-delay: 0s;
}

.philosophy-grid .philosophy-card:nth-child(2) {
    transition-delay: 0.07s;
}

.philosophy-grid .philosophy-card:nth-child(3) {
    transition-delay: 0.14s;
}

.philosophy-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    background: #f8fafc;
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projects-grid .project-card:nth-child(1) {
    transition-delay: 0s;
}

.projects-grid .project-card:nth-child(2) {
    transition-delay: 0.06s;
}

.projects-grid .project-card:nth-child(3) {
    transition-delay: 0.12s;
}

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

.project-image {
    height: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, #033039, #055160);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    min-height: 3.2rem;
    display: flex;
    align-items: flex-start;
}

.project-description {
    color: #64748b;
    margin-bottom: 1rem;
    flex: 1;
    min-height: 4.5rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    align-items: flex-start;
    align-content: flex-start;
}

.tech-tag {
    background: #e6faf3;
    color: #033039;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #e6faf3;
    color: #00d47e;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.project-footer .btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.lab-anim {
    background: #ffffff;
}

.lab-stage {
    position: relative;
}

.lab-flask {
    transform-origin: bottom center;
}

.flask-bounce {
    animation: lab-bounce 2.2s ease-in-out infinite;
}

@keyframes lab-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.lab-bubbles {
    position: absolute;
    inset: 0;
}

.bubble {
    position: absolute;
}

.bubble-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    will-change: transform;
    animation: bubble-float 4s ease-in-out infinite;
}

@keyframes bubble-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flask-bounce {
        animation: none !important;
    }

    .bubble-inner {
        animation: none !important;
    }
}

/* Collaborate Section */
/* Contact Widget */
.contact-widget {
    position: fixed;
    right: 20px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 1500;
}

.contact-widget-button {
    width: 180px;
    height: 180px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 22px;
    padding: 0;
    transition: transform 0.3s ease;
}

.contact-widget-button:hover {
    transform: scale(1.05);
}

.contact-widget-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(2, 32, 43, 0.18);
    border-radius: 12px;
    max-width: 320px;
    padding: 12px 16px;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 4rem 5% 3rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #94a3b8;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .social-links {
    margin-top: auto;
}

.footer-links {
    justify-self: end;
    text-align: right;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
    margin-bottom: 0;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #00d47e;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* removed footer-contact CTA */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.4rem;
}

.social-links a:hover {
    color: #00d47e;
    transform: translateY(-3px);
}

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

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

.btn-secondary-alt {
    color: #033039;
    border-color: #033039;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
    overflow: hidden;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(2, 32, 43, 0.25);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
    margin: 0;
    max-height: min(85vh, 640px);
    overflow: hidden;
}

.modal-overlay.open .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 16px 24px;
    /* Reduced padding */
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 16px 24px 16px 16px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
    margin: 4px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.modal-footer {
    padding: 16px 24px;
    /* Reduced padding */
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    flex-shrink: 0;
}

.btn-primary.btn-submit {
    background-color: #00d47e;
    /* Updated to match brand green */
}

.btn-primary.btn-submit:hover {
    background-color: #00b86d;
    /* Darker shade of brand green */
}

.btn-cancel:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #f8fafc;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00c896;
    box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.15);
    background: #ffffff;
    outline: 2px solid rgba(0, 200, 150, 0.22);
    outline-offset: 0;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-icon {
    width: 16px;
    height: 16px;
}

.btn-cancel {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    background: #e2e8f0;
    color: #334155;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #cbd5e1;
}

/* ============================================
   DNA SECTION STYLES
   ============================================ */

/* DNA Section Container */
.dna-section {
    background: #ffffff;
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

/* Header */
.dna-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dna-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* Grid de tarjetas */
.dna-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

/* Tarjetas DNA */
.dna-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #f1f5f9;
    perspective: 1000px;
    overflow: hidden;
}

.dna-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* Efecto de brillo unificado al hover con color verde */
.dna-card:hover .dna-experimentar,
.dna-card:hover .dna-aprender,
.dna-card:hover .dna-compartir {
    box-shadow: 0 12px 40px rgba(0, 200, 150, 0.5);
}

/* Círculos de iconos */
.dna-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.15);
    transform-style: preserve-3d;
    will-change: transform;
}

.dna-icon-circle img,
.dna-icon-circle svg {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Color unificado para todos los círculos - verde claro #dbf8ec */
.dna-experimentar,
.dna-aprender,
.dna-compartir {
    background: #dbf8ec;
}

/* Logo DCL */
.dna-logo {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
    animation: float-rotate 4s ease-in-out infinite;
    filter: none;
}

.dna-card:hover .dna-logo {
    animation-play-state: paused;
    filter: brightness(1.1);
}

/* Animación continua para logo DCL - Experimentar */
@keyframes float-rotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-5deg);
    }
}

/* Animación para icono de Experimentar (matraz) - desactivada */
.dna-experimentar svg {
    transform-origin: bottom center;
}

@keyframes flask-bubble {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    15% {
        transform: rotate(-8deg) translateY(-2px);
    }
    30% {
        transform: rotate(8deg) translateY(-4px);
    }
    45% {
        transform: rotate(-6deg) translateY(-2px);
    }
    60% {
        transform: rotate(6deg) translateY(-3px);
    }
    75% {
        transform: rotate(-4deg) translateY(-1px);
    }
    90% {
        transform: rotate(3deg) translateY(0);
    }
}

.dna-card:hover .dna-experimentar svg {
}

@keyframes flask-shake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    20% {
        transform: rotate(-12deg) scale(1.1);
    }
    40% {
        transform: rotate(12deg) scale(1.1);
    }
    60% {
        transform: rotate(-8deg) scale(1.05);
    }
    80% {
        transform: rotate(8deg) scale(1.05);
    }
}

/* Animación para icono de Aprender - desactivada */
.dna-aprender svg {
    transform-origin: center;
}

@keyframes book-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.dna-card:hover .dna-aprender svg {
}

@keyframes book-open {
    0%, 100% {
        transform: scale(1) rotateY(0deg);
    }
    50% {
        transform: scale(1.1) rotateY(15deg);
    }
}

/* Títulos de tarjetas */
.dna-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

/* Animaciones para la tarjeta Compartir - desactivada */
.dna-card-compartir {
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 200, 150, 0.15);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 200, 150, 0.25);
    }
}

/* Efecto rotatorio para el ícono de compartir - desactivado */
.dna-card-compartir:hover .dna-icon-circle {
}

@keyframes rotate-gentle {
    0%, 100% {
        transform: scale(1.1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(5deg);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
    }
    75% {
        transform: scale(1.15) rotate(-5deg);
    }
}

/* Animación mejorada para icono de Compartir - desactivada */
.dna-compartir svg {
    transform-origin: center;
}

@keyframes share-spin-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(10deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-10deg);
    }
}

/* Caja de descripción - Glassmorphism */
.dna-description-box {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 150, 0.2);
    box-shadow: 0 8px 32px rgba(0, 200, 150, 0.15);
    position: relative;
}

.dna-description-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Línea verde clara en la parte superior al hover */
.dna-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7ee8c7, #a8f0d8);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.dna-card:hover::after {
    transform: scaleX(1);
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .dna-card,
    .dna-icon-circle,
    .dna-logo,
    .dna-card-compartir,
    .dna-compartir svg,
    .dna-aprender svg,
    .dna-experimentar svg {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    .dna-icon-circle img,
    .dna-icon-circle svg {
        animation: none !important;
    }
}

/* Mobile: 320–768px */
@media (max-width: 768px) {

    .menu-toggle {
        display: inline-block;
    }
    
    /* Hero móvil - centrado en pantalla */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 5%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -60px;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 1.65rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .cta-buttons .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        width: auto;
        justify-content: center;
    }
    
    .hero-decor .orb {
        width: 80px;
        height: 80px;
        opacity: 0.25;
    }
    
    .dna-section {
        padding: 30px 0 40px;
    }
    
    .dna-header {
        margin-bottom: 1.5rem;
    }
    
    .dna-header h2 {
        font-size: 1.6rem;
    }
    
    .dna-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dna-card {
        padding: 1rem 0.15rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dna-icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .dna-icon-circle svg {
        width: 28px;
        height: 28px;
    }
    
    /* Animaciones en móvil - desactivadas */
    .dna-experimentar svg {
    }
    
    .dna-aprender svg {
    }
    
    .dna-compartir svg {
    }
    
    .dna-logo {
        width: 38px;
    }
    
    .dna-card h3 {
        font-size: 0.9rem;
    }
    
    .dna-description-box {
        padding: 1rem 1.25rem;
        margin: 0 1rem;
    }
    
    .dna-description-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 5%;
        right: 5%;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 18px 40px rgba(2, 32, 43, 0.12);
        border-radius: 12px;
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    nav {
        gap: 0.5rem;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        flex-direction: column;
    }

    .services-grid,
    .philosophy-grid,
    .profile-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        gap: 1.5rem;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }
    
    .profile-photo {
        width: 110px;
        height: 110px;
        margin-bottom: 1rem;
    }
    
    .profile-card h4 {
        font-size: 1.25rem;
    }
    
    .profile-card p {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-brand p {
        font-size: 1rem;
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-links {
        justify-self: center;
        text-align: center;
    }

    .footer-links h4 {
        font-size: 1.1rem;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    footer {
        padding: 3rem 5% 2rem;
    }
}

/* Tablet: 768–1024px */
@media (min-width: 768px) and (max-width: 1024px) {

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
        min-height: 380px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.25rem;
    }
    
    .dna-section {
        padding: 35px 0 45px;
    }
    
    .dna-header {
        margin-bottom: 1.75rem;
    }
    
    .dna-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-bottom: 1.75rem;
    }
    
    .dna-card {
        padding: 2rem 1.25rem 1.25rem;
    }
    
    .dna-icon-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 0.85rem;
    }
    
    .dna-logo {
        width: 40px;
    }
    
    .dna-card h3 {
        font-size: 1.4rem;
    }
    
    .dna-description-box {
        padding: 1.35rem 2rem;
    }
    
    .dna-description-box p {
        font-size: 1rem;
    }
}

/* Desktop: 1024–1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens: 1440px+ */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
}

/* Headline size tweak for small screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* ============================================
   ABOUT US PAGE SPECIFIC STYLES
   ============================================ */

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: block;
    /* Override flex from .hero if needed, or just rely on .hero-content change */
    padding-top: 120px;
    /* Give more space from top */
}

.about-hero .hero-content {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-hero-header {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 500;
}

/* Mission & Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mv-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.mv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #00d47e, #00a078, #033039);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 126, 0.25);
    border-color: rgba(0, 212, 126, 0.3);
}

.mv-card:hover::before {
    opacity: 1;
}

/* Mission Card Specific */
.mission-card .mv-icon-container {
    background: linear-gradient(135deg, rgba(0, 212, 126, 0.15), rgba(0, 160, 120, 0.1));
}

/* Vision Card Specific */
.vision-card .mv-icon-container {
    background: linear-gradient(135deg, rgba(3, 48, 57, 0.15), rgba(5, 81, 96, 0.1));
}

/* Icon Container */
.mv-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s ease;
}

.mv-card:hover .mv-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.mv-icon {
    width: 50px;
    height: 50px;
    color: #00d47e;
    transition: all 0.4s ease;
}

.vision-card .mv-icon {
    color: #033039;
}

.mv-card:hover .mv-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 126, 0.4));
}

.mv-card h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mv-card p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
}

/* Philosophy Section Enhancements */
.philosophy-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-card:hover .philosophy-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.philosophy-icon {
    width: 40px;
    height: 40px;
    color: white;
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.6));
}

.philosophy-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 212, 126, 0.4), rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.philosophy-card:hover::after {
    opacity: 1;
}

.philosophy-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 212, 126, 0.3);
}

.philosophy-number {
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-number {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Responsive Design for About Us Page */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mv-card {
        padding: 2rem 1.5rem;
    }

    .mv-icon-container {
        width: 80px;
        height: 80px;
    }

    .mv-icon {
        width: 40px;
        height: 40px;
    }

    .mv-card h3 {
        font-size: 1.5rem;
    }

    .mv-card p {
        font-size: 1rem;
    }

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

    .philosophy-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .philosophy-icon {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Animation delays for staggered reveal */
.mission-vision-grid .mv-card:nth-child(1) {
    transition-delay: 0.1s;
}

.mission-vision-grid .mv-card:nth-child(2) {
    transition-delay: 0.2s;
}

/* Enhanced scroll reveal for about page */
.about-hero .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.about-hero .reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GUIDING PRINCIPLES SECTION
   ============================================ */

.guiding-principles {
    background: #f8fafc;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.guiding-principles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c896, #033039, #00c896);
}

.guiding-principles .section-header h2 {
    color: #1e293b;
}

.guiding-principles .section-header p {
    color: #64748b;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.principle-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00c896, #00d47e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 200, 150, 0.2);
    border-color: rgba(0, 200, 150, 0.3);
}

.principle-number-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 200, 150, 0.1);
    line-height: 1;
    transition: all 0.4s ease;
}

.principle-card:hover .principle-number-badge {
    color: rgba(0, 200, 150, 0.2);
    transform: scale(1.1);
}

.principle-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e6faf3, #dbf8ec);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.principle-card:hover .principle-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(0, 200, 150, 0.3);
    background: linear-gradient(135deg, #00d47e, #00c896);
}

.principle-icon {
    width: 40px;
    height: 40px;
    color: #00c896;
    transition: all 0.4s ease;
}

.principle-card:hover .principle-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.principle-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
}

.principle-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.principle-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e6faf3, #f0fdf4);
    color: #047857;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 200, 150, 0.2);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, #00d47e, #00c896);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

/* Stagger animation for principle cards */
.principles-grid .principle-card:nth-child(1) {
    transition-delay: 0s;
}

.principles-grid .principle-card:nth-child(2) {
    transition-delay: 0.1s;
}

/* Responsive for Guiding Principles */
@media (max-width: 768px) {
    .guiding-principles {
        padding: 3rem 0;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .principle-card {
        padding: 2rem 1.5rem;
    }

    .principle-number-badge {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .principle-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .principle-icon {
        width: 35px;
        height: 35px;
    }

    .principle-content h3 {
        font-size: 1.4rem;
    }

    .principle-description {
        font-size: 1rem;
    }

    .keyword-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .principle-card {
        padding: 2rem;
    }
}
