 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --primary-color: #8b5cf6;
     --secondary-color: #06b6d4;
     --accent-color: #ec4899;
     --dark-color: #1e1b4b;
     --light-color: #f8fafc;
     --text-dark: #1e293b;
     --text-light: #ffffff;
     --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
     --gradient-secondary: linear-gradient(135deg, #06b6d4, #8b5cf6);
     --gradient-accent: linear-gradient(135deg, #ec4899, #8b5cf6);
     --gradient-dark: linear-gradient(135deg, #1e1b4b, #312e81);
     --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
     --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
     --shadow-purple: 0 20px 25px -5px rgba(139, 92, 246, 0.3);
     --shadow-cyan: 0 20px 25px -5px rgba(6, 182, 212, 0.3);
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     line-height: 1.6;
     color: var(--text-dark);
     overflow-x: hidden;
     background: var(--light-color);
 }

 /* Header & Navigation */
 .header {
     position: fixed;
     top: 0;
     width: 100%;
     background: rgba(248, 250, 252, 0.95);
     backdrop-filter: blur(20px);
     z-index: 1000;
     padding: 1rem 0;
     transition: all 0.3s ease;
     border-bottom: 1px solid rgba(139, 92, 246, 0.1);
 }

 .header.scrolled {
     background: rgba(248, 250, 252, 0.98);
     box-shadow: var(--shadow);
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo a {
     display: flex;
     font-size: 2rem;
     font-weight: 800;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     align-items: center;
     gap: 0.5rem;
 }

 .logo img {
     width: 40px;
     height: 40px;
 }

 .nav-menu {
     display: flex;
     list-style: none;
     gap: 2rem;
 }

 .nav-menu a {
     text-decoration: none;
     color: var(--text-dark);
     font-weight: 500;
     transition: all 0.3s ease;
     position: relative;
     padding: 0.5rem 1rem;
     border-radius: 8px;
 }

 .nav-menu a:hover {
     color: var(--primary-color);
     background: rgba(139, 92, 246, 0.1);
 }

 .nav-menu a::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     width: 0;
     height: 2px;
     background: var(--gradient-primary);
     transition: all 0.3s ease;
     transform: translateX(-50%);
 }

 .nav-menu a:hover::after {
     width: 80%;
 }

 .burger {
     display: none;
     flex-direction: column;
     cursor: pointer;
     padding: 5px;
 }

 .burger span {
     width: 25px;
     height: 3px;
     background: var(--primary-color);
     margin: 3px 0;
     transition: 0.3s;
     border-radius: 2px;
 }

 .burger.active span:nth-child(1) {
     transform: rotate(-45deg) translate(-5px, 6px);
 }

 .burger.active span:nth-child(2) {
     opacity: 0;
 }

 .burger.active span:nth-child(3) {
     transform: rotate(45deg) translate(-5px, -6px);
 }

 /* Hero Section */
 .hero {
     height: 90vh;
     background: linear-gradient(135deg, rgba(37, 37, 38, 0.5), rgba(6, 182, 212, 0.6)), url('image/banner4.jpeg') center/cover no-repeat;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: var(--text-light);
     position: relative;
     overflow: hidden;
 }

 .hero-content {
     max-width: 800px;
     padding: 0 2rem;
     z-index: 2;
 }

 .hero h1 {
     font-size: 4rem;
     margin-bottom: 1rem;
     animation: slideInUp 1s ease-out;
     font-weight: 800;
     text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
 }

 .hero p {
     font-size: 1.4rem;
     animation: slideInUp 1s ease-out 0.2s both;
 }

 @keyframes slideInUp {
     from {
         opacity: 0;
         transform: translateY(50px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Section Styles */
 .section {
     padding: 6rem 0;
     position: relative;
 }

 .section:nth-child(even) {
     background: var(--light-color);
 }

 .section:nth-child(odd) {
     background: white;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
 }

 .section-title {
     text-align: center;
     font-size: 3rem;
     margin-bottom: 1rem;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     font-weight: 800;
 }

 .section-subtitle {
     text-align: center;
     font-size: 1.2rem;
     color: #64748b;
     margin-bottom: 3rem;
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
 }

 /* Tips Grid */
 .tips-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
 }

 .tip-card {
     background: white;
     padding: 2rem;
     border-radius: 20px;
     box-shadow: var(--shadow);
     transition: all 0.4s ease;
     border-left: 5px solid var(--primary-color);
 }

 .tip-card:hover {
     transform: translateY(-10px);
     box-shadow: var(--shadow-purple);
 }

 .tip-card i {
     font-size: 2.5rem;
     color: var(--primary-color);
     margin-bottom: 1rem;
     display: block;
 }

 .tip-card h3 {
     font-size: 1.4rem;
     margin-bottom: 1rem;
     color: var(--text-dark);
 }

 .tip-card p {
     color: #64748b;
     line-height: 1.6;
 }

 /* Tabs for Modes */
 .tabs-container {
     background: white;
     border-radius: 20px;
     box-shadow: var(--shadow);
     overflow: hidden;
     margin: 2rem 0;
 }

 .tabs-header {
     display: flex;
     background: var(--gradient-primary);
 }

 .tab-btn {
     flex: 1;
     padding: 1.5rem;
     background: transparent;
     border: none;
     color: rgba(255, 255, 255, 0.8);
     font-size: 1.1rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .tab-btn.active {
     background: rgba(255, 255, 255, 0.2);
     color: var(--text-light);
 }

 .tab-content {
     padding: 3rem;
     display: none;
 }

 .tab-content.active {
     display: block;
 }

 .tab-content h3 {
     font-size: 1.8rem;
     margin-bottom: 1rem;
     color: var(--primary-color);
 }

 .tab-content ul {
     list-style: none;
     padding: 0;
 }

 .tab-content li {
     padding: 0.5rem 0;
     color: #64748b;
     position: relative;
     padding-left: 2rem;
 }

 .tab-content li::before {
     content: '🐔';
     position: absolute;
     left: 0;
 }

 /* Accordion for Secrets */
 .accordion-container {
     max-width: 800px;
     margin: 0 auto;
 }

 .accordion-item {
     background: white;
     border-radius: 12px;
     margin-bottom: 1rem;
     box-shadow: var(--shadow);
     overflow: hidden;
 }

 .accordion-header {
     padding: 1.5rem 2rem;
     background: var(--gradient-secondary);
     color: var(--text-light);
     cursor: pointer;
     font-weight: 600;
     display: flex;
     justify-content: space-between;
     align-items: center;
     transition: background 0.3s ease;
 }

 .accordion-header:hover {
     background: var(--gradient-primary);
 }

 .accordion-header i {
     transition: transform 0.3s ease;
 }

 .accordion-header.active i {
     transform: rotate(180deg);
 }

 .accordion-content {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.3s ease;
     background: #f8fafc;
 }

 .accordion-content.active {
     max-height: 600px;
 }

 .accordion-content-inner {
     padding: 2rem;
     color: #64748b;
     line-height: 1.7;
 }

 .code-input {
     background: #f0f0f0;
     border: 1px solid #ddd;
     padding: 1rem;
     border-radius: 8px;
     font-family: monospace;
     margin: 1rem 0;
     text-align: center;
 }

 /* Progress Bar for Achievements */
 .progress-container {
     background: #e2e8f0;
     border-radius: 10px;
     height: 20px;
     margin: 1rem 0;
     overflow: hidden;
 }

 .progress-bar {
     height: 100%;
     background: var(--gradient-primary);
     width: 0%;
     transition: width 2s ease;
 }

 /* Stats Counters */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 2rem;
     text-align: center;
 }

 .stat-item {
     padding: 2rem;
     background: white;
     border-radius: 20px;
     box-shadow: var(--shadow);
     transition: transform 0.3s ease;
 }

 .stat-item:hover {
     transform: translateY(-10px);
 }

 .stat-number {
     font-size: 3rem;
     font-weight: 800;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     display: block;
 }

 .stat-label {
     font-size: 1.1rem;
     color: #64748b;
     margin-top: 0.5rem;
 }

 /* Interactive Quiz */
 .quiz-container {
     background: white;
     padding: 2rem;
     border-radius: 20px;
     box-shadow: var(--shadow);
     text-align: center;
 }

 .quiz-question {
     font-size: 1.5rem;
     margin-bottom: 1rem;
 }

 .quiz-options {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     margin: 1rem 0;
 }

 .quiz-option {
     padding: 1rem;
     background: #f8fafc;
     border: 2px solid transparent;
     border-radius: 8px;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .quiz-option:hover {
     border-color: var(--primary-color);
 }

 .quiz-option.correct {
     background: #d4edda;
     border-color: #28a745;
 }

 .quiz-option.incorrect {
     background: #f8d7da;
     border-color: #dc3545;
 }

 /* Fade-in */
 .fade-in {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.6s ease;
 }

 .fade-in.visible {
     opacity: 1;
     transform: translateY(0);
 }

 /* Footer */
 .footer {
     background: var(--gradient-dark);
     color: var(--text-light);
     text-align: center;
     padding: 4rem 0 2rem;
 }

 .footer-content {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 3rem;
     margin-bottom: 3rem;
 }

 .footer-section h3 {
     margin-bottom: 1.5rem;
     background: var(--gradient-secondary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     font-weight: 700;
 }

 .footer-section a {
     color: rgba(255, 255, 255, 0.8);
     text-decoration: none;
     transition: color 0.3s ease;
     display: block;
     margin-bottom: 0.5rem;
 }

 .footer-section a:hover {
     color: var(--secondary-color);
 }

 .footer-section p {
     color: rgba(255, 255, 255, 0.8);
 }

 .footer-bottom {

     border-top: 1px solid #444;
     padding-top: 2rem;
     margin-top: 2rem;
 }

 .text2 {
     text-align: center;
     color: #64748b;
 }

 .text {
     text-align: center;
     margin-top: 2rem;
     color: #64748b;
     font-style: italic;
 }

 .res {
     margin-top: 1rem;
     font-weight: bold;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .burger {
         display: flex;
     }

     .nav-menu {
         position: fixed;
         top: 80px;
         left: -100%;
         width: 100%;
         height: calc(100vh - 80px);
         background: rgba(248, 250, 252, 0.98);
         backdrop-filter: blur(20px);
         flex-direction: column;
         justify-content: flex-start;
         align-items: center;
         padding-top: 2rem;
         transition: left 0.3s ease;
     }

     .nav-menu.active {
         left: 0;
     }

     .hero h1 {
         font-size: 2.5rem;
     }

     .section-title {
         font-size: 2.5rem;
     }

     .section {
         padding: 4rem 0;
     }

     .tabs-header {
         flex-direction: column;
     }

     .tips-grid {
         grid-template-columns: 1fr;
     }
 }