/*
 * Improved Landing Page Styles for GaSE VTU
 * 
 * This stylesheet enhances the visual appeal and responsiveness of the landing page.
 * It incorporates modern CSS practices, improved typography, and consistent design elements.
 */

:root {
    --lp-bg: #070a12;
    --lp-surface: rgba(255, 255, 255, 0.06);
    --lp-border: rgba(255, 255, 255, 0.12);
    --lp-text: rgba(255, 255, 255, 0.92);
    --lp-muted: rgba(255, 255, 255, 0.7);
    --lp-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    --lp-primary: #0d6efd; /* Default primary color, overridden by PHP if available */
    --lp-glass: rgba(255, 255, 255, 0.05);
    --lp-glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    color: var(--lp-text);
    background: radial-gradient(1200px 600px at 10% 0%, rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35), transparent 60%),
                radial-gradient(900px 550px at 90% 10%, rgba(var(--bs-secondary-rgb, 102, 16, 242), 0.22), transparent 60%),
                radial-gradient(800px 520px at 50% 110%, rgba(32, 201, 151, 0.16), transparent 60%),
                var(--lp-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .lp-brand {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.lp-pill {
    border-radius: 999px !important;
}

.lp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 480ms ease, transform 480ms ease;
}

.lp-reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.lp-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1040;
    padding: 1rem 0;
    background: rgba(7, 10, 18, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 180ms ease, border-color 180ms ease;
}

.lp-nav.scrolled {
    background: rgba(7, 10, 18, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-width: 0;
}

.lp-brand img {
    height: 40px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.lp-brand span {
    display: inline-block;
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    transition: color 0.2s ease;
}

.lp-nav .nav-link:hover,
.lp-nav .nav-link:focus {
    color: #fff;
}

/* Hero Section */
.lp-hero {
    position: relative;
    padding: 8rem 0 6rem;
    color: var(--lp-text);
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: -140px -140px auto -140px;
    height: 420px;
    background: radial-gradient(circle at 30% 40%, rgba(var(--bs-primary-rgb, 13, 110, 253), 0.55), transparent 60%),
                radial-gradient(circle at 70% 20%, rgba(var(--bs-secondary-rgb, 102, 16, 242), 0.45), transparent 62%);
    filter: blur(30px);
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
}

.lp-hero h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.lp-hero .lead {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    max-width: 60ch;
}

.lp-hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1.5rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--lp-shadow);
}

/* Sections */
.lp-section {
    padding: 6rem 0;
    color: var(--lp-text);
}

.lp-section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4vw, 3rem);
}

.lp-section-subtitle {
    color: var(--lp-muted);
    max-width: 70ch;
    font-size: 1.1rem;
}

/* Cards */
.lp-card {
    height: 100%;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--lp-glass);
    border: 1px solid var(--lp-glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.lp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.lp-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.18);
    border: 1px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.28);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.lp-card .icon i {
    color: var(--lp-primary);
    font-size: 1.8rem;
}

.lp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--lp-text);
}

.lp-card p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.95rem;
}

/* Steps */
.lp-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.lp-step .num {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: rgba(var(--bs-secondary-rgb, 102, 16, 242), 0.18);
    border: 1px solid rgba(var(--bs-secondary-rgb, 102, 16, 242), 0.3);
    color: var(--lp-text);
    font-weight: 700;
    font-size: 1.2rem;
}

.lp-step h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lp-step p {
    margin: 0;
    color: var(--lp-muted);
}

/* CTA Section */
.lp-cta .p-5 {
    padding: 4rem !important;
}

/* Footer */
.lp-footer {
    padding: 4rem 0 2rem;
    color: var(--lp-muted);
    border-top: 1px solid var(--lp-glass-border);
    background: #0a0a0a;
}

.lp-footer a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}

.lp-footer a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .lp-hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .lp-section {
        padding: 4rem 0;
    }
    .lp-nav .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background: rgba(7, 10, 18, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .lp-nav .navbar-nav .btn {
        width: 100%;
        justify-content: center;
    }
    .lp-cta .p-5 {
        padding: 3rem !important;
    }
}

@media (max-width: 767.98px) {
    .lp-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .lp-hero .lead {
        font-size: 1rem;
    }
    .lp-hero-image {
        border-radius: 1rem;
    }
    .lp-card {
        padding: 1.5rem;
    }
    .lp-card .icon {
        width: 48px;
        height: 48px;
        border-radius: 0.8rem;
    }
    .lp-card .icon i {
        font-size: 1.5rem;
    }
    .lp-step .num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lp-step h4 {
        font-size: 1.1rem;
    }
    .lp-cta .p-5 {
        padding: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .lp-brand img {
        height: 34px;
        max-width: 190px;
    }
    .lp-hero {
        padding: 4rem 0 2rem;
    }
    .lp-hero-actions .btn {
        width: 100%;
    }
    .lp-section {
        padding: 3rem 0;
    }
    .lp-footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .lp-card,
    .lp-reveal {
        transition: none !important;
    }
}
