/* TMAAI Platform Stylesheet
    Strict adherence to FirstMovers.ai Layout Structure (Flexbox/Grid)
    Theme: Dark Mode (#000000) + Cyan Accents (#00F0FF) + Chrome Gradients
    Typography: Outfit (Headings) + Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Color Palette (FirstMovers Layout + User Customization) */
    --bg-black: #000000;
    --bg-dark-gray: #121212;
    --bg-card: #0A0A0A;

    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-dark: #111111;

    /* Accents */
    --accent-cyan: #00F0FF;
    --accent-cyan-hover: #00D1E0;
    --border-divider: #333333;

    /* Chrome Gradient (User Requested Replacement for Greens) */
    --chrome-gradient: linear-gradient(135deg, #E0E0E0 0%, #C0C0C0 50%, #808080 100%);
    --chrome-text: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);

    /* Typography Defaults (From Analysis) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Dimensions */
    --container-max: 1200px;
    --header-height: 80px;
}

/* -----------------------------------------------------------
   RESET & BASE 
----------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------
   TYPOGRAPHY (FirstMovers Specs)
----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.1;
}

h1 {
    font-size: clamp(48px, 5vw, 80px);
    /* Responsive 80px */
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(36px, 4vw, 48px);
    /* Responsive 48px */
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

h4 {
    font-size: 24px;
    font-weight: 600;
}

p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 400;
}

/* -----------------------------------------------------------
   LAYOUT UTILITIES (Flexbox/Grid)
----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Flex Container Helper */
.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Grid Helper */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.section-padding {
    padding: 100px 0;
}

/* -----------------------------------------------------------
   COMPONENTS
----------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--bg-black);
    border: 1px solid var(--accent-cyan);
}

.btn-primary:hover {
    background-color: var(--accent-cyan-hover);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-chrome {
    background: var(--chrome-gradient);
    color: var(--bg-black);
    border: 1px solid #ccc;
}

.btn-chrome:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated logo styles for Image + Text */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* New: Logo Text Styling */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text-white);
    line-height: 1;
}

.logo-text span {
    color: var(--accent-cyan);
}

/* Navigation & Dropdown */
nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
    /* Align items vertically */
    margin: 0;
    /* Reset margin */
    padding: 0;
    /* Reset padding */
}

nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    /* Ensure visibility */
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 8px;
    color: var(--accent-cyan);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 240px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-divider);
    border-radius: 4px;
    top: 100%;
    /* Position below */
    left: 0;
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
    /* Space from header */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    display: block;
    width: 100%;
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none;
    /* Normal case for sub-items */
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-content a:hover {
    background-color: rgba(0, 240, 255, 0.05);
    color: var(--accent-cyan);
    padding-left: 25px;
    /* Slide effect */
}

/* -----------------------------------------------------------
   HERO SECTION
----------------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, #1a1a1a 0%, #000000 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    filter: blur(60px);
}

/* Updated: Hero Content now fits in a grid, so we remove the fixed max-width restriction if it conflicts */
.hero-content {
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-sub {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
}

/* New Hero Image Styles */
.hero-logo-large {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    /* Prevents it from being overwhelmingly huge on large screens */
    transition: transform 0.3s ease;
}

.hero-logo-large:hover {
    transform: scale(1.02);
}

.gradient-text {
    background: var(--chrome-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

/* -----------------------------------------------------------
   SECTIONS
----------------------------------------------------------- */
.section-dark {
    background-color: var(--bg-black);
}

.section-gray {
    background-color: var(--bg-dark-gray);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-divider);
    padding: 40px;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

/* New Style for Card Images (Added for TMAAI-4.png and TMAAI-5.png) */
.card-feature-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 24px;
    display: block;
}

.icon-box {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-gray);
}

.feature-list li::before {
    content: '→';
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 80px 0 30px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #555;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Mobile optimization for the hero image */
    .hero-image-container {
        order: -1;
        /* Optional: Makes image appear ABOVE text on mobile. Remove line to keep text on top. */
        margin-bottom: 30px;
    }

    nav {
        display: none;
        /* Mobile menu to be implemented */
    }
}