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

body {
    font-family: 'Red Hat Display', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 66, 62, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo .logo {
    height: 40px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4ade80;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4ade80;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #08423E 0%, #0a5a54 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #4ade80;
    color: #08423E;
}

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

/* Tetris Animation Container */
.tetris-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tetris-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.tetris-block {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.tetris-block.type-1 {
    background: #08423E;
    border: 2px solid #0a5a54;
}

.tetris-block.type-2 {
    background: #4ade80;
    border: 2px solid #22c55e;
}

.tetris-block.type-3 {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tetris-block.type-4 {
    background: #10b981;
    border: 2px solid #059669;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #08423E;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fffe;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-item {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(8, 66, 62, 0.1);
    overflow: hidden;
}

.about-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.about-item[data-bg="specialist-focus"]::before {
    background-image: url('about-bg-1.jpg');
}

.about-item[data-bg="leadership"]::before {
    background-image: url('about-bg-2.jpg');
}

.about-item[data-bg="funding"]::before {
    background-image: url('about-bg-3.jpg');
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #08423E;
    margin-bottom: 1rem;
}

.about-item p {
    color: #666;
    line-height: 1.7;
}

/* Capabilities Section */
.capabilities {
    background: white;
}

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

.capability-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 66, 62, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 66, 62, 0.1);
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(8, 66, 62, 0.15);
}

.capability-vector-icon {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vector-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.capability-card:hover .vector-icon {
    filter: opacity(1);
    transform: scale(1.1);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.icon-geometric {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.geo-box {
    width: 30px;
    height: 20px;
    background: #08423E;
    border-radius: 2px;
}

.geo-box:nth-child(2) {
    background: #4ade80;
    height: 30px;
    margin-top: -5px;
}

.capability-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #08423E;
    margin-bottom: 1rem;
}

.capability-card p {
    color: #666;
    line-height: 1.7;
}

/* Projects Carousel - CodePen Style Implementation */
.projects {
    background: #f8fffe;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    perspective: 2000px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.21, 0.61, 0.35, 1);
    transform-style: preserve-3d;
    align-items: center;
    justify-content: flex-start;
}

.carousel-card {
    position: relative;
    min-width: 320px;
    max-width: 320px;
    margin: 0 25px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(8, 66, 62, 0.2);
    box-shadow: 0 8px 32px rgba(8, 66, 62, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.75s cubic-bezier(0.21, 0.61, 0.35, 1);
    transform-origin: center center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Card states for centered carousel effect */
.carousel-card:not(.is-active) {
    transform: scale(0.8) rotateY(35deg) translateZ(-100px);
    opacity: 0.6;
    filter: saturate(0.6) brightness(0.7);
}

.carousel-card.is-prev {
    transform-origin: right center;
    transform: scale(0.75) rotateY(45deg) translateX(-80px) translateZ(-150px);
}

.carousel-card.is-next {
    transform-origin: left center;
    transform: scale(0.75) rotateY(-45deg) translateX(80px) translateZ(-150px);
}

.carousel-card.is-active {
    transform: scale(1) rotateY(0) translateZ(0);
    opacity: 1;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(8, 66, 62, 0.2), 0 0 20px rgba(8, 66, 62, 0.1);
    filter: saturate(1.2) brightness(1.1);
}

.card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(8, 66, 62, 0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.carousel-card.is-active .card-image {
    transform: scale(1.05);
}

/* Subtle overlay effect on images */
.card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(8, 66, 62, 0.1), transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(8, 66, 62, 0.05), transparent 50%);
    pointer-events: none;
}

.card-content {
    padding: 1.75rem;
    color: #333;
}

.card-title {
    font-family: "Red Hat Display", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #08423E;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.card-description:last-of-type {
    margin-bottom: 1rem;
}

/* Progress bar styling */
.card-progress {
    height: 4px;
    background: rgba(8, 66, 62, 0.15);
    margin-top: 1.25rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.progress-value {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #08423E, #4ade80);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(8, 66, 62, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 66, 62, 0.9);
    color: white;
    border: 1px solid rgba(8, 66, 62, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(8, 66, 62, 0.2);
}

.carousel-button svg {
    width: 20px;
    height: 20px;
}

.carousel-button:hover {
    background-color: #08423E;
    color: #e0f2fe;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(8, 66, 62, 0.4);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 12px;
}

.carousel-button.next {
    right: 12px;
}

/* Indicator dots */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 24px;
    height: 4px;
    background: rgba(8, 66, 62, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: #08423E;
    box-shadow: 0 0 10px rgba(8, 66, 62, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        padding: 1rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-button.prev {
        left: 5px;
    }

    .carousel-button.next {
        right: 5px;
    }

    .carousel-card {
        min-width: 280px;
        max-width: 280px;
        margin: 0 15px;
    }

    .carousel-card:not(.is-active) {
        transform: scale(0.85) rotateY(25deg);
    }

    .carousel-card.is-prev {
        transform: scale(0.8) rotateY(30deg) translateX(-40px);
    }

    .carousel-card.is-next {
        transform: scale(0.8) rotateY(-30deg) translateX(40px);
    }

    .card-image-container {
        height: 160px;
    }
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.director-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(8, 66, 62, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(8, 66, 62, 0.15);
}

.director-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #08423E;
}

.director-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 66, 62, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.director-card:hover .director-overlay {
    opacity: 1;
}

.director-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #08423E;
    margin-bottom: 0.5rem;
}

.director-title {
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
}

.director-contact {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-form-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #08423E;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close:hover {
    color: #08423E;
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.modal-image {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #08423E;
}

.modal-info h2 {
    color: #08423E;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-info p {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.bio-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
}

/* Footer */
.footer {
    background: #08423E;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-logo .logo {
    height: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(8, 66, 62, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .about-item {
        padding: 2rem;
    }
    
    .tetris-container {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Video Section */
.video-section {
    background: #f8fffe;
    padding: 5rem 0;
}

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

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(8, 66, 62, 0.15);
    background: #08423E;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.video-info {
    padding: 2rem 0;
}

.video-info h3 {
    font-family: "Red Hat Display", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #08423E;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(8, 66, 62, 0.1);
    box-shadow: 0 4px 12px rgba(8, 66, 62, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(8, 66, 62, 0.1);
}

.stat-number {
    display: block;
    font-family: "Red Hat Display", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #08423E;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design for video section */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-info h3 {
        font-size: 1.5rem;
    }
    
    .video-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 3rem 0;
    }
    
    .video-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}
/* Product Section */
.product-section {
    background-color: #08423E;
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.product-container {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-text-overlay {
    position: absolute;
    top: 15%;
    left: 15%;
    z-index: 10;
}

.product-text {
    color: white;
    font-family: "Red Hat Display", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 2rem 2.5rem;
    border: 3px solid white;
    border-radius: 20px;
    background: rgba(8, 66, 62, 0.1);
    backdrop-filter: blur(5px);
    max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-text-overlay {
        top: 10%;
        left: 10%;
    }
    
    .product-text {
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .product-text-overlay {
        top: 8%;
        left: 8%;
    }
    
    .product-text {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        max-width: 250px;
        border-radius: 15px;
    }
}

/* For the honeypot field */
.hidden {
  display: none;
}

/* Thank You Page Styles */
.thank-you-section {
    background-color: #08423E;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.thank-you-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.thank-you-content {
    flex: 1;
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: white;
}

.thank-you-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
}

.thank-you-content h1 {
    font-family: "Red Hat Display", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.thank-you-content p {
    font-family: "Red Hat Display", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.confirmation-icon {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmation-icon svg {
    background: white;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-section .tetris-container {
    flex: 1;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.thank-you-section .tetris-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}