:root {
  --primary: #00AEEF;
  --primary-dark: #0088cc;
  --primary-light: #e0f2fe;
  --secondary: #003366;
  --secondary-dark: #1e293b;
  --accent: #E0F7FA;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(30, 41, 59, 0.7);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate {
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 174, 239, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--secondary);
}

.logo span {
  display: inline-block;
  background: linear-gradient(to right, var(--secondary) 0%, var(--primary) 50%, var(--secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmer 3s linear infinite;
  white-space: nowrap;
  letter-spacing: -0.5px;
  position: relative;
  text-shadow: 0 0 10px rgba(0, 174, 239, 0);
  transition: var(--transition);
}

.logo:hover span {
  text-shadow: 0 0 15px rgba(0, 174, 239, 0.4);
  transform: scale(1.05);
}

.logo span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: logoUnderline 3s ease-in-out infinite;
}

@keyframes logoShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes logoUnderline {
  0%, 100% { width: 0; left: 50%; opacity: 0; }
  50% { width: 100%; left: 0; opacity: 1; }
}

.logo img {
  height: 45px;
  transition: var(--transition);
}

.logo:hover img {
  transform: rotate(360deg);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--secondary);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Section Common */
section {
  padding: 100px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 174, 239, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.feature-card:hover i {
  transform: scale(1.1) rotate(5deg);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

/* Vision/Mission */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vm-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Curriculum Table Styles */
.curriculum-table-container {
  overflow-x: auto;
  margin-bottom: 50px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.curriculum-table th {
  background: var(--secondary);
  color: white;
  padding: 20px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.curriculum-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-main);
}

.semester-cell {
  background: var(--gray-50);
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  color: var(--secondary) !important;
}

.semester-cell strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

.total-sks {
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.highlight-cell {
  background: var(--primary-light) !important;
  color: var(--secondary) !important;
}

.total-row td {
  background: var(--gray-100);
  font-size: 1.1rem;
  padding: 20px;
  border-bottom: none;
}

.total-row td:last-child {
  color: var(--primary);
  font-weight: 800;
}

.curriculum-table tr:hover td:not(.semester-cell) {
  background: var(--gray-50);
}

/* Profile Section Styles - Enhanced */
.profile-section {
  padding: 100px 10%;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.profile-card {
  background: white;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 174, 239, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 174, 239, 0.15);
  border-color: var(--primary);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-icon-bg {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: var(--primary);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 20px rgba(0, 174, 239, 0.1);
  transform: rotate(-5deg);
}

.profile-card:hover .profile-icon-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 174, 239, 0.3);
}

.profile-icon-bg i {
  width: 40px;
  height: 40px;
}

.profile-card h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.profile-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Elective Tabs Styles */
.elective-tabs {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
  flex: 1;
  padding: 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border-right: 1px solid var(--gray-200);
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn i {
  width: 20px;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.tab-btn:hover:not(.active) {
  background: rgba(0, 174, 239, 0.05);
  color: var(--primary);
}

.tab-content {
  display: none;
  padding: 30px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.elective-table {
  width: 100%;
  border-collapse: collapse;
}

.elective-table td {
  padding: 15px 25px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  font-weight: 500;
}

.elective-table tr:last-child td {
  border-bottom: none;
}

.elective-table td::before {
  content: '✓';
  margin-right: 15px;
  color: var(--primary);
  font-weight: 900;
}

@media (max-width: 768px) {
  .tabs-nav {
    flex-direction: column;
  }
  .tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 80px 10% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-links h4 {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.5rem; }
  .vision-mission { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 5%; }
  .nav-links { display: none; }
  .hero-content h1 { font-size: 2.2rem; }
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.chatbot-toggle i {
  width: 28px;
  height: 28px;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.chatbot-toggle .tooltip {
  position: absolute;
  right: 75px;
  background: white;
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.chatbot-toggle:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-5px);
}

.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
  border: 1px solid var(--gray-200);
}

.chatbot-container.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.chatbot-header p {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chatbot-header button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-header button:hover {
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8fafc;
}

.chatbot-messages .message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-out;
}

.chatbot-messages .message.user {
  align-self: flex-end;
  background: var(--primary-light);
  color: var(--secondary);
  border-bottom-right-radius: 4px;
}

.chatbot-messages .message.bot {
  align-self: flex-start;
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.chatbot-input {
  padding: 15px;
  background: white;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
  background: #f8fafc;
  transition: var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.1);
}

.chatbot-input button {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--primary-dark);
}

.chatbot-input button:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.typing-indicator {
  display: none;
  align-self: flex-start;
  background: white;
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 15px;
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 4px;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 40px);
    right: -10px;
    height: 450px;
  }
}

/* Responsive Video Section */
.video-container-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 174, 239, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.video-container-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 174, 239, 0.2);
  border-color: var(--primary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Frame Cantik Merah Putih (Neon Animasi Berjalan) */
.video-frame-merah-putih {
  background: #0f172a;
  padding: 6px;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: var(--transition);
}

.video-frame-merah-putih::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 35%,
    #ef4444 48%,
    #ffffff 52%,
    transparent 65%
  );
  animation: neonSpin 3s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.video-frame-merah-putih .video-wrapper {
  background: #000;
  z-index: 1;
}

@keyframes neonSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

