/* ============================================
   ASAI Landing Page - CSS Stylesheet
   Design: Corporate-Academic Minimalism
   Colors: Deep Teal (#004d40), Navy (#1a1a2e), Silver (#e8e8e8)
   Typography: Poppins (Bold), Inter (Regular)
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8e8;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #004d40;
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: none;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: #666666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #004d40;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: 128px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #004d40;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 56px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 64px;
    }
}

.accent-line {
    width: 64px;
    height: 4px;
    background-color: #004d40;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-visual {
    position: relative;
    height: 384px;
}

@media (min-width: 1024px) {
    .hero-visual {
        height: 100%;
        min-height: 500px;
    }
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #004d40;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #004d40;
    color: white;
}

.btn-primary:hover {
    background-color: #003d33;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #004d40;
    color: #004d40;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #004d40;
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 80px 16px;
    background-color: #f5f5f5;
}

@media (min-width: 768px) {
    .about-section {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .about-section {
        padding: 80px 32px;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    max-width: 768px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 44px;
    }
}

.section-header .accent-line {
    margin: 16px auto 24px;
}

.section-subtitle {
    font-size: 18px;
    color: #666666;
    line-height: 1.8;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.card p {
    color: #666666;
    line-height: 1.8;
    font-size: 16px;
}

/* Pillar Cards */
.pillar-card {
    text-align: center;
}

.pillar-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-icon img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/* ============================================
   PILLARS SECTION
   ============================================ */
.pillars-section {
    padding: 80px 16px;
}

@media (min-width: 768px) {
    .pillars-section {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .pillars-section {
        padding: 80px 32px;
    }
}

/* ============================================
   JOURNAL SECTION
   ============================================ */
.journal-section {
    padding: 80px 16px;
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.05) 0%, rgba(26, 26, 46, 0.05) 100%);
}

@media (min-width: 768px) {
    .journal-section {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .journal-section {
        padding: 80px 32px;
    }
}

.journal-card {
    max-width: 1024px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 48px;
    border: 1px solid #e8e8e8;
}

@media (max-width: 768px) {
    .journal-card {
        padding: 32px;
    }
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.journal-box {
    padding: 24px;
    background-color: #f5f5f5;
    border-left: 4px solid #004d40;
    border-radius: 4px;
}

.journal-box h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.journal-box p {
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.journal-box p:last-child {
    margin-bottom: 0;
}

.journal-cta {
    text-align: center;
}

.journal-note {
    font-size: 14px;
    color: #666666;
    margin-top: 16px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
    font-size: 24px;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    font-size: 28px;
    color: #666666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1a1a2e;
}

.modal-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-box {
    padding: 24px;
    background-color: #f5f5f5;
    border-left: 4px solid #004d40;
    border-radius: 4px;
}

.modal-box h4 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.modal-box ul {
    list-style: none;
}

.modal-box li {
    color: #666666;
    font-size: 14px;
    padding: 8px 0;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 16px;
    padding: 24px 32px;
    border-top: 1px solid #e8e8e8;
}

.modal-footer .btn {
    flex: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #1a1a2e;
    color: white;
    padding: 64px 16px;
}

@media (min-width: 768px) {
    .footer {
        padding: 64px 24px;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 64px 32px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.footer-section p {
    color: #999999;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-description {
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #999999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #999999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards 0.2s;
    opacity: 0;
}

/* Intersection Observer - Lazy Animation */
.cards-grid .card:nth-child(1) {
    animation-delay: 0s;
}

.cards-grid .card:nth-child(2) {
    animation-delay: 0.2s;
}

.cards-grid .card:nth-child(3) {
    animation-delay: 0.4s;
}

.journal-box:nth-child(1) {
    animation-delay: 0s;
}

.journal-box:nth-child(2) {
    animation-delay: 0.1s;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-visual {
        height: 300px;
    }

    .journal-card {
        padding: 24px;
    }

    .modal-header {
        padding: 24px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        padding: 16px 24px;
        flex-direction: column;
    }
}
