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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #3C3C43;
    background: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(60, 60, 67, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo a {
    font-size: 22px;
    font-weight: 500;
    color: #3C3C43;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #3C3C43;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1DC65B;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #3C3C43;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 500;
    color: #3C3C43;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #3C3C43;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #1DC65B;
    color: #FFFFFF;
    border: 2px solid #1DC65B;
}

.btn-primary:hover {
    background: #18a84d;
    border-color: #18a84d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 198, 91, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3C3C43;
    border: 2px solid #3C3C43;
}

.btn-secondary:hover {
    background: #3C3C43;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero-image-placeholder {
    width: 100%;
    padding-top: 100%;
    background: #F8F8F8;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.section-title {
    font-size: 48px;
    font-weight: 500;
    color: #3C3C43;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* Our Story Section */
.story-section {
    padding: 120px 40px;
    background: #FFFFFF;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: #3C3C43;
}

.story-content p {
    margin-bottom: 30px;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* Platforms Section */
.platforms-section {
    padding: 120px 40px;
    background: #F8F8F8;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.platform-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: #F8F8F8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-card-title {
    font-size: 28px;
    font-weight: 500;
    color: #3C3C43;
    margin-bottom: 15px;
}

.platform-card-description {
    font-size: 16px;
    font-weight: 300;
    color: #3C3C43;
    opacity: 0.7;
    line-height: 1.6;
}

/* Platform Detail Sections */
.platform-detail {
    padding: 120px 40px;
    background: #FFFFFF;
}

.platform-detail:nth-child(even) {
    background: #F8F8F8;
}

.platform-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-detail-grid.reverse {
    direction: rtl;
}

.platform-detail-grid.reverse > * {
    direction: ltr;
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: #1DC65B;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-detail-title {
    font-size: 42px;
    font-weight: 500;
    color: #3C3C43;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.platform-detail-description {
    font-size: 18px;
    font-weight: 300;
    color: #3C3C43;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.8;
}

.platform-features {
    list-style: none;
}

.platform-features li {
    font-size: 16px;
    font-weight: 400;
    color: #3C3C43;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.platform-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1DC65B;
    font-weight: 600;
    font-size: 18px;
}

/* Platform Download Buttons */
.platform-download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.platform-download-buttons .btn-primary,
.platform-download-buttons .btn-secondary {
    padding: 14px 32px;
    font-size: 15px;
}

.platform-image-placeholder {
    width: 100%;
    padding-top: 70%;
    position: relative;
    background: #F8F8F8;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.playing .play-overlay{
    display: none;
}
.play-overlay{
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
/* 1. Show Play Button when NOT playing */
.video-container:not(.is-playing) .play-overlay {
    opacity: 1; /* Always visible if paused/not started */
}

/* 2. Show Pause Button ONLY on HOVER when playing */
.video-container.is-playing:hover .play-overlay {
    opacity: 1;
}

/* The Icon Circle */
.icon-box {
    width: 70px;
    height: 70px;
    background: #1ec65b;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ICON: PLAY (Triangle) - Default state */
.icon-box::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
}

/* ICON: PAUSE (Two Bars) - When parent has .is-playing */
.video-container.is-playing .icon-box::after {
    border: none;
    width: 9px;
    height: 25px;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    left: 50%;
}
.play-button {
  width: 80px;
  height: 80px;
  background: #1ec65b;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Creating the triangle play icon */
.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
}

.platform-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.platform-video{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
}

/* Downloads Section */
.downloads-section {
    padding: 120px 40px;
    background: #F8F8F8;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-icon {
    margin-bottom: 20px;
    width: 20%;
}

.download-title {
    font-size: 24px;
    font-weight: 500;
    color: #3C3C43;
    margin-bottom: 15px;
}

.download-description {
    font-size: 16px;
    font-weight: 300;
    color: #3C3C43;
    opacity: 0.7;
    margin-bottom: 30px;
    line-height: 1.6;
}

.download-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #1DC65B;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #18a84d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 198, 91, 0.3);
}

/* Legal Section */
.legal-section {
    padding: 120px 40px;
    background: #FFFFFF;
}

.legal-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.legal-tab {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #EFEFF0;
    border-radius: 25px;
    color: #3C3C43;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.legal-tab:hover {
    border-color: #1DC65B;
    color: #1DC65B;
}

.legal-tab.active {
    background: #1DC65B;
    color: #FFFFFF;
    border-color: #1DC65B;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: #F8F8F8;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #3C3C43;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling for legal content */
.legal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-content::-webkit-scrollbar-track {
    background: #EFEFF0;
    border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: #1DC65B;
    border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    background: #18a84d;
}

.legal-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #3C3C43;
    color: #FFFFFF;
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-section p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.7;
}

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

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

.footer-section ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

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

.footer-bottom p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #F8F8F8;
    border-top-color: #1DC65B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 60px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-detail-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .platform-detail-grid.reverse {
        direction: ltr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .story-section,
    .platforms-section,
    .platform-detail,
    .downloads-section,
    .legal-section {
        padding: 80px 20px;
    }
    
    .platform-detail-title {
        font-size: 32px;
    }
    
    .platform-download-buttons {
        flex-direction: column;
    }
    
    .platform-download-buttons .btn-primary,
    .platform-download-buttons .btn-secondary {
        width: 100%;
    }
    
    .platform-download-buttons {
        flex-direction: column;
    }
    
    .platform-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .legal-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .legal-content {
        padding: 40px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .story-content {
        font-size: 18px;
    }
}
