/* Import Elegant Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Variables for TwinCorr Brand Colors - Dark Theme */
:root {
    --bg-dark: #0A0E27;
    --bg-darker: #060917;
    --card-bg: #0F1829;
    --card-border: rgba(30, 212, 228, 0.15);
    --primary-cyan: #1ED4E4;
    --cyan-glow: rgba(30, 212, 228, 0.3);
    --white: #ffffff;
    --text-gray: #9CA3AF;
    --text-light: #E5E7EB;
    --dark-gray: #1F2937;
    --border-gray: rgba(255, 255, 255, 0.1);
}

/* Page Load Animation */
.page-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.page-intro-overlay.fade-out {
    animation: fadeOut 0.1s ease forwards;
}

.intro-logo {
    width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 50px rgba(30, 212, 228, 0.6));
    animation: introLogoShrink 0.5s ease-in-out 0.75s forwards;
}

@keyframes introLogoShrink {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.01);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

body.page-loading .header,
body.page-loading main,
body.page-loading footer {
    opacity: 0;
    transform: scale(0.8);
}

body.page-loaded .header,
body.page-loaded main,
body.page-loaded footer {
    animation: pageExplodeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pageExplodeIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(rgba(30, 212, 228, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 212, 228, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Image Quality Optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
.header {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 212, 228, 0.1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: visible;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px;
    position: relative;
    overflow: visible;
}

.nav-brand {
    overflow: visible;
    z-index: 1001;
    position: absolute;
    left: 20px;
    top: -1px;
}

.nav-brand .logo {
    height: 144px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    position: relative;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(30, 212, 228, 0.3));
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: 180px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-cyan);
    background: rgba(30, 212, 228, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

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

.language-switcher {
    margin-left: auto;
}

.language-switcher .lang-select {
    background: rgba(30, 212, 228, 0.1);
    color: var(--white);
    border: 1px solid var(--card-border);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.language-switcher .lang-select:hover {
    background: rgba(30, 212, 228, 0.2);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(30, 212, 228, 0.3);
}

/* Mobile Navigation */
.mobile-nav-icons {
    display: none;
    gap: 8px;
    align-items: center;
}

.mobile-icon-btn {
    background: rgba(30, 212, 228, 0.15);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(30, 212, 228, 0.3);
    font-size: 18px;
    color: var(--primary-cyan);
    text-decoration: none;
    z-index: 1001;
    position: relative;
}

.mobile-icon-btn:hover {
    background: rgba(30, 212, 228, 0.25);
    box-shadow: 0 0 20px rgba(30, 212, 228, 0.5);
}

.mobile-nav-toggle {
    display: none;
    background: rgba(30, 212, 228, 0.15);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(30, 212, 228, 0.3);
}

.mobile-nav-toggle:hover {
    background: rgba(30, 212, 228, 0.25);
    box-shadow: 0 0 20px rgba(30, 212, 228, 0.5);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-cyan);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-cyan);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--primary-cyan);
}

.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
    background: var(--primary-cyan);
}

/* Mobile Language Dropdown */
.mobile-lang-dropdown {
    position: fixed;
    top: 70px;
    right: 15px;
    background: var(--card-bg);
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-lang-dropdown.active {
    display: flex;
}

.mobile-lang-option {
    padding: 12px 20px;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 15px;
    white-space: nowrap;
}

.mobile-lang-option:hover {
    background: rgba(30, 212, 228, 0.15);
    color: var(--primary-cyan);
}

.mobile-lang-option.active {
    background: rgba(30, 212, 228, 0.2);
    color: var(--primary-cyan);
    font-weight: 600;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #0F1829 0%, #0A0E27 100%);
    border-left: 2px solid var(--primary-cyan);
    z-index: 1000;
    padding: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(30, 212, 228, 0.2);
    background: rgba(30, 212, 228, 0.05);
}

.mobile-nav-header h3 {
    color: var(--primary-cyan);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.mobile-nav-links .nav-link {
    padding: 16px 20px;
    background: rgba(30, 212, 228, 0.05);
    border: 1px solid rgba(30, 212, 228, 0.15);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    transition: all 0.3s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link:active {
    background: rgba(30, 212, 228, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(30, 212, 228, 0.3);
    transform: translateX(-5px);
}

.mobile-nav-links .nav-link::after {
    display: none;
}

.mobile-language-switcher {
    padding: 20px;
    border-top: 1px solid rgba(30, 212, 228, 0.2);
    margin-top: auto;
}

.mobile-language-switcher h4 {
    color: var(--primary-cyan);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-language-switcher .lang-select {
    width: 100%;
    font-size: 16px;
    padding: 14px 16px;
    background: rgba(30, 212, 228, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
    margin-top: 69px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 212, 228, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 212, 228, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    line-height: 1.2;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #1ED4E4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--primary-cyan);
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    line-height: 1.7;
    letter-spacing: 0.03em;
    font-style: italic;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-cyan);
    color: #0A0E27;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    font-size: 16px;
    min-height: 44px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(30, 212, 228, 0.5);
}

.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:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 212, 228, 0.6);
    background: #25E4F4;
}

/* Sections Common Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--white);
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 70px;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
}

/* About Section */
.about {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 212, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 212, 228, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 212, 228, 0.08) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 212, 228, 0.5), transparent);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    gap: 50px;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary-cyan), #25E4F4, var(--primary-cyan), #25E4F4);
    background-size: 400% 400%;
    animation: borderGlow 3s ease infinite;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 30px rgba(30, 212, 228, 0.6);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 50px rgba(30, 212, 228, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 30px rgba(30, 212, 228, 0.6);
    }
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 5px;
}

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

/* Apps Section */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.app-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 212, 228, 0.1), transparent);
    transition: left 0.5s;
}

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

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 212, 228, 0.3);
    border-color: var(--primary-cyan);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-cyan), #25E4F4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: floatIcon 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(30, 212, 228, 0.5);
}

.app-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary-cyan), #25E4F4);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    filter: blur(15px);
}

.app-icon-large {
    width: 300px;
    height: 300px;
    margin: 0 auto 25px;
}

.app-icon-placeholder {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.app-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
    letter-spacing: 0.02em;
}

.app-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-gray);
}

.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 212, 228, 0.1);
    color: var(--primary-cyan);
    border: 1px solid var(--card-border);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    min-height: 44px;
    min-width: 120px;
}

.app-link:hover {
    background: var(--primary-cyan);
    color: #0A0E27;
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 212, 228, 0.4);
}

/* Contact Section */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-label {
    font-weight: 600;
    width: 80px;
    color: var(--text-light);
}

.contact-value {
    color: var(--primary-cyan);
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(10, 14, 39, 0.5);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(30, 212, 228, 0.3);
}

.submit-button {
    background: var(--primary-cyan);
    color: #0A0E27;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(30, 212, 228, 0.4);
}

.submit-button:hover {
    background: #25E4F4;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 212, 228, 0.5);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: var(--white);
    padding: 50px 0 20px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 15px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links h4,
.footer-apps h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links a,
.footer-apps a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-apps a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    color: var(--text-gray);
}

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

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

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

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

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

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

/* Scroll Reveal Effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.app-card.reveal {
    transform: translateY(50px) scale(0.95);
}

.app-card.reveal-active {
    transform: translateY(0) scale(1);
}

/* Responsive Design - Mobile First Approach */

/* Large tablets and small desktops */
/* Desktop layout for About section */
@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }
    
    .about-text {
        flex: 1;
        max-width: 600px;
        text-align: left;
    }
    
    .about-text p {
        text-align: left;
    }
    
    .about-image {
        flex: 0 0 450px;
        max-width: 450px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Tablets and mobile devices */
@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    /* Show mobile navigation */
    .mobile-nav-icons {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    /* Header adjustments */
    .header .container {
        padding: 2px 15px;
        justify-content: space-between;
    }
    
    .mobile-nav-icons {
        margin-left: auto;
    }
    
    .nav-brand .logo {
        height: 128px;
    }
    
    /* Hero section */
    .hero {
        padding: 80px 0 40px;
        margin-top: 60px;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-stats {
        flex-direction: row;
        gap: 15px;
    }
    
    .stat {
        flex: 1;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Apps section */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .app-card {
        padding: 25px 20px;
    }
    
    .app-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .app-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .app-description {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-brand .footer-logo {
        height: 35px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Hero section */
    .hero {
        padding: 60px 0 30px;
        margin-top: 55px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* About stats - stack on very small screens */
    .about-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* App cards */
    .app-card {
        padding: 20px 16px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-icon-placeholder {
        font-size: 1.2rem;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 20px 16px;
    }
    
    /* Mobile nav menu width adjustment */
    .mobile-nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav-menu.active {
        right: 0;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-button,
    .app-link {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Touch targets and accessibility improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .nav-link,
    .cta-button,
    .app-link,
    .submit-button,
    .mobile-nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Reduce hover effects on touch devices */
    .app-card:hover {
        transform: none;
    }
    
    .nav-link:hover,
    .cta-button:hover,
    .app-link:hover,
    .submit-button:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link::after {
        height: 3px;
    }
    
    .app-card {
        border: 2px solid var(--border-gray);
    }
}

/* Mobile responsive images for app screenshots */
@media (max-width: 768px) {
    .mobile-app-images {
        gap: 0 !important;
    }
    .mobile-app-images img {
        max-width: 248px !important;
        margin-left: -30px !important;
    }
    .mobile-app-images img:first-child {
        margin-left: 0 !important;
    }
}

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

/* Collapsible Dropdown Sections */
.collapsible-section {
    margin: 15px 0;
    opacity: 0;
    transition: opacity 1.04s cubic-bezier(0.4, 0, 0.2, 1), transform 1.04s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide from left */
.collapsible-section.slide-left {
    transform: translateX(-100px);
}

.collapsible-section.slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.collapsible-section.slide-right {
    transform: translateX(100px);
}

.collapsible-section.slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in animations for feature sections */
.slide-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-from-left.animate-in,
.slide-from-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.collapsible-header {
    cursor: pointer;
    padding: 20px 30px;
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 212, 228, 0.05), rgba(30, 212, 228, 0.02));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(30, 212, 228, 0.4),
        0 0 60px rgba(30, 212, 228, 0.2),
        inset 0 0 20px rgba(30, 212, 228, 0.1);
}

.collapsible-header:hover {
    border-color: var(--primary-cyan);
    background: linear-gradient(135deg, rgba(30, 212, 228, 0.1), rgba(30, 212, 228, 0.05));
    box-shadow: 
        0 0 40px rgba(30, 212, 228, 0.6),
        0 0 80px rgba(30, 212, 228, 0.3),
        inset 0 0 30px rgba(30, 212, 228, 0.15);
    transform: translateY(-2px);
}

.collapsible-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(135deg, rgba(30, 212, 228, 0.15), rgba(30, 212, 228, 0.08));
    box-shadow: 
        0 0 35px rgba(30, 212, 228, 0.5),
        0 0 70px rgba(30, 212, 228, 0.25),
        inset 0 0 25px rgba(30, 212, 228, 0.12);
}

.collapse-icon {
    font-size: 1.5rem;
    color: var(--primary-cyan);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 20px;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}

.collapsible-header.active .collapse-icon {
    transform: rotate(180deg);
}

.collapsible-header:hover .collapse-icon {
    animation: bounce 0.6s ease infinite;
}

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

.collapsible-content {
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
}

.collapsible-content.active {
    opacity: 1;
    max-height: 5000px;
    padding-top: 20px;
    transform: translateY(0);
}

/* Staggered animation for child elements */
.collapsible-content.active .feature-item,
.collapsible-content.active .advantage-item,
.collapsible-content.active .screenshot-container {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.collapsible-content.active .feature-item:nth-child(1),
.collapsible-content.active .advantage-item:nth-child(1) {
    animation-delay: 0.1s;
}

.collapsible-content.active .feature-item:nth-child(2),
.collapsible-content.active .advantage-item:nth-child(2) {
    animation-delay: 0.15s;
}

.collapsible-content.active .feature-item:nth-child(3),
.collapsible-content.active .advantage-item:nth-child(3) {
    animation-delay: 0.2s;
}

.collapsible-content.active .feature-item:nth-child(4),
.collapsible-content.active .advantage-item:nth-child(4) {
    animation-delay: 0.25s;
}

.collapsible-content.active .feature-item:nth-child(5),
.collapsible-content.active .advantage-item:nth-child(5) {
    animation-delay: 0.3s;
}

.collapsible-content.active .feature-item:nth-child(6),
.collapsible-content.active .advantage-item:nth-child(6) {
    animation-delay: 0.35s;
}

.collapsible-content.active .feature-item:nth-child(7),
.collapsible-content.active .advantage-item:nth-child(7) {
    animation-delay: 0.4s;
}

.collapsible-content.active .feature-item:nth-child(8),
.collapsible-content.active .advantage-item:nth-child(8) {
    animation-delay: 0.45s;
}

.collapsible-content.active .feature-item:nth-child(9),
.collapsible-content.active .advantage-item:nth-child(9) {
    animation-delay: 0.5s;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .collapsible-header {
        padding: 15px 20px;
        font-size: 1.3rem;
    }
    
    .collapse-icon {
        font-size: 1.5rem;
    }
}

/* Fly-in animation */
.fly-in-element {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fly-in-element.fly-in-active {
    opacity: 1;
    transform: translateX(0);
}