:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    --text-color: #333;
    --text-light: #ecf0f1;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 2rem;
}

/* Header dan Navigation - DIPERBAIKI */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    width: 100%;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 0 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

nav ul li a i {
    font-size: 0.9rem;
}

/* Dropdown Menu - DIPERBAIKI */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color var(--transition);
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-signin {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-signin:hover {
    background-color: var(--accent-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content Sections */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.filosofi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.filosofi img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.intro {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
}

.intro h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: justify;
}

.philosophy {
    padding: 4rem 0;
}

.philosophy h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.philosophy h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.philosophy-content ol {
    padding-left: 2rem;
}

.philosophy-content li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.philosophy-content strong {
    color: var(--primary-color);
}

/* Video Profile */
.video-profile {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, rgba(245,245,245,0.6), transparent);
}

.video-wrapper {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.video-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

/* Loading state */
.video-card.loading .profile-video {
    filter: blur(1px);
    transition: filter 200ms linear;
}
.video-card.loading .video-play-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* Loader */
.video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    background: rgba(0,0,0,0.22);
}
.video-loader .spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.9);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    background: #000;
}

/* Custom overlay play button */
.video-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform var(--transition);
    z-index: 3;
}

.video-play-btn svg {
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.video-caption {
    margin-top: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-section address {
    font-style: normal;
}

.footer-section address a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section address a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
      padding: 0.5rem 1rem;
    }
    
    nav {
      margin-left: 1rem;
    }
    
    .btn-signin {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-container {
      padding: 0.8rem 1rem;
    }
    
    .logo img {
      height: 50px;
    }
    
    nav {
      position: fixed;
      top: 0;
      left: -300px;
      width: 280px;
      height: 100vh;
      background-color: var(--primary-color);
      flex-direction: column;
      align-items: flex-start;
      padding: 80px 0 30px;
      transition: left var(--transition);
      z-index: 101;
      margin-left: 0;
      overflow-y: auto;
    }
    
    nav.active {
      left: 0;
      box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    nav ul {
      flex-direction: column;
      width: 100%;
    }
    
    nav ul li {
      margin: 0;
      width: 100%;
    }
    
    nav ul li a,
    .dropdown-btn {
      padding: 15px 25px;
      display: block;
      width: 100%;
      text-align: left;
    }
    
    .dropdown-content {
      position: static;
      box-shadow: none;
      background-color: rgba(52, 73, 94, 0.8);
      display: none;
      width: 100%;
      opacity: 1;
      transform: none;
    }
    
    .dropdown.active .dropdown-content {
      display: block;
    }
    
    .dropdown-content a {
      color: white;
      padding-left: 50px;
    }
    
    .mobile-menu-btn {
      display: block;
      z-index: 102;
    }
    
    .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity var(--transition);
      z-index: 100;
    }
    
    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .btn-signin {
      margin-left: auto;
    }

    .filosofi {
      gap: 1rem;
    }
    
    /* Content adjustments */
    .intro {
      padding: 3rem 0;
    }
    
    .intro h1 {
      font-size: 1.8rem;
    }
    
    .intro p {
      font-size: 1rem;
    }
    
    .philosophy {
      padding: 3rem 0;
    }
    
    .philosophy h2 {
      font-size: 1.8rem;
    }
    
    .philosophy-content {
      padding: 1.5rem;
    }
    
    /* Footer adjustments */
    .footer-content {
      flex-direction: column;
    }
    
    .footer-section {
      margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .intro h1 {
      font-size: 1.5rem;
    }
    
    .philosophy h2 {
      font-size: 1.5rem;
    }
    
    .container {
      padding: 0 1rem;
    }

    .video-play-btn svg {
      width: 72px;
      height: 72px;
    }
}