/* Custom Tailwind configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Font-face definitions for Inter */
@font-face {
    font-family: 'Acumin';
    /* Make sure the path and filename are correct */
    src: url('assets/Acumin-RPro.otf') format('otf'); 
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin';
    /* Make sure the path and filename are correct */
    src: url('assets/Acumin-BPro.otf') format('otf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin';
    /* Make sure the path and filename are correct */
    src: url('assets/Acumin-XPro.otf') format('otf');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Hero'; /* Create a unique font-family for the hero h1 */
    /* Make sure the path and filename are correct */
    src: url('assets/Acumin-ItBlk.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Add smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* General body styling to remove default margin */
body {
    margin: 0;
    font-family: 'Acumin', sans-serif; /* Use the locally hosted Inter font */
    overflow-x: hidden; /* Prevent horizontal overflow from animations like the marquee */
}

/* Add brand colors to Tailwind utilities */
@layer base {
    :root {
        --color-brand-yellow: #e5ff00;
    }
    .focus\:border-brand-yellow:focus { border-color: var(--color-brand-yellow); }
    .focus\:ring-brand-yellow:focus { --tw-ring-color: var(--color-brand-yellow); }
}

/* ==========================================================================
   Background Pattern Animation
   ========================================================================== */

@keyframes marquee-bg {
  from { background-position: 0 0; }
  to { background-position: -1920px 0; } /* Width of the SVG pattern */
}

.bg-pattern-marquee {
    position: relative;
    overflow: hidden; /* Ensures the pseudo-element doesn't bleed out */
}

.bg-pattern-marquee::before {
    content: '';
    position: absolute;
    inset: 0; /* top, right, bottom, left = 0 */
    background-image: url('img/TT_Pattern.svg');
    background-repeat: repeat-x;
    background-size: auto 100%; /* Fit pattern vertically, allow horizontal repeat */
    opacity: 0.4;
    animation: marquee-bg 80s linear infinite;
    z-index: -1; /* Place the pattern behind the content */
}

@keyframes cta-marquee-rtl {
  from { background-position: 0 0; }
  to { background-position: -1920px 0; } /* Move right-to-left by the width of the SVG */
}


/* ==========================================================================
   CTA Pattern Background
   ========================================================================== */

@keyframes marquee-diagonal {
  from { background-position: 0 0; }
  to { background-position: 1920px 1920px; } /* Move diagonally down and right */
}

.cta-pattern-bg {
    position: relative;
    overflow: hidden; /* Contain the pseudo-element */
}

.cta-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img/TT_Pattern.svg');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0.21;
    animation: cta-marquee-rtl 120s linear infinite;
    z-index: 0; /* Place it behind the content but above the section's bg-color */
}

/* ==========================================================================
   Get Started Page Styles
   ========================================================================== */
.step-card {
    background-color: #e5ff00; /* Brand yellow */
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-card .list-disc {
    color: #1a1a1a;
}

.step-icon {
    width: 68px;
    height: 68px;
    color: #1a1a1a; /* Set icon color to dark charcoal */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure CTA content sits above the new pattern */
.cta-content {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   Navbar styles
   ========================================================================== */

.navbar {
    background-color: #1a1a1a;
    padding: 0.1rem 2rem;
    display: flex;
    /* Changed from space-between to allow logo to center on mobile */
    justify-content: space-between;
    align-items: center;
}

/* Logo image styling */
.navbar-logo img {
    height: 80px; /* Adjust height as needed */
    vertical-align: middle;
    padding-top: -10px;
}

/* Navigation links container - Desktop default */
.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem; /* Adjust space between links */
}

/* Individual link styling */
.navbar-links a {
    color: #e5ff00;
    text-decoration: none;
    font-size: 1.1rem;
    font-style: italic;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.navbar-links a:hover {
    color: #ffffff; /* Change color on hover for better UX */
}

/* --- Mobile Navbar Adjustments --- */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    .navbar-logo img {
        height: 60px; /* Smaller logo on mobile */
    }

    /* --- Fly-out Menu Styling --- */
    .navbar-links {
        /* Transform into a full-screen fly-out panel */
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80%; /* Menu takes up 80% of the screen width */
        max-width: 300px;
        background-color: #1a1a1a;
        z-index: 1000;

        /* Stack links vertically and center them */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;

        /* Hide menu off-screen by default */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .navbar-links.open {
        transform: translateX(0); /* Show menu when .open class is added */
    }
}
/* ==========================================================================
   Hero Section Layout Fix for Mobile (New)
   ========================================================================== */
@media (max-width: 768px) {
    /* Set Hero Section to a column layout */
    #hero-section {
        flex-direction: column;
        /* ADJUSTED: Align items to stretch and use padding for centering text */
        align-items: stretch; 
        justify-content: flex-start; 
        padding-top: 5rem; 
        min-height: 85vh; 
        height: auto;
    }

    /* Adjust the text overlay content (w-full md:w-1/2) */
    #hero-section .w-full.md\:w-1\/2 {
        text-align: center; /* Center text content */
        width: 100% !important; 
        
        margin-top: 0; 
        padding-top: 1rem;
        z-index: 20;
    }
    
    /* ADDED: Target the main H1 tag and dramatically reduce its size on mobile */
    #hero-section h1 {
        /* FIX: Must use !important here because Tailwind inline styles are more specific */
        font-size: 3rem !important; 
        line-height: 1.1;
        margin-bottom: 1rem;
        /* Ensure the title itself is centered */
        text-align: center; 
    }

    /* ADDED: Target the main P tag for better readability */
    #hero-section p {
        font-size: 1rem !important;
        margin-bottom: 2rem;
        /* Reduce the wide padding/margin from the left alignment */
        padding-left: 1rem; 
        padding-right: 1rem;
    }
    
    /* Reposition and size the Canvas container */
    #canvas-container {
        /* FIX: Change from absolute to relative to respect document flow */
        top: auto; 
        position: relative; 
        
        /* ADJUSTED: Give the canvas a fixed, smaller height to center the 3D model */
        height: 300px !important; 
        width: 100% !important;
        transform: none; 
        z-index: 10;
        
        /* Center the 3D canvas within its container and add margin above it */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem; 
        margin-bottom: 2rem; 
    }
    
    /* Fix marquee text to move correctly on mobile */
    .marquee-text {
        font-size: 10vw; 
    }
    
    /* ADDED: Center the buttons horizontally */
    #hero-section .flex.flex-col.sm\:flex-row.gap-4 {
        align-items: center;
        /* Ensure the buttons themselves stack on mobile */
        flex-direction: column; 
    }
}
/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn {
    display: inline-block;
    font-weight: 700; /* bold */
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 2rem; /* Corresponds to py-3 px-8 */
    font-size: 1rem;
    border-radius: 12px; /* Corresponds to rounded-full */
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* Corresponds to shadow-lg */
}

.btn:hover {
    transform: scale(1.05);
}

/* Primary Button: Yellow with Charcoal Text */
.btn-primary {
    background-color: #e5ff00;
    color: #1a1a1a;
    border: 2px solid transparent; /* Prevents layout shift on hover next to bordered buttons */
    /* ADDED: Ensure buttons take full width of container on mobile */
    width: 90%; 
    max-width: 300px;
}

.btn-primary:hover {
    background-color: #c8df00; /* A slightly darker yellow */
}

/* Secondary Button: White with Charcoal Outline */
.btn-secondary {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    /* ADDED: Ensure buttons take full width of container on mobile */
    width: 90%; 
    max-width: 300px;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4rem 2rem; /* 64px top/bottom, 32px left/right */
}

/* A general container class for centering content */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-title {
    font-size: 3rem; /* Corresponds to text-5xl */
    font-weight: 900; /* black */
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem; /* 48px */
    color: #e5ff00;
}

.how-it-works-section .section-title {
    font-style: italic;
}

.how-it-works-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* 48px */
}

.how-it-works-image,
.how-it-works-text {
    flex: 1;
    min-width: 300px; /* Prevent columns from getting too squished */
}

.how-it-works-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.how-it-works-text {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* 32px */
}

.content-block {
    background-color: #e5ff00;
    padding: 1.5rem; /* 24px */
    border-radius: 12px;
}

.content-block h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* bold */
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
    margin-bottom: 0.5rem; /* 8px */
    color: #1a1a1a;
}

.content-block p {
    color: #1a1a1a;
    line-height: 1.6;
}

.content-block ol {
    padding-left: 1.5rem; /* Indent list for readability */
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.content-block li {
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 0.75rem; /* Space between list items */
    padding-left: 0.25rem; /* Small space between number and text */
}

.content-block li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for medium screens and below */
@media (max-width: 768px) {
    .how-it-works-content {
        flex-direction: column;
    }
    .section-title {
        font-size: 2.25rem; /* text-4xl */
    }
    /* Reset the transform on mobile for a simpler, stacked layout */
    .how-it-works-text .content-block:last-child {

    }
}

/* ==========================================================================
   Product Features Section
   ========================================================================== */

/* Desktop: Show animated section, Hide static mobile section */
#product-features-section {
    background-color: white;
    color: black;
    /* Ensure desktop version is visible by default */
    display: block; 
}
#mobile-features-section {
    /* Hide static mobile version by default */
    display: none; 
}

#product-features-section .feature-block {
    background-color: #e5ff00; /* Tip Tag Yellow */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
#product-features-section .feature-block.visible {
    opacity: 1;
}

#product-features-section .feature-block h3 {
    text-transform: uppercase;
    font-style: italic;
}

/* --- Mobile Features Section Adjustments --- */
@media (max-width: 768px) {
    /* Mobile: Hide animated section, Show static mobile section */
    #product-features-section {
        /* Hide desktop version on mobile */
        display: none; 
    }
    #mobile-features-section {
        /* Force show mobile version on mobile */
        display: block !important; 
    }

    /* Styling for the mobile feature blocks */
    .feature-block-mobile {
        background-color: #e5ff00; 
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        max-width: 400px; /* Limit width for better readability */
        margin: 0 auto; /* Center the blocks within the grid cell */
    }
    .mobile-features-title {
        font-style: italic;
        text-transform: uppercase;
    }
    
    #product-features-section .grid-cols-2 {
        /* Stack the feature columns on mobile */
        grid-template-columns: 1fr; 
        /* Center the content */
        justify-items: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #product-features-section .feature-block {
        /* Center feature block text */
        text-align: center;
        max-width: 90%;
    }
    #product-features-section .items-end {
        /* Remove alignment adjustment for right column when stacked */
        align-items: center; 
        text-align: center;
    }
}

/* ==========================================================================
   Why Choose Section
   ========================================================================== */

.why-choose-section {
    background-color: #1d1d1d;
    color: #ffffff;
    padding: 4rem 2rem;
}

.why-choose-title {
    font-style: italic;
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
}

.why-choose-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.why-choose-text,
.why-choose-image {
    flex: 1;
    min-width: 300px;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.why-choose-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-text li {
    font-size: 1.1rem;
    line-height: 1.7;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.why-choose-text li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #e5ff00; /* Tip Tag Yellow */
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .why-choose-content {
        flex-direction: column;
    }
    /* Center text when stacked on mobile */
    .why-choose-text li {
        text-align: left; /* Keep text aligned left for lists */
        padding-left: 2.5rem;
    }
}

/* ==========================================================================
   Collaborations Section
   ========================================================================== */

.collab-section {
    background-color: #f3f4f6; /* A light gray background to separate it */
    padding: 4rem 2rem;
}

.collab-title {
    color: #1a1a1a; /* Black title */
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
    text-transform: none; /* Override default uppercase from .section-title */
}

.collab-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.collab-card {
    flex: 1;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.collab-card-icon {
    color: #e5ff00; /* Tip Tag Yellow */
    margin-bottom: 1.5rem;
}

.collab-card-icon svg {
    width: 4rem; /* 64px */
    height: 4rem; /* 64px */
    margin: 0 auto;
}

.collab-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Acumin Hero', sans-serif;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.collab-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .collab-cards-container, .collab-cta {
        flex-direction: column;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background-color: #1d1d1d;
    color: #ffffff;
    padding: 4rem 2rem;
    position: relative;
    border-bottom: 8px solid #e5ff00; /* Thick yellow line */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text,
.about-image {
    min-width: 300px;
}

.about-text {
    flex: 1.5; /* Give more space to the text */
}
.about-image {
    flex: 1; /* Give less space to the image */
}

.about-section-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Acumin Hero', sans-serif;
    font-style: italic;
    text-transform: uppercase;
    color: #e5ff00;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-text p {
        font-size: 1.1rem;
        text-align: center;
    }
    .about-section-title {
        text-align: center;
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem;
    border-top: 2px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Increase size of the main footer logo */
.footer-content > .footer-logo {
    height: 120px; /* 3x the original size */
}

.footer-logo {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aec0; /* Tailwind's gray-500 */
}

.footer-contact a {
    font-size: 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.footer-socials a:hover svg {
    fill: #e5ff00; /* Tip Tag Yellow */
}

.footer-powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #a0aec0; /* Tailwind's gray-500 */
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-powered-by {
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    /* background-color is removed to make the SVG icon visible */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Ensure the image scales correctly within the button */
.back-to-top-btn img {
    width: 48px; 
    height: 48px;
}
