/* ============================================
   SOARBYTE WEBSITE STYLES
   A dark, sophisticated design
   ============================================ */

:root {
    --bg-primary: #0C134A;
    --bg-secondary: #0A1038;
    --bg-card: #111B5E;
    --bg-card-hover: #152272;
    
    --text-primary: #FAFAFA;
    --text-secondary: #A8B4D4;
    --text-muted: #6B7AA8;
    
    --accent-primary: #14A9CE;
    --accent-light: #4FC3E0;
    --accent-glow: rgba(20, 169, 206, 0.4);
    
    --border-color: rgba(20, 169, 206, 0.15);
    --border-hover: rgba(20, 169, 206, 0.35);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--ease-out-expo);
    filter: invert(1);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #1E3A8A;
    bottom: -20%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.25;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s var(--ease-out-expo);
}

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

.hero-logo {
    width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: invert(1);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(20, 169, 206, 0.5);
    background: var(--accent-light);
}

.cta-button svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.cta-button:hover svg {
    transform: translate(3px, -3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s 1s var(--ease-out-expo) forwards;
    opacity: 0;
}

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

.mouse {
    width: 28px;
    height: 44px;
    border: 2px solid var(--text-muted);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 100px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

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

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

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 10rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.2s var(--ease-out-expo);
}

.about-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat:last-child {
    border-bottom: none;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   APPS SECTION
   ============================================ */

.apps {
    padding: 10rem 0;
    position: relative;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:nth-child(1) { transition-delay: 0s; }
.app-card:nth-child(2) { transition-delay: 0.1s; }
.app-card:nth-child(3) { transition-delay: 0.2s; }
.app-card:nth-child(4) { transition-delay: 0.3s; }
.app-card:nth-child(5) { transition-delay: 0.4s; }

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    background: var(--bg-card-hover);
}

.app-card:hover::before {
    opacity: 0.05;
}

.app-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.app-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--ease-out-expo);
}

.app-card:hover .app-icon-img {
    transform: scale(1.05);
}

.app-info {
    flex-grow: 1;
}

.app-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.app-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.app-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(20, 169, 206, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-expo);
}

.app-arrow svg {
    stroke: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.app-card:hover .app-arrow {
    background: var(--accent-primary);
}

.app-card:hover .app-arrow svg {
    stroke: white;
    transform: translate(2px, -2px);
}

.app-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 10rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.2s var(--ease-out-expo);
}

.contact-details.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

a.contact-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-value-sub {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.25rem;
}

.contact-value-small {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.contact-value-small:first-of-type {
    margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: invert(1);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .stat {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding: 1rem 2rem;
    }
    
    .stat:last-child {
        border-right: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about, .apps, .contact {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
