/**
 * THINKSim - Homepage Styles
 */

:root {
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ff8c42 50%, #f7931e 100%);
    --gradient-text: linear-gradient(135deg, #ff6b6b, #ff8c42);
    --color-pink: #ff6b6b;
    --color-orange: #ff8c42;
    --color-dark: #1a1a2e;
    --color-dark-light: #2d2d44;
    --color-text: #333;
    --color-text-muted: #666;
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', var(--font-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 100%;
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    font-weight: 75;
    color: white;
    display: none;
}

.site-logo-text.show {
    display: inline;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: white;
    font-size: 0.95rem;
}

.header-user {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.header-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.4) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 1200;
    color: DarkGoldenRod;
    line-height: 1.2;
    margin-bottom: 0.50rem;
}

.hero-heading .highlight {
    display: inline;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-orange);
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin-bottom: 1rem;
}

.hero-tagline2 {
    font-size: 1.15rem;
    color: DarkGoldenRod;
    max-width: 560px;
    margin-bottom: 1rem;
}

.hero-tagline .highlight {
    color: var(--color-orange);
    font-weight: 600;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(
          90deg,
          #B67B01 0%,
          #DBAF3A 25%,
          #FCE57F 50%,
          #F9DE6B 75%,
          #C7921A 100%
        );
    color: black;
    border: 2px solid DarkGoldenRod;
    border-radius: 50px; /* Creates the pill-shaped button */
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: white;
    color: #1a1a2e; /* Dark color for contrast when hovering */
    border-color: white;
}

/* Feature Cards Section */
.features-section {
    width: 100%;
    padding: 2rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f7fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-card-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.feature-card-body {
    padding: 1.5rem;
}

.feature-card-text {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.feature-card-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}

/* Module Cards (clickable, no button) */
.modules-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.modules-section-heading .highlight {
    display: inline;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-orange);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.module-card {
    display: block;
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.module-card-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.module-card-body {
    padding: 1.5rem;
}

.module-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.module-card-text {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* Statistics */
.stats-section {
    padding: 2rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-value {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Problem/Solution Section */
.problem-section {
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    
    
/* Mobile layout - stack vertically */
@media (max-width: 768px) {
    .problem-section {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem;
    }
    
    .problem-section > div:first-child {
        order: 1; /* Text first */
    }
    
    .problem-video {
        order: 2; /* Video second */
        max-width: 100%;
        margin: 0 auto;
    }
}
}

.btn-read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8c42);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-read-more:hover {
    box-shadow: 0 0 0 3px #d4a84b;
    color: white !important;
}

.problem-video-wrap {
    max-width: 420px;
    margin-left: auto;
}

.problem-video-wrap .problem-image {
    width: 100%;
    border-radius: 12px;
}

.problem-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.problem-heading .highlight {
    display: inline;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-orange);
}

.problem-paragraphs p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-align: justify;
}

.problem-image {
    border-radius: 12px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* Mission Section */
.mission-section {
    padding: 4rem 2rem;
    text-align: center;
}

.mission-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.mission-subheading {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* Collaboration Image */
.collaboration-section {
    padding: 0 0 4rem;
}

.collaboration-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Tools Section */
.tools-section {
    width: 100%;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tools-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 3rem;
}

.tools-heading .highlight {
    display: inline;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-orange);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.tool-card {
    min-width: 0;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.tool-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.tool-card-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.tool-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tool-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.tool-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}

.tool-card-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Footer */
.site-footer {
    width: 100%;
    background: var(--color-dark);
    color: white;
    padding: 2.5rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    height: 36px;
}

.footer-social h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.social-icons a:hover {
    background: var(--gradient-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: left;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-orange);
}

/* Responsive */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .features-grid,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem-section > div:first-child {
        order: 1;
    }
    .problem-video-wrap {
        order: 2;
        max-width: 100%;
        margin: 0 auto;
    }

    .problem-image {
        max-width: 100%;
    }

    .hero-content {
        padding: 2rem 1.5rem 6rem;
    }

    .hero-heading {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.25rem;
        flex-wrap: nowrap;
    }

    .header-nav {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .header-nav .header-link,
    .header-nav .header-cta {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .site-logo {
        height: 34px;
    }

    .site-logo-text {
        font-size: 1.2rem;
    }

    .features-section,
    .problem-section,
    .tools-section {
        padding: 2rem 1.25rem;
    }

    .features-grid,
    .tools-grid,
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        text-align: center;
    }

    .hero-content {
        padding: 2rem 1rem 5rem;
    }

    .hero-heading {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .problem-heading {
        font-size: 1.5rem;
    }

    .problem-paragraphs p {
        font-size: 1rem;
    }

    .problem-video-wrap {
        max-width: 100%;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-top {
        padding-bottom: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .header-link,
    .header-cta,
    .hero-cta,
    .btn-read-more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.75rem 0.75rem;
    }

    .header-nav .header-link,
    .header-nav .header-cta {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .site-logo {
        height: 32px;
    }

    .hero-content {
        padding: 1.5rem 0.75rem 4rem;
    }

    .hero-heading {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .features-section,
    .problem-section,
    .tools-section {
        padding: 1.5rem 1rem;
    }

    .modules-section-heading,
    .problem-heading {
        font-size: 1.35rem;
    }

    .module-card-body,
    .feature-card-body {
        padding: 1rem;
    }

    .module-card-title {
        font-size: 1.05rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }
}
