/* 
 * Custom Styles for Regis Satit Admission Landing Page
 * Theme: Modern, Automation, AI, Cartoon/Cute
 */

 :root {
    --primary-color: #007bff; /* Satit Blue */
    --secondary-color: #ffc107; /* Satit Gold/Yellow */
    --accent-color: #00e5ff; /* AI Neon Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-radius-lg: 20px;
    --border-radius-sm: 10px;
}

body {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.15rem; /* Increased base font size */
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography Customization */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 15px 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.navbar:not(.scrolled) .nav-link {
    color: white !important; /* White links when transparent on bg */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-apply-nav {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-apply-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/IMG_2437.PNG') no-repeat center center/cover;
    text-align: center;
    color: white;
}

/* The AI / Modern Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(255, 193, 7, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 1s ease-out 0.4s both;
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.btn-hero i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.btn-hero:hover i {
    transform: translateX(5px);
}

/* Features/Levels Section */
.levels-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.levels-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-light);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.level-card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: height 0.3s ease;
    z-index: -1;
}

.level-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.level-card:hover::before {
    height: 100%;
    opacity: 0.03;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,229,255,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.level-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.level-card:hover .icon-wrapper i {
    color: white;
}

.level-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.level-desc {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(to right, #1a2a6c, #11998e); /* Deep blue to green tech feel */
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

/* Cute cartoon wave top for footer */
.main-footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C59.71,118.06,130.83,120.22,197.94,113.88,241.67,109.76,283.47,71.05,321.39,56.44Z" fill="%231a2a6c"></path></svg>') no-repeat;
    background-size: cover;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--text-dark);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Stepper UI */
.stepper-wrapper {
    display: flex;
    justify-content: b-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 3px solid #dee2e6;
    width: 100%;
    top: 25px;
    left: -50%;
    z-index: -1;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stepper-item.active .step-counter {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.stepper-item.completed .step-counter {
    background: #28a745;
    color: white;
}

.stepper-item.completed::before {
    border-color: #28a745;
}

.stepper-item .step-name {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.stepper-item.active .step-name {
    color: var(--primary-color);
    font-weight: bold;
}

.form-step {
    display: none;
}

.form-step-active {
    display: block;
    animation: fadeInStep 0.5s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .stepper-item .step-name {
        display: none;
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-logo {
        max-width: 180px;
    }
    .navbar:not(.scrolled) .nav-link {
        color: var(--text-dark) !important;
        text-shadow: none;
    }
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
}
