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

:root {
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    overflow-x: hidden;
    background: var(--bg-main);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--nav-shadow);
}

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

.nav-logo-img {
    height: 42px;
    object-fit: contain;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 3px 0;
    transition: 0.3s;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
}

/* Hero Section */
.hero {
    padding: 104px 0 58px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 86vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.12rem;
    margin-bottom: 1.45rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-devices {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.device {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.device.phone {
    width: 120px;
    height: 200px;
    position: relative;
    z-index: 2;
}

.device.tablet {
    width: 160px;
    height: 120px;
    position: absolute;
    top: 40px;
    right: -20px;
    z-index: 1;
}

.device .screen {
    width: 90%;
    height: 80%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    margin: 10% 5%;
    position: relative;
    overflow: hidden;
}

.device .screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Apps Section */
.apps-section {
    padding: 62px 0;
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 2.6rem;
}

.section-header h2 {
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.loading-container {
    text-align: center;
    padding: 2.5rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
    margin-top: 0.75rem;
}

.app-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-soft);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.app-icon {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    border: 1px solid #e2e8f0;
}

.app-icon img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
}

.app-icon i {
    color: #2563eb;
    font-size: 2rem;
}

.app-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.app-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-category {
    color: var(--text-muted);
    font-weight: 600;
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
}

.app-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.app-actions a {
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.app-actions a::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.app-actions a > * {
    position: relative;
    z-index: 1;
}

.app-actions .btn-play {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.app-actions .btn-play::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.app-actions .btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.app-actions .btn-play:hover::after {
    opacity: 1;
}

.app-actions .btn-details {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.app-actions .btn-details::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
}

.app-actions .btn-details:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.app-actions .btn-details:hover::after {
    opacity: 1;
}

.error-container {
    text-align: center;
    padding: 4rem 0;
    color: #dc2626;
}

.error-container i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-container h3 {
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-container a {
    color: #2563eb;
    text-decoration: none;
}

.error-container a:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 62px 0;
    background: var(--bg-main);
}

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

.about-text h2 {
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text > p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    text-align: center;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-soft);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 62px 0;
    background: var(--bg-soft);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 2rem;
    color: #2563eb;
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f8fafc;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f8fafc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #334155;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Night mode */
body.dark-mode {
    --bg-main: #070b14;
    --bg-soft: #0c1220;
    --text-main: #e2e8f0;
    --text-muted: #9fb0c7;
    --border-soft: rgba(148, 163, 184, 0.25);
    --card-bg: rgba(15, 23, 42, 0.58);
    --nav-bg: rgba(7, 11, 20, 0.58);
    --nav-shadow: 0 10px 30px rgba(2, 6, 23, 0.55);
    background:
        radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.09), transparent 35%),
        radial-gradient(circle at 85% 5%, rgba(99, 102, 241, 0.12), transparent 35%),
        linear-gradient(160deg, #050913, #0b1220 58%, #060b16);
}

body.dark-mode .navbar,
body.dark-mode .app-card,
body.dark-mode .feature,
body.dark-mode .contact-item,
body.dark-mode .theme-toggle {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.dark-mode .navbar.scrolled {
    background: rgba(8, 12, 24, 0.82);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.65);
}

body.dark-mode .hero {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.62)),
        radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.35), transparent 40%),
        radial-gradient(circle at 20% 85%, rgba(56, 189, 248, 0.2), transparent 40%);
}

body.dark-mode .app-icon {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.55), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.48);
}

body.dark-mode .app-category {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(148, 163, 184, 0.32);
}

body.dark-mode .app-actions .btn-details {
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.32);
}

body.dark-mode .app-actions .btn-details::after {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.12));
}

body.dark-mode .nav-menu {
    background: rgba(8, 12, 24, 0.94);
}

body.dark-mode .footer {
    background: rgba(4, 8, 18, 0.9);
}

body.dark-mode .error-container a,
body.dark-mode .contact-item a,
body.dark-mode .footer-section ul li a {
    color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-devices {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .app-card {
        padding: 1.5rem;
    }
}

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

/* Animation for elements on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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