/*
Theme Name: Universitas Jayanusa Ultimate
Theme URI: https://jayanusa.loffy.my.id
Author: Jayanusa Web Team
Description: The ultimate interactive theme inspired by top universities, featuring full pages, smooth animations, and a mega footer.
Version: 5.1
Text Domain: jayanusa-theme
*/

:root {
    --primary-navy: #000080;
    --navy-dark: #000050;
    --accent-red: #D32F2F; /* Untar red accent */
    --accent-red-hover: #b71c1c;
    --accent-gold: #FFC107;
    --text-main: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-white); line-height: 1.6; overflow-x: hidden; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary-navy); }
.section-title { font-size: 2.5rem; margin-bottom: 2rem; color: var(--primary-navy); text-align: center; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: -1rem auto 3rem; }
.text-red { color: var(--accent-red); }

/* Header & Interactive Menu */
.site-header { background: var(--bg-white); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: var(--transition); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 80px; }
.site-title { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo { width: 45px; height: 45px; object-fit: contain; } /* Will use generic logo if no file */
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--primary-navy); line-height: 1.1; }
.logo-text span { color: var(--accent-red); display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; }

.main-nav { display: flex; height: 100%; align-items: center; }
.main-nav a { font-family: var(--font-heading); color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0 15px; height: 100%; display: flex; align-items: center; transition: var(--transition); position: relative; }

/* Menu Hover Animations (Untar Style) */
.main-nav a:hover, .main-nav a.active { background-color: var(--text-main); color: var(--bg-white); }
.main-nav a.btn-nav { background: var(--primary-navy); color: var(--bg-white) !important; border-radius: 50px; height: 40px; margin-left: 20px; padding: 0 25px; }
.main-nav a.btn-nav:hover { background: var(--accent-red); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3); }

/* Hero Slider Section */
main { margin-top: 80px; min-height: 80vh; }
.hero { position: relative; height: 90vh; background-color: var(--primary-navy); overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; mix-blend-mode: overlay; transform: scale(1.05); animation: slowZoom 20s infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 20px; text-align: center; color: var(--bg-white); }
.hero-content h1 { color: var(--bg-white); font-size: 4.5rem; text-transform: uppercase; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: fadeInUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
.hero-content h1 span { color: var(--accent-gold); }
.hero-content p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; transform: translateY(30px); }
.hero-actions { animation: fadeInUp 1s ease 0.6s forwards; opacity: 0; transform: translateY(30px); }

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

/* Buttons */
.btn { display: inline-block; padding: 15px 35px; font-family: var(--font-heading); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 0.95rem; border-radius: 50px; transition: var(--transition); cursor: pointer; border: none; letter-spacing: 1px; }
.btn-primary { background: var(--accent-gold); color: var(--primary-navy); box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3); }
.btn-primary:hover { background: var(--bg-white); transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--bg-white); color: var(--bg-white); margin-left: 15px; }
.btn-outline:hover { background: var(--bg-white); color: var(--primary-navy); }

/* Layout Blocks */
.section { padding: 100px 20px; }
.section-alt { background: var(--bg-gray); }
.container { max-width: 1280px; margin: 0 auto; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Program Studi Grid (Untar Style) */
.prodi-card { position: relative; border-radius: 12px; overflow: hidden; height: 350px; cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: var(--transition); }
.prodi-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.prodi-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,128,0.9) 0%, rgba(0,0,128,0.2) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; transition: var(--transition); }
.prodi-card:hover { transform: translateY(-10px); }
.prodi-card:hover img { transform: scale(1.1); }
.prodi-card:hover .prodi-overlay { background: linear-gradient(to top, rgba(211,47,47,0.9) 0%, rgba(211,47,47,0.3) 100%); }
.prodi-title { color: var(--bg-white); font-size: 1.8rem; font-family: var(--font-heading); margin-bottom: 10px; }
.prodi-desc { color: rgba(255,255,255,0.8); font-size: 0.95rem; transform: translateY(20px); opacity: 0; transition: var(--transition); }
.prodi-card:hover .prodi-desc { transform: translateY(0); opacity: 1; }

/* Image Cards */
.img-card { background: var(--bg-white); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); text-decoration: none; display: block; color: var(--text-main); }
.img-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-card-wrap { height: 250px; overflow: hidden; }
.img-card-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.img-card:hover .img-card-wrap img { transform: scale(1.05); }
.img-card-body { padding: 25px; }
.img-card-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-navy); }
.img-card-text { color: var(--text-light); font-size: 0.95rem; }

/* Timeline / Mengapa Memilih */
.timeline-tabs { display: flex; gap: 40px; margin-bottom: 30px; border-bottom: 1px solid #ddd; }
.timeline-tab { font-family: var(--font-heading); font-weight: 700; color: #aaa; padding-bottom: 15px; cursor: pointer; position: relative; font-size: 1.2rem; transition: var(--transition); }
.timeline-tab:hover { color: var(--primary-navy); }
.timeline-tab.active { color: var(--accent-red); }
.timeline-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--accent-red); }

/* Untar Style Footer */
.mega-footer { position: relative; background: var(--navy-dark); color: var(--bg-white); padding: 140px 20px 30px; overflow: hidden; clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%); }
.mega-footer .container { position: relative; z-index: 2; }
.footer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.footer-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,128,0.82) 0%, rgba(0,0,80,0.92) 100%); z-index: 1; }
.mega-footer a { color: var(--bg-white); text-decoration: none; transition: opacity 0.3s; }
.mega-footer a:hover { opacity: 0.7; }
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.footer-logo img { width: 60px; filter: brightness(0) invert(1); }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.footer-logo-text span { font-size: 1rem; font-weight: 500; display: block; }

.footer-top-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-section h4 { color: var(--accent-gold); font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-section p { font-size: 0.95rem; margin-bottom: 10px; opacity: 0.9; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; font-size: 0.95rem; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: var(--bg-white); color: var(--primary-navy); border-radius: 50%; font-size: 1.2rem; transition: transform 0.3s; }
.social-icons a:hover { transform: translateY(-5px); opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; text-align: center; font-size: 0.85rem; opacity: 0.8; }

/* Responsive */
@media (max-width: 992px) {
    .site-header .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; height: auto; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--bg-white); box-shadow: 0 15px 25px rgba(0,0,0,0.12); padding: 10px 0 20px; }
    .main-nav.open { display: flex; }
    .main-nav a { height: auto; padding: 14px 24px; border-bottom: 1px solid #eee; }
    .main-nav a.btn-nav { margin: 15px 24px 0; justify-content: center; height: 44px; border-bottom: 0; }
    .hero-content h1 { font-size: 3rem; }
    .footer-top-grid { grid-template-columns: 1fr; }
}


/* ===== Program Studi ===== */
.prodi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.prodi-tile { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 30px 24px; border-radius: 12px; border-top: 4px solid var(--primary-navy); box-shadow: 0 10px 30px rgba(0,0,0,0.07); transition: var(--transition); text-decoration: none; color: inherit; }
a.prodi-tile:hover { transform: translateY(-8px); border-top-color: var(--accent-red); }
.prodi-tile-icon { font-size: 2rem; color: var(--primary-navy); }
a.prodi-tile:hover .prodi-tile-icon { color: var(--accent-red); }
.prodi-tile-level { align-self: flex-start; background: var(--accent-gold); color: #000; font-weight: 700; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; }
.prodi-tile h3 { font-size: 1.15rem; line-height: 1.35; }
.prodi-tile p { color: var(--text-light); font-size: 0.95rem; }
.prodi-tile-more { margin-top: auto; color: var(--accent-red); font-weight: 600; font-size: 0.9rem; }
.fakultas-block { margin-bottom: 50px; }
.fakultas-title { font-size: 1.6rem; border-left: 5px solid var(--accent-red); padding-left: 14px; }
.fakultas-desc { color: var(--text-light); margin-top: 8px; }
.prodi-tile-static { scroll-margin-top: 110px; }


/* ===== Lokasi / Google Maps ===== */
.map-section { padding: 80px 20px 120px; background: var(--bg-gray); }
.map-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-top: 40px; align-items: stretch; }
.map-info { background: #fff; padding: 40px 30px; border-radius: 12px; border-left: 5px solid var(--accent-red); box-shadow: 0 10px 30px rgba(0,0,0,0.07); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.map-info > i { font-size: 2.2rem; color: var(--accent-red); }
.map-info h3 { font-size: 1.4rem; }
.map-former { color: var(--text-light); font-size: 0.9rem; }
.map-info .btn { align-self: flex-start; margin-left: 0; margin-top: 10px; }
.map-frame { min-height: 380px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.map-frame iframe { display: block; min-height: 380px; }
@media (max-width: 992px) { .map-grid { grid-template-columns: 1fr; } }


/* ===== Tombol menu mobile ===== */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--primary-navy); color: #fff; border: 0; border-radius: 8px; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 600px) {
    .logo-text { font-size: 1.15rem; }
    .site-title i { font-size: 2rem !important; }
    .hero-content h1 { font-size: 2.2rem; }
}
