/* General Styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #1C1C1C;
    color: #f0f0f0;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* General container to center content and limit width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Navbar */
header {
    background: #1C1C1C;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}


.logo {
    max-height: 60px;
    width: auto;
    display: block;
}


.site-name {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Light Blue Cloud color for Twin- */
.site-name .brand-twin {
    color: #1DA1FF;
}

/* Golden Cloud color for Clouds */
.site-name .brand-clouds {
    color: #F4B400;
}


.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}


.nav-links li a {
    padding: 0.5rem 0.7rem;
    color: #f0f0f0;
    font-weight: 500;
    transition: color 0.3s ease;
}


.nav-links li a:hover {
    color: #FFB531; /* Your brand accent color on hover */
}




/* Style for the active navigation link */
.nav-links li a.active {
    color: #FFB531; /* Changed to your desired yellow color */
    font-weight: 600;
    /* Remove the border-bottom property to remove the underline */
    padding-bottom: 0.2rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}


/* Add this new rule for the auth-buttons container */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
}


/* Buttons */
.btn {
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}


.btn-outline {
    border: 2px solid #00B5B5;
    color: #00B5B5;
}


.btn-outline:hover {
    background: #00B5B5;
    color: #fff;
}


.btn-primary {
    background: #7A00FF;
    color: #fff;
}


.btn-primary:hover {
    background: #5a00c2;
}


.btn-accent {
    background: #CC3A9E;
    color: #fff;
    font-size: 1.1rem;
}


.btn-accent:hover {
    background: #a72d7d;
}


/* Hero Section with Cloud Background & Gradient Overlay */
.hero {
    text-align: center;
    padding: 4rem 2rem; /* Adjusted for better spacing */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}


.hero h1 {
    font-size: 2.8rem;
    color: #FFB531;
    margin-bottom: 1rem;
}


.hero p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* Animate Hero Text & Button */
.hero h1,
.hero p,
.hero .btn-accent {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease forwards;
}


.hero h1 {
    animation-delay: 0.1s;
}


.hero p {
    animation-delay: 0.3s;
}


.hero .btn-accent {
    animation-delay: 0.5s;
}


.dashboard-preview {
    max-width: 90%;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.3s;
}


.dashboard-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Keyframes for fade-in + slide-up */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero > * {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #FFB531;
}


.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #f0f0f0;
}


/* Dashboard Section */
.dashboard {
    text-align: center;
    padding: 4rem 2rem;
}


.image-placeholder {
    width: 80%;
    max-width: 600px;
    height: 300px;
    margin: 1.5rem auto;
    background: #444;
    border-radius: 10px;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #111;
    color: #aaa;
}


footer a {
    color: #00B5B5;
}


footer a:hover {
    text-decoration: underline;
}


/* Responsiveness */
@media (max-width: 768px) {
    .site-name {
        font-size: 1rem;
    }


    .nav-links {
        display: none;
        flex-direction: column;
        background: #1C1C1C;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 1rem;
        border-radius: 8px;
    }


    .nav-links.show {
        display: flex;
    }


    .hamburger {
        display: block;
    }


    .hero h1 {
        font-size: 2rem;
    }
}


/* Pricing Section */
.pricing {
    text-align: center;
    padding: 4rem 2rem;
    background: #1c1c1c;
    max-width: 1200px;
    margin: 0 auto;
}


.pricing h2 {
    font-size: 2.5rem;
    color: #FFB531;
    margin-bottom: 1rem;
}


.pricing p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 3rem;
}


.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}


.price-box {
    background: #262626;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
}


.price-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


.price-box h3 {
    font-size: 1.8rem;
    margin-top: 0;
    color: #00B5B5;
}


.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #f0f0f0;
}


.price .price-period {
    font-size: 1.2rem;
    font-weight: normal;
    color: #888;
}


.price-box ul {
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}


.price-box ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #ddd;
}


.price-box ul li i {
    margin-right: 10px;
}


.fa-check {
    color: #00B5B5;
}


.fa-times {
    color: #CC3A9E;
}

/* Highlight the middle box (recommended) */
.recommended {
    border: 2px solid #00B5B5;
    transform: scale(1.05);
}


/* AI Design Section */
.ai-design-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom right, #ada1ff, #9752eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}


.ai-design-content {
    max-width: 800px;
    margin: 0 auto;
}


.ai-design-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}


.ai-design-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}


.ai-design-content .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
}


/* -----------------------------
    Upload & Schedule (Canva-like)
    ----------------------------- */
.upload-schedule {
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: center;
    background: transparent;
}


.upload-container {
    max-width: 920px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}


.icon-bounce {
    font-size: 3.6rem;
    margin-bottom: 0.6rem;
    animation: uploadBounce 2s infinite;
    color: white;
}


@keyframes uploadBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-14px); }
    60% { transform: translateY(-7px); }
}


.upload-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.05;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


.upload-sub {
    font-family: 'Inter', sans-serif;
    color: #d8d8d8;
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0 auto 1.25rem;
}


.upload-sub .highlight {
    color: #FFB531;
    font-weight: 700;
}


.upload-cta {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}


.upload-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}


/* Responsive tweaks (keeps sizes reasonable on phones) */
@media (max-width: 620px) {
    .upload-container {
        padding: 1.2rem;
    }
    .upload-heading {
        font-size: 1.8rem;
    }
    .icon-bounce {
        font-size: 2.6rem;
    }
    .upload-sub {
        font-size: 0.98rem;
    }
}


/* Contact Form Styling */
.contact-hero {
    text-align: center;
    padding: 0 2rem 2rem;  /* remove extra top padding */
}


.contact-hero h1 {
    margin-top: 0;  /* kills the browser’s default gap */
}


.contact-form-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
}


.contact-form {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    background: #262626;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.contact-form h2 {
    text-align: center;
    color: #FFB531;
    margin-bottom: 2rem;
}


.form-group {
    margin-bottom: 1.5rem;
}


.form-group label {
    display: block;
    color: #ddd;
    margin-bottom: 0.5rem;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    background: #333;
    color: #f0f0f0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00B5B5;
}


.contact-form .btn-primary {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}


/* ---------- Templates Page ---------- */
.templates {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}


.templates h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}


.templates p {
    text-align: center;
    margin-bottom: 2rem;
    color: #bbb;
}


.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


.template-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


.template-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}


.template-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #fff;
}


.template-card p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1rem;
}


.ai-features {
    margin-top: 4rem;
    padding: 2rem;
    background: #252525;
    border-radius: 12px;
    color: #eee;
    text-align: center;
}


.ai-features h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
}


.ai-features ul {
    list-style: disc;
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
    color: #bbb;
}


.ai-features .cta-row {
    margin-top: 1.5rem;
}


/* Template video */
.template-card img,
.template-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}


/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* AI Studio Page Styles */
.studio-hero {
    padding: 6rem 2rem;
    background: #1C1C1C;
    text-align: center;
}


.studio-hero h1 {
    color: #FFB531;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}


.studio-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.studio-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}


.studio-controls {
    flex: 1;
    max-width: 400px;
    background-color: #262626;
    padding: 2rem;
    border-radius: 10px;
}


.studio-results {
    flex: 2;
    background-color: #262626;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}


/* Adjust your main form styles */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
}
/* AI Studio Page Styles */
.studio-hero {
    text-align: center;
    padding: 2rem 2rem;
    background: #1C1C1C;
}


.studio-hero h1 {
    color: #FFB531;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}


.studio-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.studio-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 4rem; /* Add this line to create the gap */
}


.studio-controls {
    flex: 1;
    max-width: 400px;
    background-color: #262626;
    padding: 2rem;
    border-radius: 10px;
}


.studio-results {
    flex: 2;
    background-color: #262626;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}
/* Contact Form Styling */
.contact-hero {
    text-align: center;
    padding: 2rem;
}


.contact-form-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
}


.contact-form {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    background: #262626;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.contact-form h2 {
    text-align: center;
    color: #FFB531;
    margin-bottom: 2rem;
}


.form-group {
    margin-bottom: 1.5rem;
}


.form-group label {
    display: block;
    color: #ddd;
    margin-bottom: 0.5rem;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    background: #333;
    color: #f0f0f0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00B5B5;
}


.contact-form .btn-primary {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}




/* =======================================================
// PHASE 2: INSTAGRAM FEED STYLING - FINAL, PERFECT SQUARE & CENTER
// ======================================================= */


.instagram-feed-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a;
    color: #ffffff;
}


/* Heading */
.instagram-feed-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #FFD54F;
    margin-bottom: 50px;
}


/* --- GRID LAYOUT & CENTERING (The Fix) --- */
.feed-grid-layout {
    display: grid;
    /* 1. Define the columns: Auto-fit to create as many columns as possible */
    /* Min size of 280px for a post, up to 1fr (equal fraction of space) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   
    /* 2. Limit the container's max width to prevent stretching */
    max-width: 1200px;
   
    /* 3. Center the entire grid container on the page */
    margin: 0 auto 40px;
   
    /* 4. THE CENTERING KEY: Centers the grid *items* when they don't fill the container */
    justify-content: center;
   
    gap: 20px;
}


/* --- POST CARD STYLES (Guaranteed Square) --- */
.instagram-post-card {
    display: block;
    position: relative;
    overflow: hidden;
   
    /* This creates the square aspect ratio reliably */
    padding-top: 100%;
   
    /* Ensure the card takes up the full width of its grid column */
    width: 100%;
   
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background-color: #000;
}


.instagram-post-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}


.instagram-post-card img {
    /* Position image over the padding-top: 100% space */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the square without distortion */
    border-radius: inherit;
}


/* --- Overlays (Kept for consistency) --- */
.video-overlay, .post-caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}


.instagram-post-card:hover .post-caption-overlay,
.instagram-post-card:hover .video-overlay {
    opacity: 1;
}


.post-caption-overlay p {
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 15px;
    text-align: center;
}


/* ---- VIEW ON INSTAGRAM BUTTON ---- */
.view-instagram-btn {
    display: inline-block;
    background-color: #7A00FF;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px; /* Ensure space below the posts */
}


/* --- Responsive Adjustments --- */


/* For smaller screens, posts can take up more space */
@media (max-width: 900px) {
    .feed-grid-layout {
        /* Allow for 2 columns max on tablet */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-width: 600px;
    }
}


@media (max-width: 600px) {
    /* On mobile, use 1 column for large, clear posts */
    .feed-grid-layout {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}
.hero {
  position: relative;
  min-height: 100vh;
  background: #050914;
  overflow: hidden;
}

#galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
}
.beta-badge {
    background: linear-gradient(45deg, #7A00FF, #00E5FF);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
/* Styles for features not yet active */
.coming-soon {
    color: #777 !important; /* Dims the text */
    font-size: 0.85rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coming-soon i {
    color: #444 !important; /* Dims the icon */
}

/* Optional: Add a "Soon" pill tag */
.coming-soon::after {
    content: "SOON";
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-style: normal;
    margin-left: 5px;
}
/* --- Corrected Pricing Description --- */
/* This "wins" because it targets the specific box and the specific class */
.price-box p.plan-desc {
    font-size: 0.95rem !important;
    color: #bfbfc6 !important; 
    margin: 15px 0 25px 0 !important;
    line-height: 1.5 !important;
    min-height: 3.5rem;
    display: block;
    text-align: center; /* Keeps it centered like your other pricing text */
}

/* --- Loader Spinner --- */
#redirect-loader {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1a1a;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px; height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #00E5FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
/* Hide the redirect loader viewport by default to prevent page load flashes */
#redirect-loader {
    display: none !important;
}
/* ==========================================================================
   MOBILE TOUCH OPTIMIZATION GATEWAY
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent the layout from collapsing on narrow screens */
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 16px !important;
    }

    /* Expand button touch zones to meet standard accessibility guidelines (minimum 44px) */
    button, 
    .instagram-post-card,
    .nav-links a {
        min-height: 44px !important;
        padding: 12px !important;
    }

    /* Make the calendar grid easily scrollable on mobile screens */
    .calendar-grid {
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
    }
}