/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== VARIABLES ===== */
:root {
    --primary-dark: #1e3a8a;    /* Biru laut */
    --primary-light: #38bdf8;   /* Biru langit */
    --accent: #3b82f6;          /* Biru medium */
    --accent-tjkt: #2563eb;     /* Biru khusus TJKT */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    --shadow-hover: 0 8px 30px rgba(30, 58, 138, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.school-name h1 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.school-name p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */
nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    padding-left: 2rem;
}

.dropdown-menu a.active {
    background: linear-gradient(90deg, var(--accent-tjkt), var(--accent));
    color: var(--white);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 2rem 4rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-tjkt) 100%);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) sepia(0.3) hue-rotate(190deg);
    mix-blend-mode: overlay;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(37, 99, 235, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.overlay h2 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay h3 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
    max-width: 600px;
    line-height: 1.4;
}

/* ===== CONTAINER UTAMA ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION HEADERS ===== */
section h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-tjkt));
    border-radius: 2px;
}

/* ===== DEFINISI ===== */
.definisi {
    margin-bottom: 4rem;
}

.content-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--accent-tjkt);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-tjkt));
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
}

.content-box strong {
    color: var(--accent-tjkt);
    font-size: 1.3rem;
}

/* ===== KOMPETENSI ===== */
.kompetensi {
    margin-bottom: 4rem;
}

.kompetensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.kompetensi-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.kompetensi-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-tjkt);
}

.kompetensi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-tjkt));
}

.kompetensi-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-tjkt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kompetensi-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.kompetensi-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== FASILITAS ===== */
.fasilitas {
    margin-bottom: 4rem;
}

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fasilitas-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.fasilitas-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.fasilitas-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent-tjkt));
}

.fasilitas-item h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.fasilitas-item p {
    color: var(--text-dark);
    line-height: 1.6;
    padding-left: 1rem;
}

/* ===== PROGRAM KERJA ===== */
.program-kerja {
    margin-bottom: 4rem;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-item {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-tjkt);
}

.program-item i {
    font-size: 2.5rem;
    color: var(--accent-tjkt);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.program-item h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.program-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== PROSPEK KARIR ===== */
.karir {
    margin-bottom: 4rem;
}

.karir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.karir-card {
    background: linear-gradient(135deg, var(--white) 0%, #eff6ff 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.karir-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-tjkt);
}

.karir-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-tjkt));
}

.karir-card h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.karir-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-light);
}

.karir-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-tjkt) 100%);
    padding: 2rem;
    margin-top: auto;
    text-align: center;
}

.footer-credit {
    color: var(--white);
    font-size: 1rem;
}

.footer-credit strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        margin: 0 1rem 3rem;
        height: 50vh;
    }
    
    .overlay h2 {
        font-size: 3rem;
    }
    
    .overlay h3 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .school-name h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hero {
        height: 40vh;
        min-height: 350px;
        margin: 0 0.5rem 2rem;
    }
    
    .overlay h2 {
        font-size: 2.5rem;
    }
    
    .overlay h3 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .content-box {
        padding: 2rem 1.5rem;
    }
    
    .content-box p {
        font-size: 1.1rem;
    }
    
    .kompetensi-grid,
    .fasilitas-grid,
    .program-list,
    .karir-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .kompetensi-card,
    .fasilitas-item,
    .program-item,
    .karir-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        display: none;
        margin-top: 0.5rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .overlay h2 {
        font-size: 2rem;
    }
    
    .overlay h3 {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .kompetensi-card h3,
    .fasilitas-item h4,
    .program-item h4,
    .karir-card h4 {
        font-size: 1.3rem;
    }
}

/* ===== HOVER EFFECTS ===== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero, .dropdown-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-box,
    .kompetensi-card,
    .fasilitas-item,
    .program-item,
    .karir-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .kompetensi-grid,
    .fasilitas-grid,
    .program-list,
    .karir-grid {
        display: block;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== TJKT-SPECIFIC ELEMENTS ===== */
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-tjkt));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.network-animation {
    position: relative;
    overflow: hidden;
}

.network-animation::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 30%,
        rgba(56, 189, 248, 0.1) 50%,
        transparent 70%
    );
    animation: networkFlow 3s linear infinite;
    transform: rotate(30deg);
}

@keyframes networkFlow {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

/* ===== CTA BUTTON STYLE ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, var(--accent-tjkt), var(--primary-dark));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-tjkt));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.cta-button i {
    font-size: 1.2rem;
}