/* Component Styles for AISCIA Website */

/* Background and Video Styles */
.background-container {
    z-index: -1;
    background: #10131a !important;
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: blur(16px) brightness(0.7);
}

#glassOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px) saturate(160%);
    border-radius: 0;
    transition: opacity 0.4s;
    opacity: 1;
}

#fallbackAnimation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* Hero Section Styles */
#heroSection {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 30px 60px 30px;
    box-sizing: border-box;
}

.hero-tagline {
    font-size: clamp(1.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: clamp(0.5px, 0.2vw, 2px);
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Josefin Sans','Inter','Montserrat','Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-divider {
    width: 70%;
    max-width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0.8;
    margin: 0 auto;
    border-radius: 2px;
}

.hero-subtitle {
    max-width: 800px;
    font-size: clamp(0.9rem, 3vw, 2rem);
    line-height: 1.5;
    text-align: center;
    color: #f0f4f8;
    width: 100%;
    word-wrap: break-word;
}

/* Platform Section Styles */
.platform-title {
    color: #b2c7e6;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin: 48px 0 24px 0;
    font-family: 'Josefin Sans','Inter','Montserrat','Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
}

.platform-title sup {
    font-size: 1.2rem;
    vertical-align: top;
    margin-left: 4px;
}

.platform-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 32px auto;
    font-size: 1.25rem;
    color: #ffffff;
    font-family: 'Josefin Sans','Inter','Montserrat','Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
    opacity: 0.92;
    line-height: 1.6;
    font-weight: 500;
}

.platform-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(24px, 6vw, 48px) clamp(15px, 4vw, 24px);
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: clamp(20px, 5vw, 48px);
}

.platform-card {
    background: linear-gradient(135deg,#f5f8ff 0%,#e3eafc 100%);
    border-radius: clamp(16px, 3vw, 24px);
    padding: clamp(24px, 5vw, 48px) clamp(20px, 4vw, 36px);
    box-shadow: 0 8px 32px rgba(100,181,246,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 3vw, 22px);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.platform-card h3 {
    color: #1a237e;
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: clamp(6px, 2vw, 12px);
    font-family: 'Josefin Sans',sans-serif;
    letter-spacing: 1px;
    text-align: left;
    line-height: 1.2;
}

.platform-card p {
    color: #23243a;
    font-size: clamp(0.9rem, 2.5vw, 1.08rem);
    line-height: 1.6;
    margin-bottom: clamp(6px, 2vw, 10px);
    font-weight: 500;
    text-align: left;
}

.platform-card ul {
    color: #2d3a5a;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.7;
    list-style: none;
    padding-left: 0;
    margin-top: clamp(4px, 1.5vw, 8px);
    width: 100%;
}

.platform-card li {
    margin-bottom: 6px;
}

/* Responsive Design for Platform Sections */
@media (max-width: 1200px) {
    .platform-sections {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 32px;
        padding: 32px 8px;
    }
    .platform-card {
        padding: 32px 18px;
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .platform-sections {
        grid-template-columns: 1fr; /* 1 column on mobile (one by one) */
        gap: 24px;
        padding: 18px 2vw;
    }
    .platform-card {
        padding: 18px 8px;
        gap: 12px;
    }
    .platform-card h3 {
        font-size: 1.3rem;
    }
    .platform-card p, .platform-card ul {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .platform-sections {
        gap: 16px;
        padding: 8px 1vw;
    }
    .platform-card {
        padding: 10px 2px;
        gap: 8px;
    }
    .platform-card h3 {
        font-size: 1.1rem;
    }
    .platform-card p, .platform-card ul {
        font-size: 0.85rem;
    }
}

/* Responsive Design for Empty Cards Section */
@media (max-width: 1200px) {
}

@media (max-width: 900px) {
    .empty-cards-section {
        grid-template-columns: 1fr; /* 1 column on mobile (one by one) */
        gap: 24px;
        padding: 18px 2vw;
    }
    .empty-card {
        padding: 18px 8px;
        min-height: 160px;
    }
    .empty-card h3 {
        font-size: 1.3rem;
    }
    .empty-card h4 {
        font-size: 1.2rem;
    }
    .empty-card p, .empty-card ul {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .empty-cards-section {
        gap: 16px;
        padding: 8px 1vw;
    }
    .empty-card {
        padding: 10px 2px;
        min-height: 140px;
    }
    .empty-card h3 {
        font-size: 1.1rem;
    }
    .empty-card h4 {
        font-size: 1rem;
    }
    .empty-card p, .empty-card ul {
        font-size: 0.9rem;
    }
}

/* Demo Modal Styles */
#demoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,34,54,0.32);
    backdrop-filter: blur(4px) saturate(160%);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 32px rgba(100,181,246,0.18);
    border-radius: 32px;
    padding: 48px 40px;
    max-width: 600px;
    width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
}

.demo-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #4267b2;
    cursor: pointer;
}

.demo-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #23243a;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-align: center;
    font-family: 'Josefin Sans','Inter','Montserrat','Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
}

.demo-modal-text {
    font-size: 1.1rem;
    color: #4267b2;
    text-align: center;
    max-width: 500px;
}

.demo-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.demo-form input,
.demo-form textarea {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid #b2c7e6;
    font-size: 1rem;
    outline: none;
}

.demo-form textarea {
    resize: none;
}

.demo-form button {
    background: linear-gradient(135deg,#4a90e2 0%,#64b5f6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 0;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(100,181,246,0.14);
    cursor: pointer;
    transition: transform 0.2s,box-shadow 0.2s;
}

/* Demo Button */
#demoBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 998;
    background: linear-gradient(135deg,#4a90e2 0%,#64b5f6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 36px;
    border-radius: 32px;
    border: none;
    box-shadow: 0 2px 16px rgba(100,181,246,0.18);
    cursor: pointer;
    transition: transform 0.2s,box-shadow 0.2s;
}

/* Responsive Styles */
@media (max-width: 900px) {
    #demoBtn {
        font-size: 1rem !important;
        padding: 14px 24px !important;
        bottom: 18px !important;
        right: 18px !important;
        border-radius: 24px !important;
    }
}

@media (max-width: 600px) {
    #demoBtn {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
        bottom: 8px !important;
        right: 8px !important;
        border-radius: 16px !important;
    }
}
