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

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-card: #111111;
    --dark-border: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-purple: #8b5cf6;
    --accent-blue: #6366f1;
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--dark-bg);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('image.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    opacity: 0.7;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    animation: cloudFloat 25s ease-in-out infinite;
    z-index: 1;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    33% { transform: translateX(20px) translateY(-15px) scale(1.02); }
    66% { transform: translateX(-15px) translateY(20px) scale(0.98); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--text-primary);
    position: relative;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 60px;
    line-height: 1;
    position: relative;
    z-index: 3;
}

.title-line {
    display: block;
    font-size: 6rem;
    font-weight: 200;
    letter-spacing: 8px;
    position: relative;
    background: linear-gradient(45deg, #ffffff, #f8fafc, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite, float-title 8s ease-in-out infinite;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 20px;
    opacity: 0.8;
    color: var(--text-secondary);
    animation: fadeInUp 2s ease-out 0.5s both;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 30px 0 60px 0;
    opacity: 0.9;
    animation: fadeInUp 2s ease-out 1s both;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 2s ease-out 1.5s both;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-arrow {
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    animation: bounce 2s infinite;
    backdrop-filter: blur(20px);
}

.scroll-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--dark-secondary);
    min-height: 100vh;
    position: relative;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 100vh;
}

.features-left,
.features-right {
    display: none;
}

.video-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100vh;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.video-container:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.video-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.video-frame:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* Video Info Overlays */
.video-info-overlay {
    position: absolute;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    max-width: 280px;
    pointer-events: none;
}

.video-info-overlay.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-info-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 6px;
    line-height: 1.2;
}

.video-info-overlay p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Positioning for different overlays */
.overlay-top-left {
    top: 60px;
    left: 60px;
}

.overlay-top-right {
    top: 60px;
    right: 60px;
}

.overlay-bottom-left {
    bottom: 60px;
    left: 60px;
}

.overlay-bottom-right {
    bottom: 60px;
    right: 60px;
}

.overlay-center-left {
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
}

.overlay-center-right {
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
}

.overlay-center-left.visible {
    transform: translateY(-50%);
}

.overlay-center-right.visible {
    transform: translateY(-50%);
}

/* Mobile responsiveness for overlays */
@media (max-width: 768px) {
    .video-info-overlay {
        max-width: 200px;
        padding: 12px 16px;
    }
    
    .video-info-overlay h4 {
        font-size: 14px;
    }
    
    .video-info-overlay p {
        font-size: 11px;
    }
    
    .overlay-top-left,
    .overlay-bottom-left,
    .overlay-center-left {
        left: 20px;
    }
    
    .overlay-top-right,
    .overlay-bottom-right,
    .overlay-center-right {
        right: 20px;
    }
    
    .overlay-top-left,
    .overlay-top-right {
        top: 20px;
    }
    
    .overlay-bottom-left,
    .overlay-bottom-right {
        bottom: 20px;
    }
}

.video-frame::-webkit-media-controls-panel {
    background-color: var(--dark-card);
}

.video-frame::-webkit-media-controls-play-button,
.video-frame::-webkit-media-controls-volume-slider,
.video-frame::-webkit-media-controls-timeline {
    filter: invert(1);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.video-frame::-webkit-media-controls-panel {
    background-color: var(--dark-card);
}

.video-frame::-webkit-media-controls-play-button,
.video-frame::-webkit-media-controls-volume-slider,
.video-frame::-webkit-media-controls-timeline {
    filter: invert(1);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    padding-left: 4px;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--accent-blue);
}

.video-label {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 300;
}

.video-container {
    position: relative;
}

.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

controls-right {
    display: flex;
    gap: 8px;
}

/* --- New styles for Progress Bar --- */
.progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px; /* Make it slightly thicker on hover */
}

/* --- Styling the progress bar thumb (the handle) --- */
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    margin-top: -5.5px; /* Center the thumb vertically */
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
}


.video-container:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-control {
    position: relative;
}

.speed-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    padding: 4px;
}

.speed-control:hover .speed-options {
    display: flex;
}

.speed-option {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    text-align: center;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feature-item {
    background: var(--dark-card);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-border);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(50px);
}

.feature-item.fade-in-left {
    transform: translateX(-50px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 13px;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

.hero-btn.primary:hover {
    transform: translateY(-3px);
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

/* Simple Section */
.simple-section {
    padding: 100px 0;
    background: var(--dark-secondary);
    text-align: center;
}

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

.simple-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.simple-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer p {
    font-size: 14px;
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--cloud-white) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-features {
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.feature-check {
    background: var(--gentle-purple);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 12px;
    font-weight: 600;
}

.about-tagline {
    font-style: italic;
    color: var(--text-light);
    font-size: 18px;
    border-left: 4px solid var(--gentle-purple);
    padding-left: 20px;
}

/* Phone Mockup */
.about-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--gentle-purple), var(--warm-peach));
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 40px 30px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.app-prompt {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.8;
    font-style: italic;
}

.app-entry {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--primary-gradient);
    text-align: center;
}

.cta-content {
    color: var(--text-white);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--cloud-white);
    color: var(--text-dark);
    padding: 18px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-note {
    margin-top: 20px;
    opacity: 0.8;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
        margin-bottom: 40px;
    }
    
    .title-line {
        font-size: 4.5rem;
        letter-spacing: 6px;
    }
    
    .title-subtitle {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .scroll-arrow {
        width: 50px;
        height: 50px;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-center {
        position: static;
        order: -1;
    }
    
    .features-left,
    .features-right {
        gap: 20px;
    }
    
    .simple-title {
        font-size: 2rem;
    }
    
    .simple-section {
        padding: 60px 0;
    }
}

.video-container:fullscreen {
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; /* Add this line to remove the border */
}

/* Style the VIDEO inside the fullscreen container */
.video-container:fullscreen .video-frame {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Remove rounded corners in fullscreen */
    box-shadow: none;   /* Remove shadow in fullscreen */
    /* 'contain' ensures the whole video is visible without being cropped */
    object-fit: contain; 
}

/* Make sure the CONTROLS are visible and on top in fullscreen */
.video-container:fullscreen .video-controls {
    /* A very high z-index ensures controls are always on top */
    z-index: 2147483647; 
    opacity: 1; /* Make controls permanently visible in fullscreen */
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    
    .simple-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }
    
    .title-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        margin: 20px 0 40px 0;
    }
    
    .scroll-arrow {
        width: 45px;
        height: 45px;
    }
    
    .video-container {
        padding: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
    
    .simple-title {
        font-size: 1.5rem;
    }
    
    .simple-description {
        font-size: 1rem;
    }
    
    .simple-section {
        padding: 40px 0;
    }
}
