/* GENERAL STYLES */
:root {
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --slate-50: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-600);
    line-height: 1.75;
}

ion-icon {
    font-size:24px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color:#2563eb
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--slate-50);
}

.section-header {
    max-width: 42rem;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.section-pre-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-600);
}

.section-title {
    margin-top: 0.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.section-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--blue-600);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue-600);
}

/* NAVBAR */
.navbar {
    position: sticky; /* Diubah dari absolute menjadi sticky */
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8); /* Latar belakang putih transparan */
    backdrop-filter: blur(10px); /* Efek blur */
    border-bottom: 1px solid var(--gray-200); /* Garis bawah halus */
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: flex-start; /* Diubah */
    align-items: center;
    gap: 2rem; /* Ditambahkan */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 2.5rem;
    /* Menghapus style khusus logo agar tidak bentrok */
}

.navbar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900); /* Diubah menjadi gelap */
}

.navbar-nav {
    display: none;
    gap: 2rem;
    margin-left: auto; /* PENTING: Ditambahkan untuk mendorong menu ke kanan */
}

.navbar-nav a {
    color: var(--gray-600); /* Diubah menjadi gelap */
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-nav a:hover {
    color: var(--blue-600);
}

.navbar .btn {
    display: none; 
    margin-left: 0; /* Pastikan tidak ada margin kiri */
}

/* Tombol hamburger untuk mobile */
.navbar-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--gray-800); /* Diubah menjadi gelap */
}

.navbar-mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* HERO SECTION */
/* HERO SECTION (VERSI FINAL) */
.hero {
    position: relative;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.hero-carousel, .hero-overlay {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    /* Animasi */
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 100rem; /* Diperbesar dari 46rem */
    letter-spacing: -0.025em;
    margin-left: auto;
    margin-right: auto;
}

.span-h1 {
    color: var(--blue-500);
}

.hero-content p { 
    font-size: 1rem;
    color: var(--gray-300); 
    margin-bottom: 2.5rem;
    max-width: 56rem; /* Diperbesar dari 42rem */
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { 
    display: flex; 
    justify-content: center;
    flex-direction: column; /* Tetap kolom di mobile */
    gap: 1rem; 
}

.btn-icon svg { 
    width: 1.25rem;
    height: 1.25rem; 
}

.btn-primary {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
}
.btn-secondary {
    background-color: var(--blue-600); /* Diubah agar sama dengan primary */
    color: var(--white); /* Diubah agar sama dengan primary */
    border-color: var(--blue-600); /* Menyamakan border */
}

.btn-secondary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
}

.btn-ternary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}


/* ABOUT SECTION */
.about-section {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    /* Membuat grid 2x2 untuk komposisi foto */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 600px; /* Memberikan tinggi yang pasti */
    margin-top: 3rem;
}
.about-images div { /* Ini adalah "bingkai" foto */
    overflow: hidden; /* PENTING: Ini yang akan memotong gambar yang membesar */
    border-radius: 0.75rem;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.5s ease-in-out;
}

.about-images div:hover img {
    transform: scale(1.05); 
}

/* Gambar besar di kiri, menempati 2 baris */
.about-images .main-photo {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Gambar kecil di kanan atas */
.about-images .secondary-photo-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Gambar kecil di kanan bawah */
.about-images .secondary-photo-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.about-text .section-subtitle {
    font-size: 1.125rem;
}

.feature-list {
    margin-top: 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--blue-600);
}

.feature-list.centered { /* Tambahkan style ini */
    margin-top: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}


/* LAYANAN SECTION */
.service-section {
    padding: 6rem 0;
    background-color: var(--slate-50);
}
.service-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    /* Mengubah kartu menjadi kolom flexbox */
    display: flex;
    flex-direction: column;
}
.service-card:hover { 
    transform: translateY(-0.5rem); 
}

/* Wadah untuk konten utama (ikon, judul, paragraf) */
.service-card-content {
    flex-grow: 1; /* Ini akan mendorong tombol ke bawah */
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem; 
    width: 3rem;
    border-radius: 0.5rem;
    background-color: #dbeafe;
}
.service-card-icon img { 
    height: 2rem; 
    width: 2rem; 
}
.service-card h3 {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}
.service-card p { 
    margin-top: 0.5rem; 
}

/* Style untuk tombol baru yang sudah diperbaiki */
.card-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: fit-content;

    /* Ukuran disesuaikan */
    padding: 0.5rem 1rem;
    font-weight: 600;
    
    /* Style lainnya */
    background-color: transparent;
    border: 2px solid var(--blue-600);
    color: var(--blue-600);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.card-action-button:hover {
    background-color: var(--blue-600);
    color: var(--white);
}
.card-action-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* TIM SECTION */
.team-section {
    padding: 6rem 0;
}
.team-grid {
    margin-top: 5rem;
    list-style: none;
    text-align: center; /* Menengahkan semua konten */
}
.team-member {
    margin-bottom: 3rem;
}

.team-member img {
    width: 10rem;
    height: 10rem;
    border-radius: 100px;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--gray-100);
}

.team-member.advisor {
    margin-bottom: 5rem; /* Memberi jarak lebih besar antara dosen dan mahasiswa */
    object-fit: cover;
}

.team-photo-wrapper {
    height: 10rem;
    width: 10rem;
    border-radius: 100px;
    overflow: hidden;
    /* Efek transisi ditambahkan di sini */
    transition: all 0.3s ease-in-out;
}
.team-dosen-wrapper {
    border-radius: 5px;
    overflow: hidden;
    border-radius: 100px;
    /* Efek transisi ditambahkan di sini */
    transition: all 0.3s ease-in-out;
}
.team-photo-wrapper:hover {
    transform: translateY(-8px); /* Efek sedikit terangkat */
    box-shadow: 0 25px 25px -5px rgba(24, 112, 254, 0.4); /* Bayangan biru */
}

.team-dosen-wrapper img {
    object-fit: cover;
}
.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member h3 {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}
.team-member p {
    color: var(--blue-600);
}
.team-member p.dosen {
    color: var(--gray-500);
    font-weight: 500;
}

.team-members-grid {
    display: flex;
    flex-wrap: wrap; /* Izinkan item pindah ke baris baru jika tidak cukup */
    justify-content: center; /* Menengahkan semua anggota */
    gap: 6rem;
}

/* KONTAK SECTION */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
.contact-info svg {
    width: 1.5rem; height: 1.5rem;
    color: var(--gray-500);
    flex-shrink: 0;
}
.contact-info ul {
    margin-top: 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.875rem;
}
.form-group.full-width { grid-column: span 2; }
.form-submit { margin-top: 2rem; text-align: right; }

/* Contact Form Status Message */
.form-status-message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
}
.form-status-message.success {
    color: green;
}
.form-status-message.error {
    color: red;
}
.form-status-message.sending {
    color: var(--gray-500);
}

/* FOOTER */
.footer {
    background-color: var(--gray-800);
    color: var(--gray-300);
}
.footer-content {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-about .span-footer {
    color: var(--white);
}

.footer-about img { height: 2.5rem; background: var(--white); border-radius: 9999px; padding: 0.25rem; }
.footer-about p { margin-top: 1rem; font-size: 0.875rem; max-width: 28rem; }
.footer-links h3 { font-weight: 600; color: var(--white); }
.footer-links ul { margin-top: 1rem; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
    .navbar-nav, .navbar .btn { display: flex; }
    .hero-text h1 { font-size: 3rem; max-width: 48rem; }
    .hero-buttons { flex-direction: row; }
    .about-content { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(3, 1fr); }
    .footer-about { grid-column: span 1; }
    .hero-buttons {
        flex-direction: row; /* Menjadi baris di layar besar */
    }
    .team-members-grid {
        /* Di layar tablet, tampilkan 3 kolom */
        grid-template-columns: repeat(3, 1fr);
    }
}

