:root {
    --primary: #1f55b5;
    --primary-dark: #17449a;
    --primary-light: #4d9ae1;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-500: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
}

.hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(15,23,42,0.9), rgba(30,27,75,0.8), rgba(12,74,110,0.9));
    background-size: 400% 400%;
    animation: gradientBg 15s ease infinite;
    z-index: 2;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://infocare.upgris.ac.id/assets/uploads/Screenshot 2026-06-17 at 04.35.23.png') center/cover no-repeat;
    opacity: 0.5;
    z-index: 1;
    filter: grayscale(50%);
}

@keyframes gradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    animation: float 10s ease-in-out infinite;
}
.orb-1 {
    width: 300px; height: 300px;
    background: rgba(31, 85, 181, 0.4);
    top: 20%; left: 10%;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.3);
    bottom: 10%; right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid Overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #e0e7ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #a5b4fc, #8dbbec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.8s both;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-scroll:hover {
    color: #fff;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
}

.mouse-wheel {
    width: 4px; height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

/* ═══════════════════════════════════════════════════════════
   GLOBAL SECTION STYLING
   ═══════════════════════════════════════════════════════════ */
.section-spacing {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   PRESTASI (BENTO GRID STYLE)
   ═══════════════════════════════════════════════════════════ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    grid-auto-flow: dense;
}

.bento-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 400px;
    group;
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 85, 181, 0.1);
    border-color: rgba(31, 85, 181, 0.2);
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-item:hover .bento-img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
}

.bento-content h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-item:hover .bento-content h3 {
    transform: translateY(0);
}

.bento-item:hover .bento-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.bento-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Feature first item slightly larger if needed (CSS Grid tricks) */
@media(min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bento-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}


/* ═══════════════════════════════════════════════════════════
   PROJECTS (EDITORIAL STYLE)
   ═══════════════════════════════════════════════════════════ */
.project-section {
    background: #fff;
    position: relative;
}

.project-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

@media(min-width: 992px) {
    .project-row {
        flex-direction: row;
        justify-content: space-between;
    }
    .project-row:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.project-image-wrap {
    width: 100%;
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media(min-width: 992px) {
    .project-image-wrap {
        width: 55%;
    }
}

.project-image-wrap img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-row:hover .project-image-wrap img {
    transform: scale(1.03);
}

.project-content {
    width: 100%;
    padding: 40px 20px;
    background: #fff;
    z-index: 3;
    position: relative;
}

@media(min-width: 992px) {
    .project-content {
        width: 50%;
        padding: 60px;
        margin-left: -5%; /* Overlap effect */
        margin-top: 50px;
        border-radius: 24px;
        box-shadow: -10px 20px 40px rgba(0,0,0,0.05);
    }
    .project-row:nth-child(even) .project-content {
        margin-left: 0;
        margin-right: -5%;
        box-shadow: 10px 20px 40px rgba(0,0,0,0.05);
    }
}

.project-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-content p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(31, 85, 181, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(31, 85, 181, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   BERITA & MAGANG (GLASS CARDS)
   ═══════════════════════════════════════════════════════════ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card-modern {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.news-card-modern:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.news-img-box {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-modern:hover .news-img-box img {
    transform: scale(1.05);
}

.news-cat-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-title-modern {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title-modern a:hover {
    color: var(--primary);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   UKM (MARQUEE SCROLL)
   ═══════════════════════════════════════════════════════════ */
.ukm-section {
    background: linear-gradient(to bottom, #fff, var(--light));
    overflow: hidden;
    padding-bottom: 100px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

/* Fade edges */
.marquee-container::before, .marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light), transparent);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 30px;
    padding-left: 30px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ukm-box {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.ukm-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(31, 85, 181, 0.1);
    border-color: rgba(31, 85, 181, 0.2);
}

.ukm-logo-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    margin-right: 15px;
    background: #f8fafc;
    padding: 5px;
}

.ukm-text {
    display: flex;
    flex-direction: column;
}

.ukm-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.ukm-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════
   SLIDER PRESTASI (DARK COVERFLOW)
   ═══════════════════════════════════════════════════════════ */
.slider-dark-bg {
    background: #020617; /* Slate 950 */
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.slider-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(31, 85, 181, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.slider-dark-bg .section-title-modern {
    color: #fff;
}

.swiper-prestasi-3d {
    width: 100%;
    padding: 50px 0;
    z-index: 2;
}

.swiper-slide-3d {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.swiper-slide-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-3d-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active .slide-3d-overlay {
    opacity: 1;
}

.slide-3d-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.3);
}
.swiper-pagination-bullet-active {
    background: var(--primary);
}


/* ===== Selaras global.css ===== */
.section-title-modern { font-family: var(--ui-font-head) !important; letter-spacing: -0.025em; color: var(--ui-ink); }
.section-subtitle { color: var(--ui-muted); }
