/* --- Global Styles & Custom Properties --- */
:root {
    --primary-gradient: linear-gradient(135deg, #0052D4, #4364F7);
    --primary-color: #4364F7;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #555;
    --white-color: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Changes default jump behavior */
body { font-family: 'Poppins', -apple-system, sans-serif; line-height: 1.6; background-color: var(--light-color); color: var(--text-color); }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; border-radius: 4px; }
a { text-decoration: none; color: var(--primary-color); }

/* --- Header & Navigation --- */
.main-header { position: sticky; top: 0; z-index: 1000; transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease; background-color: var(--white-color); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; height: 70px; transition: height 0.3s ease; }
.main-header.sticky { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.main-header.sticky .navbar { height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 700; color: var(--text-color); }
.logo-icon { height: 30px; width: 30px; color: var(--primary-color); transition: transform 0.4s ease; }
.nav-logo:hover .logo-icon { transform: rotate(180deg); }
.nav-menu { display: flex; list-style: none; }
.nav-item { margin-left: 1.5rem; }
.nav-link { color: var(--text-light); font-weight: 500; transition: color 0.3s ease; position: relative; padding-bottom: 5px; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); }
.nav-link.active::after, .nav-link:hover::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-gradient); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-color); }

/* --- Hero Section & Typing Animation --- */
.hero { display: flex; justify-content: center; align-items: center; height: calc(100vh - 70px); text-align: center; color: var(--white-color); background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072') no-repeat center center/cover; position: relative; }
.hero-content { z-index: 1; position: relative; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.hero-content.animate-in { opacity: 1; transform: translateY(0); }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; min-height: 110px; }
#typing-headline::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { from, to { color: transparent; } 50% { color: var(--white-color); } }

/* --- Buttons --- */
.cta-button { position: relative; display: inline-block; padding: 12px 24px; margin-top: 1rem; background: var(--primary-gradient); color: var(--white-color); text-decoration: none; border-radius: 5px; font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; cursor: pointer; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 82, 212, 0.3); }

/* --- Card & Section Layout --- */
.content-section, .feature-section { padding: 4rem 2rem; max-width: 1100px; margin: 2rem auto; background-color: var(--white-color); border-radius: 12px; box-shadow: var(--shadow); }
.content-section h2, .feature-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 600; text-align: center; }
.bg-light { background-color: var(--light-color); box-shadow: none; } /* Override card style for bg-light */
.project-title { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; font-weight: 600; text-align: center; }
.project-description { margin-bottom: 2.5rem; font-size: 1.1rem; }

/* --- Feature Section --- */
.feature-section { display: flex; align-items: center; gap: 4rem; }
.feature-image, .feature-content { flex: 1; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.feature-content { text-align: left; }
.feature-content h2 { font-size: 2.2rem; margin-bottom: 1rem; text-align: left; }
.feature-content p { font-size: 1.1rem; color: var(--text-light); }
.layout-reverse { flex-direction: row-reverse; }

/* --- Forms & App Buttons --- */
.store-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.store-button { display: inline-block; background-color: var(--dark-color); color: var(--white-color); padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; transition: transform 0.2s ease; }
.store-button:hover { transform: scale(1.05); }
.contact-intro { max-width: 650px; margin: 0 auto 1.5rem auto; text-align: center; }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 5px; font-family: inherit; font-size: 1rem; }
#form-success-message { text-align: center; margin-top: 2rem; }

/* --- Footer --- */
.main-footer { text-align: center; padding: 4rem 2rem 2rem; background-color: var(--dark-color); color: #ccc; margin-top: 3rem; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1100px; margin: 0 auto 3rem auto; text-align: left; gap: 2rem; }
.footer-column { flex: 1; min-width: 220px; }
.footer-column h3 { font-size: 1.2rem; color: var(--white-color); margin-bottom: 1rem; }
.footer-column p, .footer-column a { color: #ccc; line-height: 1.8; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--primary-color); }
.footer-column .nav-logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.social-links { margin-top: 1rem; display: flex; gap: 1rem; }
.social-icon { color: #ccc; font-size: 1.5rem; }
.social-icon:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #444; padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* --- Utility & Animation --- */
.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; pointer-events: none; }
.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-btn { position: fixed; bottom: 20px; right: 20px; background: var(--primary-gradient); color: white; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 1000; }
.back-to-top-btn.show { opacity: 1; visibility: visible; }
.cookie-consent-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: var(--dark-color); color: #eee; padding: 1rem; display: flex; justify-content: center; align-items: center; gap: 1.5rem; z-index: 2000; transition: bottom 0.5s ease-in-out; }
.cookie-consent-banner.show { bottom: 0; }

/* --- Mobile --- */
@media(max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { position: fixed; left: -100%; top: 60px; flex-direction: column; background-color: var(--white-color); width: 100%; height: calc(100vh - 60px); text-align: center; transition: left 0.3s ease-in-out; padding-top: 2rem; z-index: 999; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .hero h1 { font-size: 2.5rem; min-height: 80px; }
    .cookie-consent-banner { flex-direction: column; text-align: center; }
    .feature-section, .layout-reverse { flex-direction: column; padding: 3rem 2rem; gap: 2rem; }
    .feature-content { text-align: center; }
    .feature-content h2 { text-align: center; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-column { text-align: center; }
    .footer-column .nav-logo { justify-content: center; }
    .social-links { justify-content: center; }
}