/**
 * Landing Page Styles
 * Styles for the main landing page with two service cards
 * 
 * @package RegTransferGraduate
 * @version 1.0
 */

/* CMU Color Theme Variables */
:root {
    --cmu-purple: #663399;
    --cmu-purple-dark: #522a7a;
    --cmu-purple-light: #8855bb;
    --cmu-gold: #f4a900;
    --cmu-gold-dark: #d99000;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #663399 0%, #8855bb 100%);
    font-family: 'Kanit', 'Taviraj', 'Prompt', sans-serif;
}

/* Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header-compact {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    margin: 0;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
}

/* Page Title */
.page-title {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-title p {
    font-size: 2.2rem;
    opacity: 0.95;
    font-weight: 400;
    color: #f0f0f0;
    /* underline */
    text-decoration: underline;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    animation: fadeInUp 1s ease-out;
}

/* Service Card */
.service-card-landing {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cmu-purple), var(--cmu-gold));
}

.service-card-landing:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Card Icon */
.card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--cmu-purple), var(--cmu-purple-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(102, 51, 153, 0.3);
    transition: all 0.4s ease;
}

.service-card-landing:hover .card-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--cmu-gold), var(--cmu-gold-dark));
}

.card-icon i {
    font-size: 3rem;
    color: white;
}

/* Card Title & Description */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--cmu-purple);
}

.card-description {
    font-size: 1rem;
    text-align: center;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Card Features List */
.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.card-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li i {
    color: var(--cmu-gold);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Card Button */
.card-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--cmu-purple), var(--cmu-purple-light));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.3);
}

.card-button:hover {
    background: linear-gradient(135deg, var(--cmu-purple-dark), var(--cmu-purple));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 51, 153, 0.4);
    color: white;
}

/* Badge Status */
.badge-status {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-open {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 2px solid #10b981;
}

.badge-available {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 2px solid #3b82f6;
}

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
}

/* Responsive Design - Mobile Large */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 1.8rem;
    }

    .page-title p {
        font-size: 0.95rem;
    }

    .service-card-landing {
        padding: 2rem;
    }

    .card-icon {
        width: 80px;
        height: 80px;
    }

    .card-icon i {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .cards-container {
        gap: 1.5rem;
    }
}

/* Responsive Design - Mobile Small */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .service-card-landing {
        padding: 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon i {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .badge-status {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
