/* Reset & Global Styles */
:root {
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #b026ff; /* Neon Purple */
    --accent-hover: #d946ef; /* Neon Pink */
    --gradient-primary: linear-gradient(135deg, #b026ff 0%, #ff26b0 100%);
    --card-bg: #111113;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

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

.section-padding {
    padding: 100px 0;
}

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

.btn-primary, .btn-secondary, .btn-primary-sm, .btn-primary-lg {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 980px; /* Pill shape */
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-primary-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-primary-sm:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-lg {
    padding: 16px 32px;
    font-size: 1.25rem;
    background-color: #fff;
    color: #000;
    margin-top: 20px;
}

.btn-primary-lg:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    z-index: 1002; /* Ensure logo is above mobile menu */
}

.nav-logo {
    height: 32px;
    width: auto;
    margin-right: 12px;
    margin-top: 11px; /* Slight adjustment downwards */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 30px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .btn-primary-sm {
    color: #fff;
    margin-left: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State (Hamburger to X) */
.nav-links.active + .mobile-menu-btn span:nth-child(1),
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-links.active + .mobile-menu-btn span:nth-child(2),
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-links.active + .mobile-menu-btn span:nth-child(3),
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ffffff, #7b00ff, #007bff, #00ff7b, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

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

/* Hero Subtitle Styling */
.hero-subtitle-wrapper {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-subtitle-main {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-desc {
    font-size: 1.25rem;
    font-weight: 400;
    color: #a1a1aa;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 600px;
}

.hero-subtitle-note {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 8px;
    letter-spacing: 0.02em;
    opacity: 0.9;
    background: linear-gradient(90deg, #d8b4fe, #e9d5ff); /* Lighter, pastel purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 20px;
}

.iphone-mockup {
    margin-top: 50px;
    width: 320px;
    height: 690px;
    background-color: #000;
    border-radius: 50px;
    border: 4px solid #333; /* Thinner border */
    position: relative;
    box-shadow: 
        0 0 0 2px #111,
        0 0 60px rgba(176, 38, 255, 0.4), /* Purple glow */
        0 0 100px rgba(38, 255, 176, 0.2); /* Cyan outer glow */
    overflow: hidden;
    z-index: 10;
    transform: rotate(-5deg); /* Slight tilt for style */
    transition: transform 0.5s ease;
}

.iphone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 
        0 0 0 2px #111,
        0 0 80px rgba(176, 38, 255, 0.6),
        0 0 120px rgba(38, 255, 176, 0.3);
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-color: #111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 20;
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Forces the image to fill the mockup, might stretch slightly but ensures full visibility */
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff26b0, #b026ff);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(255, 38, 176, 0.5);
}

.orb-2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #26ffb0, #2697ff);
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
    box-shadow: 0 0 20px rgba(38, 255, 176, 0.5);
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #b026ff, #5e26ff);
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
    filter: blur(40px);
    opacity: 0.4;
}

.orb-4 {
    width: 30px;
    height: 30px;
    background: #fff;
    top: 10%;
    right: 30%;
    box-shadow: 0 0 15px #fff, 0 0 30px #b026ff;
    animation-delay: 2s;
    opacity: 0.8;
}

/* Language Switcher (Aligned with Nav Links) */
.lang-dropdown {
    position: relative;
    margin-left: 30px; /* Same as nav links margin */
    z-index: 1001;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ccc; /* Same as nav links default color */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: auto;
}

.lang-btn:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff; /* Hover color */
}

.arrow-icon {
    width: 10px;
    height: 6px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.lang-btn:hover .arrow-icon {
    opacity: 1;
}

.lang-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: -10px; /* Slight adjustment for alignment */
    margin-top: 15px; /* Add some space below */
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Add a transparent bridge so mouse doesn't leave hover area */
.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 10px 16px;
    color: #a1a1aa;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.lang-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-menu li.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.2) 0%, rgba(38, 255, 176, 0.1) 100%);
    border: 1px solid rgba(176, 38, 255, 0.3);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    33% { transform: translate(10px, -30px); }
    66% { transform: translate(-10px, -15px); }
    100% { transform: translate(0, 0); }
}

/* Background Elements */
.hero::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 60vw;
    background: radial-gradient(ellipse at center, rgba(176, 38, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(38, 255, 176, 0.1) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    z-index: 1;
}

/* Features Section */
.features {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}


/* Showcase Section */
.showcase {
    background-color: #000;
    overflow: hidden;
}

.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.screenshot-item {
    flex: 0 0 calc(33.333% - 40px);
    max-width: 300px; /* Assuming phone screenshots width */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 8px solid #1d1d1f; /* Bezel */
    transition: transform 0.5s ease;
    position: relative;
}

.screenshot-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* Tech Specs */
.tech-specs {
    background-color: #050505;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    text-align: center;
}

.tech-content {
    max-width: 800px;
    margin: 0 auto;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.tech-list li {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #ccc;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact */
.contact {
    text-align: center;
    background: linear-gradient(180deg, #000 0%, #111 100%);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-note {
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.6;
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    margin-right: 20px;
    color: #888;
}

.footer-links a:hover {
    color: #fff;
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .mobile-menu-btn {
        display: flex; /* Show menu button on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    .nav-links .btn-primary-sm {
        margin: 20px 0;
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .lang-dropdown {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .hero {
        padding-top: 100px; /* Reduced padding */
        text-align: center;
        min-height: 100vh; /* Full viewport height */
        height: auto;
        justify-content: flex-start; /* Vertically center content */
        padding-bottom: 60px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        height: auto;
    }
    
    .hero-text {
        margin-top: 110px;
        text-align: center;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        margin-bottom: 30px;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 100px;
    }

    .iphone-mockup {
        width: 260px;
        height: 560px;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .hero-subtitle-wrapper {
        text-align: center;
        align-items: center;
        padding: 0 10px;
    }

    .hero-subtitle-main {
        font-size: 1.4rem;
    }

    .hero-subtitle-desc {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .screenshot-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .screenshot-item {
        flex: 0 0 100%;
        max-width: 280px;
    }
}
