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

:root {
    /* UFP Official Brand Colors */
    --primary-color: #062c33;
    --secondary-color: #23272b;
    --accent-color: #e79a56;
    --primary-light: #0a4a56;
    --accent-light: #f0b47a;
    --text-color: #23272b;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 6px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.lang-btn:hover:not(.active) {
    background: var(--light-bg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    padding: 80px 24px 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 0;
    will-change: transform;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(231, 154, 86, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 154, 86, 0.1) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-30px); opacity: 0.8; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.6;
    will-change: transform;
}

.float-icon {
    position: absolute;
    font-size: 64px;
    animation: float 20s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.float-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 18s; }
.float-icon:nth-child(2) { top: 60%; left: 85%; animation-delay: 2s; animation-duration: 22s; }
.float-icon:nth-child(3) { top: 40%; left: 80%; animation-delay: 4s; animation-duration: 20s; }
.float-icon:nth-child(4) { top: 70%; left: 15%; animation-delay: 1s; animation-duration: 19s; }
.float-icon:nth-child(5) { top: 15%; left: 75%; animation-delay: 3s; animation-duration: 21s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    75% { transform: translateY(-40px) rotate(3deg); }
}

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

.logo {
    max-width: 280px;
    width: 100%;
    margin-bottom: 32px;
    animation: fadeIn 1s ease-out 0.2s both;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) brightness(1.05);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-badge {
    display: inline-block;
    background: rgba(231, 154, 86, 0.2);
    border: 2px solid var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.6s both;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(231, 154, 86, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(231, 154, 86, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 32px;
    color: var(--white);
    opacity: 0.7;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Hero Content Wrapper - Side by side layout */
.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    animation: fadeInUp 1s ease-out;
    will-change: transform, opacity;
}

/* Code Window Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
    will-change: transform, opacity;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-window {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: translateY(-5px);
}

.code-header {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
    margin-left: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.code-content {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #f8f8f2;
}

.code-line {
    animation: typeIn 0.5s ease-out both;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 0.6s; }
.code-line:nth-child(3) { animation-delay: 0.7s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }
.code-line:nth-child(6) { animation-delay: 1.0s; }
.code-line:nth-child(7) { animation-delay: 1.1s; }
.code-line:nth-child(8) { animation-delay: 1.2s; }
.code-line:nth-child(9) { animation-delay: 1.3s; }
.code-line:nth-child(10) { animation-delay: 1.4s; }
.code-line:nth-child(11) { animation-delay: 1.5s; }
.code-line:nth-child(12) { animation-delay: 1.6s; }

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Syntax Highlighting */
.keyword {
    color: #ff79c6;
    font-weight: 600;
}

.module {
    color: #8be9fd;
}

.class-name {
    color: #50fa7b;
    font-weight: 600;
}

.function {
    color: #f1fa8c;
}

.param {
    color: #ffb86c;
    font-style: italic;
}

.string {
    color: #f1fa8c;
}

/* Responsive adjustments for hero */
@media (max-width: 968px) {
    .hero {
        padding: 60px 24px 40px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-badge {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 12px;
    }

    .hero-description {
        margin-bottom: 24px;
    }

    .code-content {
        padding: 20px;
        font-size: 13px;
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 80px 24px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-radius: 20px;
    border: 1px solid rgba(231, 154, 86, 0.1);
    transition: all 0.4s ease;
    will-change: transform;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number sup {
    font-size: 0.5em;
    font-weight: 700;
    top: -0.5em;
    margin-left: 0.1em;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Section Common Styles */
.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Technologies Section */
.tech-section {
    padding: 100px 24px;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(231, 154, 86, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 44, 51, 0.06) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(6, 44, 51, 0.02) 100px, rgba(6, 44, 51, 0.02) 200px);
    pointer-events: none;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.tech-section .container {
    position: relative;
    z-index: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: var(--white);
    padding: 20px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: default;
    will-change: transform;
}

.tech-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--white), rgba(231, 154, 86, 0.05));
}

/* Careers Section */
.careers-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f8fb 50%, #ffffff 100%);
    position: relative;
}

.careers-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.5));
    pointer-events: none;
}

.careers-section .container {
    position: relative;
    z-index: 1;
}

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

.career-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.career-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.career-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.career-salary {
    display: inline-block;
    background: linear-gradient(135deg, rgba(231, 154, 86, 0.1), rgba(231, 154, 86, 0.2));
    color: var(--accent-color);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.career-card p:not(.career-salary) {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(6, 44, 51, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 50%, rgba(231, 154, 86, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(231, 154, 86, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 25s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.features .container {
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 32px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Interest Form Section */
.interest-form-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.interest-form-section .section-title {
    color: var(--white);
}

.interest-form-section .section-title::after {
    background: var(--accent-color);
}

.form-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.interest-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(231, 154, 86, 0.1);
    transform: translateY(-2px);
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(231, 154, 86, 0.3);
    position: relative;
    overflow: hidden;
}

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

.submit-button:hover::before {
    width: 400px;
    height: 400px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 154, 86, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideDown 0.4s ease;
}

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

.form-message.success {
    display: block;
    background: #d4edda;
    color: var(--success);
    border: 2px solid var(--success);
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: var(--error);
    border: 2px solid var(--error);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 24px;
    text-align: center;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 75px 16px 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        padding: 12px 24px;
        font-size: 1rem;
    }

    .scroll-indicator {
        position: relative;
        margin-top: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .careers-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .interest-form {
        padding: 32px 24px;
    }

    .language-switcher {
        top: 16px;
        right: 16px;
    }

    .float-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 12px 30px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
        margin-bottom: 10px;
        margin-top: 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.4rem);
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .code-window {
        font-size: 12px;
    }

    .code-content {
        padding: 16px;
        font-size: 12px;
        line-height: 1.5;
    }

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

    .testimonials-carousel {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

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

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

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Section */
.video-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    overflow: hidden;
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(6, 44, 51, 0.02) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(231, 154, 86, 0.02) 0%, transparent 20%);
    pointer-events: none;
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.video-text h2 {
    text-align: left;
    margin-bottom: 24px;
}

.video-text h2::after {
    left: 0;
    transform: none;
}

.video-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.video-highlights {
    list-style: none;
    padding: 0;
}

.video-highlights li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-left: 0;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 24px;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(231, 154, 86, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 44, 51, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(231, 154, 86, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 30s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(20px) translateY(-10px); }
    66% { transform: translateX(-20px) translateY(10px); }
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.testimonials-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.testimonials-grid {
    display: flex;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonials-grid .testimonial-card {
    flex: 0 0 calc(33.333% - 22px);
    min-width: calc(33.333% - 22px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

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

.carousel-btn.prev {
    left: -60px;
}

.carousel-btn.next {
    right: -60px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(6, 44, 51, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(231, 154, 86, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent-color);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .testimonials-grid .testimonial-card {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
    }

    .testimonials-carousel {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        gap: 0;
    }

    .testimonials-grid .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .testimonials-carousel {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    min-height: 400px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: rgba(231, 154, 86, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.testimonial-card::after {
    content: 'in';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0077b5;
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.testimonial-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 28px;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px solid var(--light-bg);
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-info strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.testimonial-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 24px;
    background: var(--primary-color);
    color: var(--white);
}

.gallery-section .section-title {
    color: var(--white);
}

.gallery-section .section-title::after {
    background: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item.gallery-large {
    grid-column: 1 / -1;
    height: 450px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-item.gallery-large {
        grid-column: span 2;
        height: 400px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Banner */
.cta-banner {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 15s ease-in-out infinite;
}

.cta-banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-banner p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .cta-button {
    background: var(--white);
    color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-banner .cta-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button.pulse {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0.2); }
}

/* Enhanced Parallax Effect */
@media (min-width: 769px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Smooth reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .stat-item,
    .tech-item,
    .career-card,
    .feature-card,
    .testimonial-card,
    .gallery-item {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .stat-item:nth-child(1) { animation-delay: 0.1s; }
    .stat-item:nth-child(2) { animation-delay: 0.2s; }
    .stat-item:nth-child(3) { animation-delay: 0.3s; }
    .stat-item:nth-child(4) { animation-delay: 0.4s; }

    .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
    .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.3s; }

    .gallery-item:nth-child(1) { animation-delay: 0.1s; }
    .gallery-item:nth-child(2) { animation-delay: 0.2s; }
    .gallery-item:nth-child(3) { animation-delay: 0.3s; }
    .gallery-item:nth-child(4) { animation-delay: 0.4s; }
    .gallery-item:nth-child(5) { animation-delay: 0.5s; }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .video-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .gallery-item.gallery-large {
        grid-column: span 1;
        height: 300px;
    }
}

/* Micro-interactions */
@media (hover: hover) {
    .tech-item {
        position: relative;
    }

    .tech-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--accent-color);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .tech-item:hover::after {
        width: 80%;
    }

    .career-icon,
    .feature-icon {
        filter: grayscale(0%);
        transition: filter 0.3s ease;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.show {
    display: flex;
}

.success-modal-content {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: var(--white);
    font-weight: bold;
    animation: scaleIn 0.5s ease 0.2s both;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-content h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.success-modal-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.modal-close-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 154, 86, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 154, 86, 0.4);
}

.modal-close-btn:active {
    transform: translateY(0);
}

/* Parallax Decorative Elements */
.parallax-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tech-float-icon,
.feature-float-icon,
.testimonial-float-icon {
    position: absolute;
    font-size: 80px;
    opacity: 0.15;
    filter: blur(1px);
    transition: all 0.3s ease;
    will-change: transform;
}

.tech-float-icon:nth-child(1) { top: 10%; left: 5%; }
.tech-float-icon:nth-child(2) { top: 20%; right: 8%; }
.tech-float-icon:nth-child(3) { top: 50%; left: 10%; }
.tech-float-icon:nth-child(4) { bottom: 20%; right: 5%; }
.tech-float-icon:nth-child(5) { top: 70%; left: 15%; }
.tech-float-icon:nth-child(6) { bottom: 10%; left: 50%; }

.feature-float-icon:nth-child(1) { top: 15%; left: 8%; }
.feature-float-icon:nth-child(2) { top: 25%; right: 10%; }
.feature-float-icon:nth-child(3) { bottom: 30%; left: 5%; }
.feature-float-icon:nth-child(4) { bottom: 15%; right: 12%; }
.feature-float-icon:nth-child(5) { top: 60%; right: 5%; }

.testimonial-float-icon:nth-child(1) { top: 12%; left: 7%; }
.testimonial-float-icon:nth-child(2) { top: 30%; right: 8%; }
.testimonial-float-icon:nth-child(3) { bottom: 25%; left: 10%; }
.testimonial-float-icon:nth-child(4) { bottom: 40%; right: 15%; }
.testimonial-float-icon:nth-child(5) { top: 70%; left: 50%; }

/* Add subtle animation to decorative elements */
.tech-float-icon,
.feature-float-icon,
.testimonial-float-icon {
    animation: gentleFloat 6s ease-in-out infinite;
}

.tech-float-icon:nth-child(even),
.feature-float-icon:nth-child(even),
.testimonial-float-icon:nth-child(even) {
    animation: gentleFloat 8s ease-in-out infinite reverse;
}

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

/* Adjust decorative elements on small screens */
@media (max-width: 768px) {
    .tech-float-icon,
    .feature-float-icon,
    .testimonial-float-icon {
        font-size: 45px;
        opacity: 0.2;
        will-change: transform, opacity;
        pointer-events: none;
    }
}

/* Print styles */
@media print {
    .language-switcher,
    .scroll-indicator,
    .cta-button,
    .floating-elements,
    .success-modal,
    .parallax-decorations {
        display: none !important;
    }
}
