/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    opacity: 0;
    animation: page-fade-in 0.8s ease-out forwards;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #2E5BBA;
    color: white;
}

.btn-primary:hover {
    background: #1e3f8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 91, 186, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2E5BBA;
    border: 2px solid #2E5BBA;
}

.btn-outline:hover {
    background: #2E5BBA;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.nav-brand .logo,
.footer-logo {
    display: flex;
}

.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-link:hover .logo-text {
    color: #1e3f8a;
}

.logo-link:hover .logo-subtitle {
    color: #555;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E5BBA;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2E5BBA;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line-1 {
    display: block;
    margin-left: 0px;
    margin-bottom: -3rem;
}

.title-line-2 {
    display: block;
    margin-left: 40px;
    margin-bottom: -3rem;
}

.highlight {
    display: block;
    margin-left: 80px;
    margin-top: 0;
    color: #2E5BBA;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(20%);
    transition: transform 1.1s ease, opacity 1.1s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.hero-slide.exiting {
    opacity: 0;
    transform: translateX(-20%);
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 25px 55px rgba(30, 64, 175, 0.18));
}

/* Smooth parallax for mouse movement */
.hero-image:hover .hero-img {
    transition: transform 0.2s ease-out;
}

.hero-image:hover .hero-slide.active .hero-img {
    transform: scale(1.02);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2E5BBA;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    text-align: justify;
}

/* Research Section */
.research {
    background: white;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.equipment-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.equipment-groups--single {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.equipment-category {
    background: #f9fbff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(46, 91, 186, 0.12);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.equipment-category h3 {
    font-size: 1.4rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.equipment-category p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.equipment-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.equipment-category .project-accordion {
    margin-bottom: 0;
}

.equipment-category .accordion-panel {
    background: #ffffff;
    border-radius: 0 0 14px 14px;
}

.equipment-category .accordion-panel.open {
    padding-bottom: 1.75rem;
}

.equipment-details {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: #4a5568;
}

.equipment-details li {
    margin-bottom: 0.4rem;
}

/* Equipment Single Column Layout */
.equipment-single-column {
    max-width: 900px;
    margin: 0 auto;
}

.equipment-list {
    display: grid;
    gap: 1.5rem;
}

.equipment-item {
    background: #f9fbff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    border-left: 4px solid #2E5BBA;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(46, 91, 186, 0.15);
}

.equipment-item h4 {
    font-size: 1.15rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.equipment-item p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.equipment-item p strong {
    color: #2E5BBA;
    font-weight: 600;
}

.research-card {
    display: block;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.research-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.research-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E5BBA, #3b90d4);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.icon-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.research-card h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.research-card p {
    color: #666;
    line-height: 1.6;
}

/* Achievements Section */
.achievements {
    background: #f8fafc;
}

.achievements-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: #2E5BBA;
    border-bottom-color: #2E5BBA;
}

.tab-panel {
    display: none !important;
}

.tab-panel.active {
    display: block !important;
}

.achievement-item {
    display: block;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.achievement-item.has-cta {
    position: relative;
    padding-bottom: 4rem;
}

.achievement-cta {
    position: absolute;
    right: 2rem;
    bottom: 1.75rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #2E5BBA;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.achievement-item.has-cta:hover .achievement-cta {
    background: #1e3f8a;
    transform: translateY(-1px);
}

/* Projects Page */
body.projects-page {
    background: #f8fafc;
}

.projects-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.projects-hero-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.projects-hero-text {
    flex: 1 1 480px;
}

.projects-breadcrumb {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2E5BBA;
}

.projects-hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.projects-hero-text p {
    font-size: 1.1rem;
    color: #4a5568;
}

.projects-hero-summary {
    flex: 1 1 320px;
    display: grid;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(46, 91, 186, 0.12);
}

.projects-hero-summary div {
    display: flex;
    flex-direction: column;
}

.summary-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2E5BBA;
}

.summary-label {
    font-size: 0.95rem;
    color: #4a5568;
}

.projects-explorer {
    padding: 40px 0 120px;
}

.projects-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 2.5rem;
}

.projects-tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #d5dbea;
    padding-bottom: 0.5rem;
    overflow: visible;
}

.projects-tab-btn {
    position: relative;
    flex: 1 1 0;
    text-align: center;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.projects-tab-btn::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
    border-radius: 999px;
}

.projects-tab-btn:hover {
    color: #2E5BBA;
}

.projects-tab-btn:hover::after {
    background: rgba(46, 91, 186, 0.4);
}

.projects-tab-btn.active {
    background: #fff;
    color: #1a202c;
    border-color: #d5dbea;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    z-index: 1;
}

.projects-tab-btn.active::after {
    background: #2E5BBA;
}

@media (max-width: 1100px) {
    .projects-tab-btn {
        font-size: 0.85rem;
        padding: 0.75rem 0.9rem;
    }
}

@media (max-width: 900px) {
    .projects-tab-buttons {
        gap: 0.25rem;
    }

    .projects-tab-btn {
        font-size: 0.78rem;
        padding: 0.65rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .projects-tab-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .projects-tab-btn {
        flex: 0 1 auto;
        min-width: fit-content;
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
        border: 1px solid #d5dbea;
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .projects-tab-btn::after {
        display: none;
    }
    
    .projects-tab-btn.active {
        background: #2E5BBA;
        color: white;
        border-color: #2E5BBA;
    }
}

@media (max-width: 480px) {
    .projects-tab-btn {
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

.projects-tab {
    display: none;
}

.projects-tab.active {
    display: block;
}

.tab-intro {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.project-accordion {
    background: #f9fbff;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #1a202c;
    transition: background 0.3s ease;
}

.accordion-trigger:hover,
.accordion-trigger.open {
    background: rgba(46, 91, 186, 0.08);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.project-year {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(46, 91, 186, 0.12);
    color: #2E5BBA;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a202c;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #2E5BBA;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-trigger.open .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
    padding: 0 1.75rem;
    color: #4a5568;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-panel p {
    margin-top: 1rem;
}
.accordion-panel.open {
    padding: 0 1.75rem 1.5rem;
}

.accordion-panel ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: #4a5568;
}

.accordion-panel li {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .projects-hero-content {
        gap: 2rem;
    }

    .projects-hero-summary {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-tabs {
        padding: 1.75rem;
    }

    .accordion-trigger {
        padding: 1.1rem 1.25rem;
    }

    .accordion-panel {
        padding: 0 1.25rem 1.25rem;
    }
}

.achievement-item:hover {
    transform: translateY(-2px);
}

.achievement-item h4 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.achievement-item p {
    color: #666;
    margin: 0;
}

/* Collaboration Section */
.collaboration {
    background: white;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.collaboration-category {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collaboration-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.collaboration-category h3 {
    color: #1a202c;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.collaboration-category ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.collaboration-category li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.75rem;
    color: #4a5568;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.collaboration-category li:last-child {
    border-bottom: none;
}

.collaboration-category li::before {
    content: '\2022';
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    color: #2E5BBA;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.collaboration-category li:hover {
    padding-left: 2rem;
    color: #2E5BBA;
}

.collaboration-category li:hover::before {
    transform: scale(1.2);
}

.logo-carousel {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
    user-select: none;
}

.logo-carousel::before,
.logo-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    will-change: transform;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 350px;
    height: 50px;
    text-decoration: none;
    flex: 0 0 auto;
    filter: grayscale(150%) saturate(100%) brightness(100%) contrast(1.1);
    opacity: 0.5;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.logo-item:hover,
.logo-item:focus {
    transform: scale(1.05);
    filter: none;
    opacity: 1;
}

.logo-item:focus-visible {
    outline: 2px solid #2E5BBA;
    outline-offset: 6px;
}

.logo-item img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .logo-carousel::before,
    .logo-carousel::after {
        width: 100px;
    }

    .logo-track {
        gap: 3rem;
    }

    .logo-item {
        min-width: 180px;
        height: 110px;
    }

    .logo-item img {
        max-height: 90px;
    }
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 2rem 0;
    }

    .logo-carousel::before,
    .logo-carousel::after {
        width: 80px;
    }

    .logo-item {
        min-width: 150px;
        height: 100px;
    }

    .logo-item img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .logo-carousel::before,
    .logo-carousel::after {
        width: 60px;
    }

    .logo-track {
        gap: 2rem;
    }

    .logo-item {
        min-width: 140px;
        height: 95px;
    }

    .logo-item img {
        max-height: 75px;
    }
}

/* Offer Section */
.offer {
    background: white;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.offer-item {
    display: block;
    text-decoration: none;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Offer Detail Template */
.section-light {
    background: #f8fafc;
}

.section-default {
    background: white;
}

.offer-hero {
    padding-top: 140px;
    text-align: center;
}

.offer-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.offer-hero-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(46, 91, 186, 0.1);
    color: #2E5BBA;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.offer-hero-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.offer-hero-lead {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.offer-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.offer-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.offer-overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.offer-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: start;
}

.offer-column h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.offer-bullet-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.offer-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #4a5568;
}

.offer-bullet-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: #2E5BBA;
    font-size: 1.5rem;
    line-height: 1;
}

.offer-stats {
    display: grid;
    gap: 1.5rem;
}

.offer-stat {
    background: rgba(46, 91, 186, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.offer-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2E5BBA;
}

.offer-stat-label {
    color: #4a5568;
    font-weight: 500;
}

.offer-steps {
    display: grid;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.offer-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.offer-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E5BBA, #3b90d4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.offer-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-case-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: inset 0 0 0 1px rgba(46, 91, 186, 0.12);
}

.offer-case-card h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.offer-case-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: #4a5568;
}

.offer-case-list li {
    position: relative;
    padding-left: 1.5rem;
}

.offer-case-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: #2E5BBA;
    font-weight: 700;
}

.offer-cta {
    padding-bottom: 100px;
}

.offer-cta-box {
    background: linear-gradient(135deg, #2E5BBA, #3b90d4);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    color: white;
    flex-wrap: wrap;
}

.offer-cta-box h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.offer-cta-box p {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .offer-hero-title {
        font-size: 2.25rem;
    }

    .offer-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .offer-step-number {
        margin: 0 auto;
    }

    .offer-cta-box {
        text-align: center;
        justify-content: center;
    }
}

.offer-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.offer-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E5BBA, #3b90d4);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
}

.offer-icon .icon-img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.offer-item h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.offer-item p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
}


/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2E5BBA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
    margin: 0;
}

.contact-form {
    width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #2E5BBA;
    border-right: 4px solid #2E5BBA;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #c7c7c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E5BBA;
}

.captcha-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.captcha-question {
    font-weight: 600;
    color: #2E5BBA;
}

.captcha-refresh {
    padding: 0.5rem 0.9rem;
    min-width: auto;
}

.captcha-help {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.form-group input.is-invalid {
    border-color: #d93025;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #1a8d3c;
    display: none;
}

.form-status.error {
    color: #d93025;
}

.form-status.show {
    display: block;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-subtitle {
    color: #a0aec0;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2E5BBA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line-1,
    .title-line-2,
    .highlight {
        margin-left: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .highlight {
        white-space: normal;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .equipment-category {
        padding: 2rem;
        box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
    }
    
    .equipment-groups {
        gap: 1.75rem;
    }

    .hero-carousel {
        aspect-ratio: 3 / 2;
        min-height: 260px;
    }
    
    /* Wyłącz efekt parallax na mobile */
    .hero-image:hover .hero-img {
        transition: none;
        transform: none !important;
    }
    
    .hero-image:hover .hero-slide.active .hero-img {
        transform: none !important;
    }
    
    .hero-slide img {
        filter: drop-shadow(0 15px 35px rgba(30, 64, 175, 0.12));
    }
}

@media (max-width: 480px) {
    .nav-menu {
        top: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .title-line-1,
    .title-line-2,
    .highlight {
        margin-left: 0 !important;
        margin-bottom: 0.3rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-category {
        padding: 1.75rem;
    }
    
    .hero-carousel {
        aspect-ratio: 1;
        min-height: 220px;
    }
    
    .hero-slide {
        padding: 0.25rem;
    }
    
    .hero-slide img {
        filter: drop-shadow(0 10px 25px rgba(30, 64, 175, 0.1));
    }
}

@media (max-width: 1024px) {
    .research-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .research-grid--four {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}



/* Team Section */
.team {
    background: #f8fafc;
}

.team-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-member {
    flex: 0 0 33.33%; /* Show 3 members at a time */
    max-width: 33.33%;
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 1rem; /* Spacing between members */
    box-sizing: border-box;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #2E5BBA;
    box-shadow: 0 0 0 8px rgba(46, 91, 186, 0.2);
}

.team-member h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-member .social-links a {
    background: #666;
}

.team-member .social-links a:hover {
    background: #2E5BBA;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 91, 186, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-button:hover {
    background: #2E5BBA;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

@media (max-width: 1024px) {
    .team-member {
        flex: 0 0 50%; /* Show 2 members at a time */
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .team-member {
        flex: 0 0 100%; /* Show 1 member at a time */
        max-width: 100%;
    }
    .carousel-button {
        padding: 0.75rem;
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

/* Enhanced parallax styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
    transition: transform 0.1s ease-out;
}

.hero-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Smooth parallax for mouse movement */
.hero-image:hover .hero-img {
    transition: transform 0.2s ease-out;
}

/* Performance optimizations */
.hero-section * {
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
