/* ==========================================
   Premium Design System: HalanTech Light & Gold
   ========================================== */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #FAF9F6;       /* Alabaster Warm White */
    --bg-secondary: #F3F1EC;     /* Warm Cream */
    --text-primary: #2B2A27;     /* Soft Charcoal */
    --text-secondary: #706E68;   /* Warm Gray */
    --gold-primary: #C5A862;     /* Core Brand Gold */
    --gold-dark: #8B6F3E;        /* Accent Dark Gold */
    --gold-light: #E5DCC4;       /* Soft Sand Gold */
    --border-color: #E2DFD8;     /* Warm Light Border */
    --white: #FFFFFF;
    
    /* Breathing Colors */
    --ida-color: #4F83CC;        /* Cooling Lunar Blue */
    --pingala-color: #E07A5F;    /* Warming Solar Amber */
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   Header & Navbar
   ========================================== */
.navbar {
    background-color: rgba(250, 249, 246, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

/* Bigger Logo Sizing */
.logo {
    height: 110px;
    width: auto;
    display: block;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-1px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 9rem 0;
    background: radial-gradient(circle at 50% 40%, rgba(197, 168, 98, 0.08) 0%, rgba(250, 249, 246, 0) 65%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold-primary);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--text-primary);
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    font-weight: 300;
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--white);
    border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 10px 20px rgba(139, 111, 62, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* ==========================================
   Interactive Widget (Swarashastra Demo)
   ========================================== */
.demo-section {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.demo-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.widget-container {
    max-width: 750px;
    margin: 0 auto;
}

.widget-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* Location Selector (Custom Spin) */
.widget-location-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.location-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.location-search-bar {
    display: flex;
    gap: 0.5rem;
    flex-grow: 1;
    max-width: 350px;
}

.location-search-bar input {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
}

.location-search-bar input:focus {
    border-color: var(--gold-primary);
}

.btn-search {
    background-color: var(--gold-primary);
    color: var(--white);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.time-box {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cycle-box {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-sukla {
    background-color: rgba(79, 131, 204, 0.1);
    color: var(--ida-color);
    border: 1px solid rgba(79, 131, 204, 0.15);
}

.badge-krishna {
    background-color: rgba(224, 122, 95, 0.1);
    color: var(--pingala-color);
    border: 1px solid rgba(224, 122, 95, 0.15);
}

/* Nadi Visualizer Layout */
.nadi-visualizer {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.nadi-side {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--bg-primary);
    opacity: 0.45;
    filter: grayscale(80%);
}

.nadi-side.active {
    opacity: 1;
    filter: grayscale(0%);
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

#ida-side.active {
    border-color: rgba(79, 131, 204, 0.2);
    box-shadow: 0 10px 25px rgba(79, 131, 204, 0.05);
}

#pingala-side.active {
    border-color: rgba(224, 122, 95, 0.2);
    box-shadow: 0 10px 25px rgba(224, 122, 95, 0.05);
}

.nadi-label-top {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1.25rem;
}

.lung-bubble {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.5s ease;
}

.ida-bubble {
    background: radial-gradient(circle, var(--ida-color) 0%, rgba(79, 131, 204, 0.4) 100%);
    box-shadow: 0 0 15px rgba(79, 131, 204, 0.25);
}

.pingala-bubble {
    background: radial-gradient(circle, var(--pingala-color) 0%, rgba(224, 122, 95, 0.4) 100%);
    box-shadow: 0 0 15px rgba(224, 122, 95, 0.25);
}

.nadi-side.active .lung-bubble {
    animation: breathingAnimation 4s ease-in-out infinite;
}

@keyframes breathingAnimation {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.nadi-status {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

#ida-side .nadi-status { color: var(--ida-color); }
#pingala-side .nadi-status { color: var(--pingala-color); }

/* Recommendations (Inspiration from swarayoga.org) */
.recommendations-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: left;
}

.rec-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.recommendations-box ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.recommendations-box li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 0.75rem;
}

.recommendations-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Visualizer Divider */
.visualizer-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.divider-line {
    width: 1px;
    height: 140px;
    background-color: var(--border-color);
}

.breath-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    margin: 10px 0;
    transition: all 0.3s ease;
}

.breath-circle.pulse {
    animation: breathingTimerGlow 2s ease-in-out infinite;
}

@keyframes breathingTimerGlow {
    0% { transform: scale(1); background-color: var(--ida-color); }
    50% { transform: scale(1.6); background-color: var(--pingala-color); }
    100% { transform: scale(1); background-color: var(--ida-color); }
}

.arrow {
    font-size: 0.8rem;
    color: var(--border-color);
}

/* Widget Footer */
.widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.countdown-container {
    display: flex;
    flex-direction: column;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.countdown-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.breathing-guide {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.btn-widget {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--text-primary);
    cursor: pointer;
}

.btn-widget:hover {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-widget.active {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { box-shadow: 0 0 0 0 rgba(139, 111, 62, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(139, 111, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 111, 62, 0); }
}

.breath-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================
   Conversion Modal / Paywall Popup
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 42, 39, 0.6); /* Soft dark backdrop */
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 98, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.app-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.modal-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 2.5rem;
    background-color: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.check-icon {
    color: var(--gold-primary);
    font-weight: bold;
}

.btn-modal {
    width: 100%;
    text-align: center;
}

.playstore-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    display: block;
    font-weight: 500;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: 7rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Products Showcase Section
   ========================================== */
.products-section {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.product-showcase {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--gold-primary);
}

.product-content {
    max-width: 650px;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(197, 168, 98, 0.1);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 168, 98, 0.2);
    letter-spacing: 0.5px;
}

.product-content h3 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.product-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.4rem;
    color: var(--gold-primary);
    line-height: 1;
}

.feature-item h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer {
    background-color: #1F1E1C; /* Elegant Deep Bronze/Charcoal */
    padding: 6rem 0 2rem 0;
    color: #A09E98;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

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

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.company-desc {
    font-size: 0.9rem;
    color: #888680;
    margin-top: 0.5rem;
}

.footer-col a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.legal-text {
    line-height: 2;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #2B2A27;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #706E68;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 900px) {
    .product-showcase {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 80px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero {
        padding: 6rem 0;
    }
    .nadi-visualizer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .visualizer-divider {
        display: none;
    }
    .nav-links {
        display: none;
    }
    .widget-location-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .location-search-bar {
        max-width: 100%;
    }
    .widget-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    .breathing-guide {
        align-items: center;
    }
}
