/* style.css */
:root {
    --primary: #FF5722;
    --primary-hover: #F44336;
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --logo-color: #000000;
    --text-main: #111827;
    --text-muted: #4b5563;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);

    --phone-bg: #ffffff;
    --phone-text: #1a1a1a;
    --app-card: #f8f9fa;
    --btn-text: #ffffff;
}

[data-theme="dark"] {
    --bg-main: #0a0a0b;
    --bg-secondary: #121214;
    --logo-color: #ffffff;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --card-bg: rgba(25, 25, 28, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 11, 0.8);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);

    --phone-bg: #121214;
    --phone-text: #ffffff;
    --app-card: #1f1f22;
    --btn-text: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -150px;
    right: -150px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 80px) scale(1.1);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 1.2rem;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-select {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.lang-select:hover {
    border-color: var(--primary);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--bg-secondary);
}

.theme-toggle:hover {
    background: var(--border-color);
    color: var(--primary);
}

/* Layout Utilities */
.section-padding {
    padding: 120px 2rem 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--btn-text);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 87, 34, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 180px 2rem 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    max-width: 900px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* App UI Mockup Images */
.hero-visual {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 800px;
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-visual:hover .hero-image {
    transform: translateY(-10px);
}

.feature-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* About */
.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

/* Features grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Tech Sections */
.tech-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.tech-row.reverse {
    flex-direction: row-reverse;
}

.tech-text {
    flex: 1;
}

.tech-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.tech-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
}

.tech-image {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mockup-line {
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
}

.bar {
    width: 35px;
    background: var(--primary);
    border-radius: 8px 8px 0 0;
}

.bar-1 {
    height: 30%;
}

.bar-2 {
    height: 50%;
    opacity: 0.8;
}

.bar-3 {
    height: 100%;
}

.bar-4 {
    height: 75%;
    opacity: 0.8;
}

.bar-5 {
    height: 40%;
}

.theme-split {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.half.light {
    background: #f8f9fa;
    color: #111827;
}

.half.dark {
    background: #121214;
    color: #f9fafb;
}

.export-btn {
    background: var(--card-bg);
    color: var(--text-main);
    width: 70%;
    padding: 16px;
    text-align: center;
    border-radius: 16px;
    margin: 10px 0;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    cursor: default;
}

.export-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Records Section */
.records-header {
    text-align: center;
    margin-bottom: 3rem;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.record-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.record-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, var(--primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.record-card:hover::before {
    opacity: 1;
}

.record-card.highlight {
    background: rgba(255, 87, 34, 0.05);
    border-color: var(--primary);
    transform: scale(1.05);
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.record-card.highlight:hover {
    transform: scale(1.05) translateY(-5px);
}

.record-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-icon svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.record-card:hover .record-icon svg {
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.6));
}

.record-details h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.record-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.record-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Section */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 2rem;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.25rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tech-row,
    .tech-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .tech-text p {
        margin: 0 auto;
    }

    .tech-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-main);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

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

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 3rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.modal-body .last-updated {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.modal-body a {
    color: var(--primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 2rem;
    }
    
    .modal-footer {
        padding: 1.5rem 2rem;
    }
}

