/* common.css */
:root {
    --brand-cyan: #00d4ff;
    --brand-pink: #ff3aa6;
    --bg-deep: #0b1020;
    --accent-blue: #2563eb;
    --accent-purple: #a788dc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(15, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(90deg, var(--brand-cyan), var(--brand-pink));
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --navbar-height: 72px;
}

* {
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
    background: #0f172a;
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
}

/* Common Navigation Styles */
.modern-nav {
    position: fixed; /* make it independent of flow */
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* ensure it stays on top */
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide on scroll */
.modern-nav.scrolled {
    transform: translateY(-100%); /* actually moves it up */
    background: rgba(8, 12, 24, 0.98);
    padding: 8px 0;
}

.navbar .nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 4px;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 8px;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.brand-text {
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo-main {
    height: 60px;
    width: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-main {
    transform: rotate(5deg) scale(1.05);
}

/* Common Footer Styles */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.social-links a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

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

.footer-links i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

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

.footer-contact li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--brand-cyan);
    width: 20px;
    flex-shrink: 0;
}

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

/* Common Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    color: white;
}

.btn-pill {
    border-radius: 50px !important;
}

.btn-lg {
    padding: 1.25rem 2.5rem !important;
    font-size: 1.125rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-option {
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.language-option:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 18px;
}

/* Common Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem !important;
        font-size: 1rem;
    }
}

/* Section wrapper */
.termin-header {
    position: relative;
    width: 100%;
    height: 60vh;

    display: flex;
    justify-content: center;

    /* 🔑 THIS IS THE FIX */
    padding-top: 72px;          /* navbar height */
    box-sizing: border-box;

    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(11,16,32,0.95),
        rgba(37,99,235,0.4)
    );
}


/* Dark overlay for contrast */
.termin-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

/* Content wrapper */
.termin-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--text-primary);

    /* 🔑 TRUE vertical centering BELOW navbar */
    margin-top: auto;
    margin-bottom: auto;
}


/* Icon pop-up */
.termin-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transform: scale(0);
    animation: popUp 0.6s forwards;
}

@keyframes popUp {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}

.termin-title {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.termin-subtitle {
    font-size: 1.6rem;
    opacity: 0.85;
}

/* Canvas layers */
.termin-confetti-layer,
.termin-particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.termin-particles-layer {
    z-index: 3;
}
