/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --custom-blue: #1494e4;
    --custom-yellow: #ebff00;
    --footer-bg: #fdfcf9;
    --text-black: #000;
    --text-gray: #6b7280;
    --text-light-gray: #9ca3af;
    --font-sans: "Plus Jakarta Sans", sans-serif;
    --font-doodle: "Caveat", cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: #fff;
    color: var(--text-black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: var(--custom-blue);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utilities (Kept for JS toggles) */
.hidden { display: none !important; }
.opacity-0 { opacity: 0 !important; pointer-events: none; }
.translate-x-full { transform: translateX(100%); }
.text-blue { color: var(--custom-blue); }
.desktop-only { display: none; }

/* Custom Scrollbar Hide */
.reels-mobile::-webkit-scrollbar { display: none; }
.reels-mobile { -ms-overflow-style: none; scrollbar-width: none; }

@media (min-width: 768px) {
    .desktop-only { display: block; }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    width: 100%;
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 30;

    img{
        margin: 0px;
        padding: 0px;
        height: 50px;
        border-radius: 12px;
        margin-right: 10px;
    }
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;

    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;

    letter-spacing: -0.05em;
}

@media (min-width: 768px) {
    .brand-logo { font-size: 1.875rem; }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--custom-blue);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    font-size: 0.875rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.login-btn:hover {
    color: var(--custom-blue);
}

.signup-btn {
    display: none;
    background-color: var(--text-black);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.signup-btn:hover {
    background-color: var(--custom-blue);
}

@media (min-width: 768px) {
    .signup-btn { display: block; }
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 50;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* ==========================================================================
   Mobile Sidebar
   ========================================================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    transition: opacity 0.3s ease;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 18rem;
    background-color: #fff;
    z-index: 50;
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.close-btn {
    font-size: 1.5rem;
    padding: 0.5rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    flex-grow: 1;
}

.sidebar-links a {
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: var(--custom-blue);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.download-btn {
    width: 100%;
    background-color: var(--custom-blue);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 3rem 1.5rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
    }
}

.hero-badge {
    background-color: rgba(235, 255, 0, 0.4);
    color: var(--text-black);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 6rem; }
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 1.125rem;
    max-width: 42rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}

.hero-doodle {
    display: none;
    position: absolute;
    top: 8rem;
    right: 3rem;
    color: var(--text-light-gray);
    transform: rotate(12deg);
}

@media (min-width: 768px) {
    .hero-doodle { display: block; }
}

@media (min-width: 1024px) {
    .hero-doodle { right: 8rem; }
}

.doodle-text {
    font-family: var(--font-doodle);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-black);
}

.hero-doodle i {
    font-size: 1.875rem;
    margin-left: 2rem;
}

/* ==========================================================================
   Fisheye Reels (Desktop 3D Transform Logic)
   ========================================================================== */
.reels-section {
    width: 100%;
    position: relative;
    padding-bottom: 4rem;
    overflow: hidden;
}

.reels-desktop {
    display: none;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 100%;
    max-width: 72rem;
    margin: 2rem auto 0;
    perspective: 1200px;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .reels-desktop { gap: 1.5rem; }
}

@media (min-width: 768px) {
    .reels-desktop { display: flex; }
}

.reel-card {
    aspect-ratio: 9/16;
    border-radius: 1.5rem;
    background-color: #111827;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    /* We use custom properties for transforms to emulate Tailwind's behavior smoothly */
    transform: rotateY(var(--ry, 0deg)) translateY(var(--ty, 0rem)) scale(var(--sc, 1));
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Individual Card Configurations */
.reel-card-1 {
    width: 220px;
    --ry: 25deg;
    --ty: 2rem;
    --sc: 0.85;
    z-index: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.reel-card-2 {
    width: 240px;
    --ry: 12deg;
    --ty: 0.5rem;
    --sc: 0.95;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.reel-card-3 {
    width: 260px;
    --ry: 0deg;
    --ty: -1rem;
    --sc: 1.05;
    z-index: 20;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.reel-card-4 {
    width: 240px;
    --ry: -12deg;
    --ty: 0.5rem;
    --sc: 0.95;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.reel-card-5 {
    width: 220px;
    --ry: -25deg;
    --ty: 2rem;
    --sc: 0.85;
    z-index: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.reel-card:hover {
    --sc: 1.1 !important;
    z-index: 30 !important;
}

.reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.reel-card-3 img { opacity: 1; }
.reel-card-2 img, .reel-card-4 img { opacity: 0.9; }

.reel-card:hover img {
    opacity: 1;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-card:hover .reel-overlay {
    opacity: 1;
}

.play-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-black);
}

.play-btn i { margin-left: 0.25rem; }

.play-btn-lg {
    width: 3.5rem;
    height: 3.5rem;
}
.play-btn-lg i { font-size: 1.25rem; }

/* ==========================================================================
   Mobile Reels Layout
   ========================================================================== */
.reels-mobile {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1.5rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .reels-mobile { display: none; }
}

.mobile-reel-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 240px;
    aspect-ratio: 9/16;
    border-radius: 1.5rem;
    background-color: #e5e7eb;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-reel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.mobile-reel-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Explore Button Area
   ========================================================================== */
.explore-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .explore-btn-wrapper { margin-top: 4rem; }
}

.explore-btn {
    background-color: var(--custom-blue);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 1rem 3rem;
    border-radius: 9999px;
   
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .explore-btn { font-size: 1.5rem; }
}

.explore-btn:hover {
    background-color: var(--text-black);
    color: var(--custom-yellow);
}

.explore-doodle {
    display: none;
    position: absolute;
    top: -1.5rem;
    margin-left: -14rem;
    color: var(--text-black);
    transform: rotate(-12deg);
}

@media (min-width: 768px) {
    .explore-doodle { display: block; }
}

.explore-doodle .doodle-text {
    display: inline-block;
    font-size: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--custom-blue);
    padding-top: 4rem;
    padding-bottom: 1.5rem;
   color: white;
    margin-top: 3rem;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .footer-container { padding: 0 3rem; }
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
    }
}

.brand-info {
    max-width: 28rem;
}

.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--text-black);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    img{
        height: 50px;
        border-radius: 10px;
    }
}

.brand-icon i {
    color: var(--custom-yellow);
    font-size: 1.25rem;
}

.brand-title-wrap h3 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand-info p {
    
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 500;
}

.newsletter {
    width: 100%;
}

@media (min-width: 1024px) {
    .newsletter { max-width: 28rem; }
}

.footer-divider {
    border: none;
    border-top: 1px solid #e5e7eb4b;
    margin-bottom: 2.5rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul a {
    font-size: 0.875rem;
   
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col ul a:hover {
  
}

.contact-info {
    font-size: 0.875rem;
   
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background-color: black;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    
}



/* ==========================================================================
   Video Modal
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    padding: 0.5rem;
    font-size: 2.5rem;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--custom-yellow);
}

.modal-content {
    width: 100%;
    max-width: 24rem;
    position: relative;
}

@media (min-width: 768px) { .modal-content { max-width: 32rem; } }
@media (min-width: 1024px) { .modal-content { max-width: 36rem; } }

#modal-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    aspect-ratio: 9/16;
    background-color: #000;
}