@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #0F766E;
    --primary-light: #14B8A6;
    --secondary: #F59E0B;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
.dark-theme {
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --primary-light: #2DD4BF;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

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


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-light));
    border-radius: 10px;
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}


/* Custom Cursor */
* {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%230F766E' d='M4.5,11L15.3,11L10.3,6.2C9.9,5.8 9.9,5.2 10.3,4.8C10.7,4.4 11.3,4.4 11.7,4.8L19.7,12.4C20.1,12.8 20.1,13.4 19.7,13.8L11.7,21.4C11.3,21.8 10.7,21.8 10.3,21.4C9.9,21 9.9,20.4 10.3,20L15.3,15.2L4.5,15.2C3.9,15.2 3.5,14.7 3.5,14.1L3.5,11.9C3.5,11.3 3.9,10.8 4.5,10.8L4.5,11Z'/%3E%3C/svg%3E"), auto;
}

a, button, .cute-role-card, .btn-game, .info-pengembang-link {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23F59E0B' d='M7,2A2,2 0 0,0 5,4V7H2V9H5V12H2V14H5V17H2V19H5V22H7V19H10V22H12V19H15V22H17V19H20V22H22V19H19V17H22V15H19V12H22V10H19V7H22V5H19V2H17V5H14V2H12V5H9V2H7M7,7H10V10H7V7M12,7H15V10H12V7M7,12H10V15H7V12M12,12H15V15H12V12Z'/%3E%3C/svg%3E"), pointer;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: pulseLoader 1.5s infinite ease-in-out;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.3);
}

.loader-bar {
    width: 200px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    animation: loaderProgress 2s infinite linear;
}

@keyframes pulseLoader {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes loaderProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Portal Transition */
.portal-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F172A;
    z-index: 9999;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}
.portal-active { clip-path: circle(150% at 50% 50%); }

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314b8a6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: fadeInPage 0.8s ease-in-out;
    cursor: auto; /* Fallback */
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--primary);
}

.arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--secondary-light);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    filter: blur(40px);
}

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

/* Shapes Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.materi {
    padding: 5rem 5%;
    background: var(--white);
    border-radius: 40px 40px 0 0;
}

.shapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.shape-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.shape-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.shape-icon-container {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* CSS Shapes */
.css-shape {
    transition: all 0.5s ease;
}

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

.shape-persegi {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #34d399, #10b981);
    border-radius: 10px;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
}

.shape-persegipanjang {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
}

.shape-segitiga {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #60a5fa;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.shape-lingkaran {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
}

.shape-jajargenjang {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: skew(-20deg);
    border-radius: 5px;
}

.shape-layang {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: rotate(45deg);
    border-radius: 5px;
}

.shape-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.shape-analogy {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.shape-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    text-align: left;
    background: var(--background);
    padding: 1rem;
    border-radius: 10px;
}

.feature-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li i {
    color: var(--primary);
}

/* Quiz Section */
.kuis {
    padding: 5rem 5%;
    background: linear-gradient(to bottom, var(--white), var(--background));
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.quiz-question {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quiz-btn {
    padding: 1.5rem;
    background: var(--background);
    border: 2px solid #E2E8F0;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
}

.quiz-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.quiz-btn.correct {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.quiz-btn.wrong {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
}

.quiz-feedback {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    min-height: 30px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 5%;
}

footer p {
    opacity: 0.9;
}

footer .heart {
    color: #ef4444;
}

/* Landing Page Styles */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314b8a6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 2rem;
}

.landing-container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.landing-header {
    margin-bottom: 4rem;
}

.landing-logo {
    justify-content: center;
    font-size: 2.5rem;
    margin: 1rem 0;
}

.landing-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.landing-header h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.role-cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.role-card {
    flex: 1;
    min-width: 280px;
    background: var(--white);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-card:hover {
    transform: translateY(-15px);
}

.guru-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 30px rgba(15, 118, 110, 0.15);
}

.murid-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 30px rgba(245, 158, 11, 0.15);
}

.role-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.guru-card .role-icon {
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
}

.murid-card .role-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.role-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.role-btn {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guru-card .role-btn { color: var(--primary); }
.murid-card .role-btn { color: var(--secondary); }

/* Auth Pages Styles */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.guru-auth { background: linear-gradient(135deg, #F8FAFC, #E2E8F0); }
.murid-auth { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); }

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.text-guru { color: var(--primary); }
.text-murid { color: var(--secondary); }

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.input-group label i { margin-right: 0.5rem; }

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.auth-options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    border-radius: 15px;
}

.btn-guru { background: var(--primary); }
.btn-murid { 
    background: var(--secondary); 
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Playful Landing Page (Game Style) */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 100%);
}

.float-shape {
    position: absolute;
    bottom: -100px;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-120vh) rotate(360deg); }
}

.landing-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.badge-islami {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 3px solid #14B8A6;
}

.title-playful {
    font-size: 4.5rem;
    color: #0F766E;
    text-shadow: 4px 4px 0 #FCD34D, 8px 8px 0 rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: 'Nunito', sans-serif;
    animation: bounce-title 2s ease-in-out infinite alternate;
}

@keyframes bounce-title {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.subtitle-kid {
    font-size: 1.5rem;
    color: #1E293B;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.center-illustration {
    margin-bottom: 3rem;
}

.center-illustration img {
    height: 250px;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: white;
}

.btn-game {
    display: inline-block;
    padding: 1.5rem 4rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    background: #F59E0B; /* Orange/Gold */
    border-radius: 50px;
    border: 5px solid #FFF;
    box-shadow: 0 12px 0 #D97706, 0 20px 25px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-game:hover {
    background: #FBBF24;
    color: white;
}

.btn-game:active {
    transform: translateY(12px);
    box-shadow: 0 0px 0 #D97706, 0 5px 10px rgba(0,0,0,0.2);
}

/* Cute Role Selection Page */
.role-selection-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.cute-cards-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
}

.cute-role-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 40px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    border: 5px solid white;
    box-shadow: 0 15px 0 #CBD5E1, 0 20px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cute-role-card:active {
    transform: translateY(10px);
    box-shadow: 0 5px 0 #CBD5E1, 0 10px 15px rgba(0,0,0,0.1);
}

.card-guru:hover { border-color: var(--primary-light); }
.card-murid:hover { border-color: var(--secondary-light); }

.cute-icon-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: inset 0 -8px 0 rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-role-card:hover .cute-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.guru-bg { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.murid-bg { background: linear-gradient(135deg, #FBBF24, #D97706); }

.cute-role-card h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cute-role-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-action {
    font-size: 1.3rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 30px;
    background: var(--background);
}


.back-btn-cute {
    position: absolute;
    top: 2rem;
    left: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 0 6px 0 #CBD5E1, 0 10px 15px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
    z-index: 20;
}

.back-btn-cute:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #CBD5E1, 0 5px 10px rgba(0,0,0,0.1);
}

/* Dashboard Murid Baru */
.dashboard-body {
    background: #E0F2FE;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

.dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #CBD5E1;
    position: sticky;
    top: 0;
    z-index: 50;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #F59E0B;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.greeting { font-size: 0.9rem; color: var(--text-light); }
.name { font-size: 1.3rem; font-weight: 900; color: #0F766E; }

.btn-logout {
    background: #EF4444;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 4px 0 #B91C1C;
    transition: transform 0.1s;
}

.btn-logout:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #B91C1C;
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.menu-grid-8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Flip Card Container */
.menu-card-container {
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    height: 280px; /* fixed height for cards */
}

.menu-card-container:active .menu-card-flipper {
    transform: scale(0.95);
}

.menu-card-container.revealed:active .menu-card-flipper {
    transform: scale(0.95) rotateY(180deg);
}

/* Flipper */
.menu-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.menu-card-container.revealed .menu-card-flipper {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.menu-front, .menu-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    border: 5px solid white;
    display: flex;
    flex-direction: column;
}

.menu-front {
    /* Rich 3D Wood Texture */
    background: repeating-linear-gradient(
        0deg,
        #8B4513,
        #8B4513 40px,
        #70380f 40px,
        #70380f 45px
    );
    justify-content: center;
    align-items: center;
    color: white;
    border: 6px solid #5c2c08; /* Dark wood border */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 12px 0 #3b1c05, 0 15px 25px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

/* Metal straps for the crate */
.menu-front::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px; bottom: 0;
    border-left: 15px solid #475569; /* Iron strap left */
    border-right: 15px solid #475569; /* Iron strap right */
    box-shadow: inset 3px 0 5px rgba(0,0,0,0.5), inset -3px 0 5px rgba(0,0,0,0.5);
    border-radius: 20px;
    z-index: 0;
}

.front-title, .front-desc, .lock-container {
    z-index: 10;
    position: relative;
}

.lock-container {
    margin-bottom: 1rem;
    animation: breathe 2s infinite ease-in-out;
}

.lock-3d {
    color: #FDE047; /* Bright Golden lock */
    text-shadow: 
        0 1px 0 #EAB308, 
        0 2px 0 #EAB308, 
        0 3px 0 #CA8A04, 
        0 4px 0 #CA8A04, 
        0 5px 0 #A16207, 
        0 6px 0 #A16207, 
        0 7px 0 #854D0E,
        0 15px 20px rgba(0,0,0,0.7);
    filter: drop-shadow(0 0 15px rgba(253, 224, 71, 0.4));
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.front-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.front-desc {
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.menu-back {
    transform: rotateY(180deg);
    background: white;
}

.menu-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: #F59E0B;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 5;
}

.menu-icon-area {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px 25px 0 0;
    position: relative;
    overflow: hidden;
}

.menu-info {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: 0 0 25px 25px;
}

.menu-info h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.menu-info p {
    font-size: 1rem;
    font-weight: 700;
    color: #64748B;
    margin: 0;
}

/* Colors for the 8 Menus */
.color-1 .menu-back { box-shadow: 0 12px 0 #047857; }
.color-1 .menu-icon-area { background: linear-gradient(135deg, #34D399, #10B981); }

.color-2 .menu-back { box-shadow: 0 12px 0 #4338CA; }
.color-2 .menu-icon-area { background: linear-gradient(135deg, #818CF8, #4F46E5); }

.color-3 .menu-back { box-shadow: 0 12px 0 #B91C1C; }
.color-3 .menu-icon-area { background: linear-gradient(135deg, #F87171, #EF4444); }

.color-4 .menu-back { box-shadow: 0 12px 0 #BE185D; }
.color-4 .menu-icon-area { background: linear-gradient(135deg, #F472B6, #EC4899); }

.color-5 .menu-back { box-shadow: 0 12px 0 #D97706; }
.color-5 .menu-icon-area { background: linear-gradient(135deg, #FCD34D, #F59E0B); }

.color-6 .menu-back { box-shadow: 0 12px 0 #6D28D9; }
.color-6 .menu-icon-area { background: linear-gradient(135deg, #A78BFA, #8B5CF6); }

.color-7 .menu-back { box-shadow: 0 12px 0 #0369A1; }
.color-7 .menu-icon-area { background: linear-gradient(135deg, #38BDF8, #0EA5E9); }

.color-8 .menu-back { box-shadow: 0 12px 0 #A21CAF; }
.color-8 .menu-icon-area { background: linear-gradient(135deg, #E879F9, #D946EF); }

/* New Shapes */
.shape-trapesium {
    border-bottom: 70px solid #FFF;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    height: 0;
    width: 120px;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.shape-layang-asli {
    width: 80px;
    height: 120px;
    background: #FFF;
    clip-path: polygon(50% 0%, 100% 30%, 50% 100%, 0% 30%);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.menu-card:hover .css-shape {
    transform: scale(1.15) rotate(5deg);
}

.menu-icon-area .css-shape {
    background: #FFF; /* Make shapes white inside colorful cards */
}
.menu-icon-area .shape-segitiga { border-bottom-color: #FFF; background: transparent; }
.menu-icon-area .shape-trapesium { border-bottom-color: #FFF; background: transparent; }
.menu-icon-area .shape-layang-asli { background: #FFF; }

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

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Base Typography & Layout */
    :root {
        --mobile-padding: 1.5rem;
    }

    body {
        font-size: 14px;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }

    /* Navbar */
    nav {
        padding: 0.8rem var(--mobile-padding);
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        display: none; /* Can be enhanced with a menu later if needed */
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        padding: 2rem var(--mobile-padding);
        text-align: center;
        min-height: auto;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 80%;
    }

    /* Grids & Cards */
    .shapes-grid, .menu-grid-8, .competence-grid, .role-cards-container, .cute-cards-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0;
    }

    .shape-card, .role-card, .cute-role-card, .menu-card-container {
        min-width: 100% !important;
        padding: 2rem 1.5rem !important;
    }

    /* Sections */
    .materi, .kuis, .dashboard-main, .profile-section {
        padding: 3rem var(--mobile-padding) !important;
    }

    /* Quiz */
    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .quiz-options {
        grid-template-columns: 1fr !important;
    }

    .quiz-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }

    /* Modals & Panels */
    .glass-panel, .detail-card, .gallery-container {
        padding: 2rem 1.5rem !important;
        width: 95% !important;
        margin: 10px;
    }

    /* Role Selection Improvements */
    .landing-container {
        padding: 3rem 1.2rem !important;
    }

    .title-playful {
        font-size: 2.8rem !important;
    }

    .btn-game {
        font-size: 1.4rem !important;
        padding: 1rem 2.5rem !important;
        width: 100%;
        max-width: 320px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Dashboards */
    .dash-nav {
        padding: 0.8rem 1rem !important;
    }

    .user-profile {
        gap: 0.8rem !important;
    }

    .user-info {
        display: none; /* Hide detailed info on mobile to save space */
    }

    .name {
        font-size: 1rem !important;
    }

    .badge-rack {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.8rem;
    }

    .badge-slot {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Profile Developer */
    .profile-container {
        grid-template-columns: 1fr !important;
    }

    .profile-card {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }

    /* Mascot Guide Mobile Fix */
    .mascot-guide {
        left: 10px;
        bottom: 10px;
        scale: 0.8;
        transform-origin: left bottom;
    }

    .speech-bubble-guide {
        max-width: 200px;
        font-size: 0.9rem;
    }

    /* Chat Widget Mobile */
    .chat-widget {
        right: 15px;
        bottom: 15px;
    }

    .chat-box {
        width: calc(100vw - 30px);
        right: 0;
    }

    /* Landing Page Specific Mobile */
    .landing-main-content {
        padding: 1.5rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .center-illustration img {
        max-width: 200px;
        margin: 1.5rem 0;
    }

    .info-pengembang-link {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .title-playful {
        font-size: 2.2rem !important;
    }

    .btn-game {
        font-size: 1.2rem !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .detail-card h2 {
        font-size: 1.5rem !important;
    }

    .badge-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Profile Developer Section */
.profile-section {
    background: white;
    padding: 4rem 5%;
    border-bottom: 5px solid var(--primary-light);
    position: relative;
    z-index: 20;
    box-shadow: var(--shadow-md);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}


/* Profile Card Enhancement (Glassmorphism) */
.profile-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: sticky;
    top: 100px;
    animation: fadeInUp 0.8s ease-out;
}

/* Competence Visualization */
.skill-bar-container {
    margin-top: 1rem;
    background: #E2E8F0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.competence-card:hover .skill-progress {
    filter: brightness(1.1);
}

.profile-header-info {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.info-content label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content span {
    font-weight: 700;
    color: var(--text-dark);
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.quote-box {
    background: rgba(15, 118, 110, 0.05);
    padding: 2rem;
    border-left: 5px solid var(--primary);
    border-radius: 0 20px 20px 0;
    position: relative;
}

.quote-box::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.quote-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.profile-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.competence-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.competence-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.competence-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.competence-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.philosophy-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 2.5rem;
    border-radius: 30px;
    text-align: center;
}

.philosophy-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.philosophy-text {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.95;
}

.section-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeInUp 1s ease-out;
}

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

.info-pengembang-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


.info-pengembang-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
    border-color: var(--primary-light);
    background: white;
}

.info-pengembang-link i {
    font-size: 1.1rem;
}

/* --- Elegant Magic Cursor Styles --- */
.magic-cursor-dot, .magic-cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.magic-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
}

.magic-cursor-circle {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    background: transparent;
    margin-left: -12px;
    margin-top: -12px;
}

/* Hover States for Cursor */
.magic-cursor-dot.hover {
    transform: scale(2) !important;
    background: #F59E0B; /* Warm orange on hover */
}

.magic-cursor-circle.hover {
    width: 50px;
    height: 50px;
    margin-left: -22px;
    margin-top: -22px;
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

/* Hide default cursor only on non-touch devices for better experience */
@media (hover: hover) and (pointer: fine) {
    body, a, button, .btn-game, .nav-item {
        cursor: none !important;
    }
}

/* --- Developer Profile Enhancements --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.tech-badge:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.tech-badge i { font-size: 1.1rem; }

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #E2E8F0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.timeline-year {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.project-card-mini {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    transition: all 0.3s;
}

.project-card-mini:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-img {
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-info-mini {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .project-card-mini {
        grid-template-columns: 1fr;
    }
    .project-img {
        height: 150px;
    }
}

/* --- New Profile Features --- */
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.theme-toggle-btn:hover {
    transform: rotate(30deg);
    border-color: var(--primary);
}

.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

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

.fab-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.research-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.research-item {
    background: var(--bg-card);
    padding: 1.2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.research-item h5 { color: var(--primary); font-weight: 800; margin-bottom: 5px; }
.research-item p { font-size: 0.85rem; color: var(--text-muted); }

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.testi-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 25px;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testi-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.testi-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.author-info h6 { font-size: 1rem; color: var(--text-main); }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* Global Theme Adjustments */
.dark-theme .profile-card, 
.dark-theme .competence-card, 
.dark-theme .project-card-mini,
.dark-theme .tech-badge,
.dark-theme .quote-box,
.dark-theme .nav-menu-container,
.dark-theme .research-item,
.dark-theme .testi-card,
.dark-theme .sidebar-section,
.dark-theme aside,
.dark-theme main {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}
/* --- Role Selection Enhancements --- */
.role-selection-wrapper {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cute-role-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.card-guru { animation: slideInLeft 1s ease-out; }
.card-murid { animation: slideInRight 1s ease-out; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px) rotate(-5deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px) rotate(5deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

.cute-role-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(10deg) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.25) !important;
}

.cute-role-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.cute-role-card:hover::after {
    left: 100%;
}

.guru-text { color: #4F46E5; font-weight: 900; }
.murid-text { color: #10B981; font-weight: 900; }

.cute-icon-wrapper {
    transition: transform 0.5s ease;
}

.cute-role-card:hover .cute-icon-wrapper {
    transform: scale(1.2) rotate(10deg);
}

.dark-theme p, 
.dark-theme span, 
.dark-theme label {
    color: var(--text-muted);
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
    color: var(--text-main);
}
