:root {
    --bg-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --accent: #a78bfa;
    --accent-hover: #8b5cf6;
    --accent-glow: rgba(167, 139, 250, 0.4);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    z-index: -1;
    transform: scale(1.1);
}

.main-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 95vh;
    
    background: rgba(15, 15, 20, 0.45); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: transparent;
    border-bottom: none;
    flex-shrink: 0;
    z-index: 10;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-right {
    text-align: right;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.7;
}

.nav-btn:hover {
    color: var(--accent);
    opacity: 1;
}

/* Menu Overlay */
.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 1.5rem 0;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.menu-links a:hover {
    color: var(--accent);
}

.menu-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.menu-links a:hover .menu-icon {
    opacity: 1;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 3rem 3rem 3rem;
    scroll-behavior: smooth;
}

.content-scroll::-webkit-scrollbar {
    width: 6px;
}
.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.section {
    margin-bottom: 5rem;
    padding-top: 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

h1 {
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 600;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

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

/* Hero Layout */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1rem;
    gap: 1.5rem;
}

.hero-content {
    text-align: center;
    flex-shrink: 0;
}

/* Integrated App Wrapper */
.integrated-app-wrapper {
    width: 100%;
    flex: 1;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

/* Tab Switcher */
.app-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

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

.tab-btn.active {
    color: var(--accent);
    background: rgba(167, 139, 250, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* App Display Area */
.app-display-area {
    position: relative;
    flex: 1;
    background: #000;
    min-height: 0;
}

.app-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.app-frame.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.btn-small:hover {
    background: rgba(255,255,255,0.2);
}

/* Grids */
.app-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* App Cards */
.app-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

/* Blog Links */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.blog-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.blog-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Meditation Lengths Accordion */
.lengths-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.length-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.length-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.length-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.length-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.length-info {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.length-time {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.length-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.length-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.length-badge.beginner {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
}

.length-badge.intermediate {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.1);
}

.length-badge.advanced {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.length-card.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.length-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    opacity: 0;
}

.length-card.active .length-content {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    opacity: 1;
}

.excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hashtags {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.8;
    word-spacing: 5px;
}

/* Meditation Guide Panel */
.guide-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.guide-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.4s ease;
    opacity: 0;
}

.guide-hidden.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.read-more-btn::after {
    content: '+';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.read-more-btn.expanded::after {
    content: '−';
    transform: rotate(180deg);
}

.guide-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.guide-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.guide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.guide-panel a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.guide-panel a:hover {
    border-bottom-color: var(--accent);
}

/* Footer Styles */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
}

.footer-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

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

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.footer-links-grid a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border: none;
    }
    
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .integrated-app-wrapper {
        height: 400px;
        flex: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-left, .nav-right {
        display: none;
    }
    
    .menu-links a {
        font-size: 1.5rem;
    }
    
    .guide-panel {
        padding: 1.5rem;
    }
    
    .lengths-accordion {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
