:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --gradient-1: #1f6feb;
    --gradient-2: #8957e5;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(48, 54, 61, 0.5);
}

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

body {
    font-family: 'Inter', 'Kanit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(31, 111, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(137, 87, 229, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, 5%);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Main Content Area */
main {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem);
    position: relative;
    overflow: hidden;
}

.section {
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section:last-child {
    border-bottom: none;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Typography & Elements */
h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Glassmorphism Components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card h2,
.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 111, 235, 0.2);
    border-color: rgba(88, 166, 255, 0.3);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Timeline (Flow Section) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gradient-1), var(--gradient-2));
    border-radius: 2px;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
}

.step-content {
    flex: 1;
    padding: 2rem !important;
}

/* AI Section Elements */
.feature-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.ai-illustration {
    flex: 1;
    height: 250px;
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(88, 166, 255, 0.8);
    box-shadow: 0 0 15px var(--accent-color);
    top: 0;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {

    0%,
    100% {
        top: 5%;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        top: 95%;
    }
}

.face-model {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
}

.ai-details {
    flex: 2;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(137, 87, 229, 0.2);
    color: #cda8ff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(137, 87, 229, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: white;
    box-shadow: 0 4px 15px rgba(31, 111, 235, 0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 235, 0.6);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

.btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .feature-card {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

/* Animations Trigger Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Elements from Canva */
.university-tag {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.feature-card-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Team Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    text-align: center;
    padding: 1.5rem 1rem !important;
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.team-role {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.team-card.highlight {
    border-color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}