/**
 * PPID SMAN 1 Lubuk Sikaping - Modern Professional Theme
 * Designed for maximum visual appeal and professionalism
 */

/* ===== MODERN COLOR PALETTE ===== */
:root {
    /* Primary Colors - Modern Blue Gradient */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Accent Colors - Vibrant Gradient */
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;

    /* Neutral Colors - Premium Gray Scale */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-ocean: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-forest: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-royal: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-fire: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Shadows - Premium Depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 40px -10px rgba(59, 130, 246, 0.4);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography - Premium Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== IMPORT GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== BASE STYLES ===== */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background: var(--neutral-50);
    color: var(--neutral-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

/* ===== MODERN HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 600px !important;
    background: var(--gradient-ocean) !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 6rem 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--neutral-50);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: none !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
    max-width: 600px;
    margin: 0 auto 2rem !important;
}

/* ===== MODERN BUTTONS ===== */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== MODERN CARDS ===== */
.card {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-sm) !important;
    background: white;
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl) !important;
    transform: translateY(-8px);
}

.card-img-top {
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== SERVICE CARDS ===== */
.hover-lift {
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Service Icon Cards */
.card-body i.fa-3x {
    transition: all var(--transition-base);
}

.card:hover i.fa-3x {
    transform: scale(1.1) rotate(5deg);
}

/* ===== MODERN SECTION BACKGROUNDS ===== */
section:nth-child(even) {
    background: linear-gradient(to bottom, var(--neutral-50), white);
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
}

/* ===== NEWS CARDS ===== */
.news-card {
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.news-card .card-title a {
    transition: color var(--transition-fast);
    font-weight: 600;
}

.news-card:hover .card-title a {
    color: var(--primary-600) !important;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge.bg-primary {
    background: var(--gradient-ocean) !important;
}

/* ===== OFFICIALS SECTION ===== */
.rounded-circle {
    border: 4px solid var(--primary-100) !important;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.card:hover .rounded-circle {
    border-color: var(--primary-600) !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ===== GALLERY SECTION ===== */
.group-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.group-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.group-gallery:hover::before {
    opacity: 1;
}

.group-gallery img {
    transition: transform var(--transition-slow);
}

.group-gallery:hover img {
    transform: scale(1.1);
}

/* ===== HEADER IMPROVEMENTS ===== */
.top-info-bar {
    background: var(--gradient-ocean) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-700) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-600) !important;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    transform: translateX(5px);
}

/* ===== TEXT UTILITIES ===== */
.text-primary {
    color: var(--primary-600) !important;
}

.text-muted {
    color: var(--neutral-500) !important;
}

/* ===== SPACING IMPROVEMENTS ===== */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero-section {
        min-height: 500px !important;
        padding: 4rem 0 !important;
    }

    /* Mobile Buttons Optimization */
    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 1rem;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* General Mobile Enhancements */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER IMPROVEMENTS ===== */
.footer {
    background: var(--gradient-ocean);
    color: white;
    padding: 3rem 0 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: white;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* ===== LOADING STATES ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== MODERN FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Footer Pattern Overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-text {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '\f054';
    /* FontAwesome chevron-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-right: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    color: #3b82f6;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Contact Info */
.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.footer-contact i {
    color: #3b82f6;
    margin-top: 0.3rem;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}