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

:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3d;
    --accent-color: #4caf50;
    --accent-light: #81c784;
    --accent-dark: #388e3c;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fffe;
    --bg-accent: #e8f5e8;
    --border-color: #e0e7e0;
    --shadow-light: 0 4px 20px rgba(76, 175, 80, 0.1);
    --shadow-medium: 0 8px 32px rgba(76, 175, 80, 0.15);
    --shadow-heavy: 0 12px 48px rgba(76, 175, 80, 0.2);
    --gradient-primary: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #4caf50 100%);
    --gradient-secondary: linear-gradient(135deg, #e8f5e8 0%, #f8fffe 100%);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Language Toggle System */
.en-text {
    display: none;
}

body.en .bg-text {
    display: none;
}

body.en .en-text {
    display: inline;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-accent);
}

.nav-link:hover::before {
    width: 80%;
}

.language-toggle {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
}

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

.globe-icon {
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23ffffff' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: particles-drift 20s linear infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
    position: relative;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.element-1 {
    top: 10%;
    left: 10%;
    animation: float-1 6s ease-in-out infinite;
}

.element-2 {
    top: 20%;
    right: 10%;
    animation: float-2 6s ease-in-out infinite 1s;
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation: float-3 6s ease-in-out infinite 2s;
}

.element-4 {
    bottom: 10%;
    right: 20%;
    animation: float-4 6s ease-in-out infinite 3s;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.02em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 400;
}

/* About Section */
.about {
    background: var(--gradient-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.05), transparent);
    transition: var(--transition);
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.about-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Innovation Section */
.innovation {
    padding: 120px 0;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.innovation-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.innovation-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2.5rem;
    color: white;
    position: relative;
    box-shadow: var(--shadow-light);
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.innovation-card:hover .card-icon::before {
    width: 100%;
    height: 100%;
}

.innovation-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.innovation-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video Section */
.videos {
    background: white;
    padding: 120px 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-info {
    padding: 32px;
    background: white;
}

.video-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video controls styling */
video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-fullscreen-button {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Research Section */
.research {
    background: var(--gradient-secondary);
    padding: 120px 0;
}

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

.research-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.research-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--accent-color);
}

.research-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.research-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-accent);
    border-radius: 12px;
    margin-top: 24px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Implementation Section */
.implementation {
    padding: 120px 0;
}

.implementation-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.implementation-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-duration {
    display: inline-block;
    background: var(--bg-accent);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Partnership Section */
.partnership {
    padding: 120px 0;
    background: white;
}

.partnership-content {
    margin-bottom: 80px;
}

.partnership-main {
    margin-bottom: 60px;
}

.partnership-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.partnership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.partnership-card.featured {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-heavy);
    transform: scale(1.02);
}

.partnership-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.partnership-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.partnership-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.partnership-card.featured h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.partnership-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.partnership-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.partnership-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.partnership-benefits {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.partnership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    background: var(--gradient-secondary);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Benefits Section */
.benefits {
    background: var(--gradient-secondary);
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent-color);
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0;
}

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

.contact .section-header h2::after {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--accent-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.3);
}

.submit-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-medium);
}

.submit-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Footer */
.footer {
    background: #0f1419;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent-light);
    background: rgba(129, 199, 132, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes particles-drift {
    0% { transform: translateX(0px); }
    100% { transform: translateX(100px); }
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-180deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-180deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .implementation-timeline::before {
        left: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .visual-element {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .about-grid,
    .innovation-grid,
    .research-grid,
    .benefits-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-wrapper video {
        height: 240px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .implementation-timeline::before {
        left: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-card,
    .innovation-card,
    .research-card,
    .benefit-card {
        padding: 32px 24px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Landing Page Styles */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #4caf50 50%, #2d5a3d 75%, #1a472a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.landing-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.05) 20px,
        rgba(255, 255, 255, 0.05) 40px
    );
    animation: diagonalMove 20s linear infinite;
}

@keyframes diagonalMove {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(0%, 0%); }
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.landing-header {
    margin-bottom: 60px;
}

.eu-funding-text {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    line-height: 1.6;
}

.landing-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.flag-container {
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.flag-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

.eu-flag, .bulgarian-flag, .custom-logo {
    border-radius: 8px;
    display: block;
}

.enter-button {
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2d5a3d 0%, #4caf50 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.enter-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

.enter-button:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* EU Funding Header Styles */
.eu-funding-header {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    min-height: 15vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.eu-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.eu-header-text {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

.eu-header-flags {
    display: flex;
    gap: 20px;
    align-items: center;
}

.eu-flag-small, .bulgarian-flag-small, .custom-logo-small {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.eu-flag-small:hover, .bulgarian-flag-small:hover, .custom-logo-small:hover {
    transform: scale(1.1);
}

/* EU Funding Section (Bottom) Styles */
.eu-funding-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8fffe 100%);
    padding: 60px 0;
    border-top: 2px solid var(--border-color);
}

.eu-funding-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eu-funding-top-text {
    text-align: center;
    margin-bottom: 20px;
}

.funding-header-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
}

.eu-funding-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.eu-funding-flags {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}

.funding-logo, .eu-flag-funding, .bulgarian-flag-funding {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.funding-logo:hover, .eu-flag-funding:hover, .bulgarian-flag-funding:hover {
    transform: scale(1.05);
}

.eu-funding-text {
    flex: 1;
    max-width: 600px;
}

.funding-main-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.funding-sub-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Responsive Design for New Elements */
@media screen and (max-width: 768px) {
    .landing-page {
        padding: 20px;
    }
    
    .eu-funding-text {
        font-size: 18px;
    }
    
    .landing-flags {
        gap: 30px;
    }
    
    .flag-container svg,
    .flag-container img {
        width: 200px;
        height: 133px;
    }
    
    .enter-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .eu-funding-header {
        padding: 15px 0;
        min-height: auto;
    }
    
    .eu-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .eu-header-text {
        font-size: 16px;
    }
    
    .eu-header-flags {
        justify-content: center;
    }
    
    .eu-flag-small, .bulgarian-flag-small, .custom-logo-small {
        width: 45px;
        height: 30px;
    }
    
    .eu-funding-bottom-row {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .eu-funding-flags {
        gap: 30px;
    }
    
    .funding-logo, .eu-flag-funding, .bulgarian-flag-funding {
        width: 120px;
        height: 80px;
    }
    
    .funding-header-text {
        font-size: 18px;
    }
    
    .funding-main-text {
        font-size: 20px;
    }
    
    .funding-sub-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .eu-funding-text {
        font-size: 16px;
    }
    
    .flag-container svg,
    .flag-container img {
        width: 150px;
        height: 100px;
    }
    
    .landing-flags {
        gap: 20px;
    }
    
    .enter-button {
        padding: 12px 30px;
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .eu-header-text {
        font-size: 14px;
    }
    
    .eu-flag-small, .bulgarian-flag-small, .custom-logo-small {
        width: 36px;
        height: 24px;
    }
    
    .funding-logo, .eu-flag-funding, .bulgarian-flag-funding {
        width: 90px;
        height: 60px;
    }
    
    .funding-header-text {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .funding-main-text {
        font-size: 18px;
    }
    
    .funding-sub-text {
        font-size: 12px;
        padding: 0 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #404040;
    }
}