/* ============================================
   style.css — Prodi Rekayasa Sistem Komputer
   Tema: Hijau & Putih | Modern & Profesional
   ============================================ */

/* ---------- CSS VARIABLES (Palet Warna) ---------- */
:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-300: #6ee7b7;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;

    --white:     #ffffff;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --gray-600:  #4b5563;
    --gray-800:  #1f2937;
    --gray-900:  #111827;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.15);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --navbar-h:   70px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--green-50); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-700);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
}

.section-action {
    text-align: center;
    margin-top: 48px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
}
.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,185,129,.35);
}

.btn-outline {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-300);
}
.btn-outline:hover {
    background: var(--green-50);
    border-color: var(--green-500);
    transform: translateY(-2px);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-600);
}
.btn-outline-green:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--green-700);
}
.btn-white:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}



/* ===== TOMBOL LOGIN ADMIN DI NAVBAR ===== */
.btn-login-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--green-600);
    color: #ffffff !important;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--green-600);
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-login-nav:hover {
    background: transparent;
    color: var(--green-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5,150,105,.25);
}

.btn-login-nav i {
    font-size: .8rem;
}

/* Responsive: di mobile tampil sebagai item menu biasa */
@media (max-width: 768px) {
    .nav-item-login {
        padding: 8px 0;
        border-top: 1px solid var(--gray-200);
        margin-top: 8px;
    }
    .btn-login-nav {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
    }
}


/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--green-800);
    letter-spacing: -.02em;
}

.nav-subtitle {
    font-size: .7rem;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--green-500);
    border-radius: 50%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: var(--navbar-h);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--white) 0%, var(--green-50) 60%, var(--green-100) 100%);
}

/* Dekoratif Background */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}
.hero-circle-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--green-400), transparent 70%);
    top: -200px; right: -150px;
}
.hero-circle-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--green-300), transparent 70%);
    bottom: -100px; left: -100px;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--green-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-200) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .2;
}

/* Layout Hero */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--green-200);
    margin-bottom: 28px;
    animation: fadeInDown .6s ease both;
}

.hero-badge i { color: var(--green-600); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
    animation: fadeInDown .7s ease both;
    animation-delay: .1s;
}

.hero-title em {
    font-style: italic;
    color: var(--green-600);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 36px;
    animation: fadeInDown .7s ease both;
    animation-delay: .2s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInDown .7s ease both;
    animation-delay: .3s;
}

/* Statistik */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInDown .7s ease both;
    animation-delay: .4s;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-700);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: .78rem;
    color: var(--gray-400);
    margin-top: 4px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Visual Kanan Hero */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight .8s ease both;
    animation-delay: .3s;
}

.hero-image-wrapper {
    width: 360px; height: 360px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    position: relative;
    box-shadow: var(--shadow-xl);
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255,255,255,.3);
}

/* Floating Cards */
.hero-card-float {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
}

.hero-card-float i {
    color: var(--green-600);
    font-size: 1rem;
}

.hero-card-1 { top: 5%;  left: -10%; animation-delay: 0s; }
.hero-card-2 { top: 45%; right: -12%; animation-delay: .8s; }
.hero-card-3 { bottom: 5%; left: -8%; animation-delay: 1.6s; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--green-600);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--green-600);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: .88rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ============================================
   BERITA / NEWS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--green-100);
}

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

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

.news-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--green-400);
}

.news-category {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--green-600);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.news-body { padding: 24px; }

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: .85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--green-600);
    transition: var(--transition);
}

.news-link:hover { gap: 10px; color: var(--green-700); }

/* ============================================
   DOSEN / LECTURERS
   ============================================ */
.lecturers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lecturer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.lecturer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.lecturer-photo {
    height: 180px;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    overflow: hidden;
}

.lecturer-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.lecturer-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--green-400);
}

.lecturer-info { padding: 20px 16px; }

.lecturer-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.lecturer-nip {
    display: block;
    font-size: .75rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.lecturer-expertise {
    font-size: .82rem;
    color: var(--green-700);
    font-weight: 600;
    background: var(--green-50);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-circle-1, .cta-circle-2 {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}

.cta-circle-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--green-300), transparent);
    top: -200px; right: -100px;
}

.cta-circle-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--green-400), transparent);
    bottom: -100px; left: -50px;
}

.cta-container { position: relative; z-index: 1; }

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--green-400);
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: .9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--green-600);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: .88rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.footer-contact ul li i {
    color: var(--green-400);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: .9rem;
}

.footer-contact ul li span {
    font-size: .88rem;
    line-height: 1.5;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: .82rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .features-grid   { grid-template-columns: repeat(2, 1fr); }
    .lecturers-grid  { grid-template-columns: repeat(2, 1fr); }
    .hero-card-float { display: none; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    :root { --navbar-h: 64px; }

    .section { padding: 64px 0; }

    /* Navbar Mobile */
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--navbar-h); left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        transition: transform .3s ease;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu.open { transform: translateY(0); }

    .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }

    /* Hero Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-actions { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-visual  { order: -1; }
    .hero-image-wrapper { width: 260px; height: 260px; margin: 0 auto; }

    /* Grids */
    .features-grid  { grid-template-columns: 1fr; }
    .news-grid      { grid-template-columns: 1fr; }
    .lecturers-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .lecturers-grid { grid-template-columns: 1fr; }
    .hero-stats     { flex-direction: column; gap: 12px; }
    .stat-divider   { width: 40px; height: 1px; }
}