/* ShareHosting - Custom Web & Hosting Solutions */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #ff6b35;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #fb923c);
    --gradient-success: linear-gradient(135deg, var(--success), #059669);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.25rem;
    --spacing-2xl: 1.5rem;
    --spacing-3xl: 2rem;
    --spacing-4xl: 2.5rem;
    --spacing-5xl: 3rem;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}
/* --- Ultra Hero Improvements --- */
.hero {
    background: #050505;
    color: #fff;
}

/* ตัวหนังสือไล่เฉดสีและเงาวาว */
.text-gradient-shimmer {
    background: linear-gradient(90deg, #fff, #4facfe, #00f2fe, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    font-weight: 800;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Mega Title */
.mega-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Premium Badge */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #4facfe;
}

/* Button Glow */
.btn-primary-glow {
    background: linear-gradient(45deg, #007aff, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-glow:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.8);
}

/* Glassmorphism Card */
.glass-card-main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

/* AI Orb Effect */
.ai-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79,172,254,0.4) 0%, transparent 70%);
    filter: blur(30px);
    animation: pulse-orb 4s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-portfolio-glow {
    position: relative;
    overflow: hidden;
    /* เน้นเรืองแสงให้เด่นกว่าปุ่มซ้าย */
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 10px 25px rgba(37, 99, 235, 0.4) !important;
}

.btn-portfolio-glow::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}
@keyframes pulse-orb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
}

/* Grid Features */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
/* จัดการรายการใน Footer หลังจากเอา li ออก */
.footer-links a, 
.footer-links span {
    display: block;      /* บังคับขึ้นบรรทัดใหม่ */
    margin-bottom: 10px; /* ระยะห่างระหว่างบรรทัด */
    text-decoration: none;
    color: inherit;      /* ใช้สีเดิมของ Footer */
    transition: 0.3s;
}
/* สไตล์สำหรับปุ่ม Line */
.line-btn {
    display: inline-flex;
    align-items: center;
    background-color: #06C755; /* สีเขียวทางการของ LINE */
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.line-btn i {
    font-size: 24px;
    margin-right: 10px;
}

.line-btn:hover {
    background-color: #05a346;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
    color: white !important;
}

.line-btn:active {
    transform: translateY(0);
}

.line-button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-links a:hover {
    padding-left: 5px;   /* เอฟเฟกต์ขยับเมื่อชี้ */
    color: #3390ec;      /* สีเมื่อชี้ (ปรับตามธีม) */
}

.footer-links {
    padding-left: 0;     /* ล้าง Padding ของ ul */
}
/* สไตล์พิเศษสำหรับลิงก์ Line */
.line-contact-link {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #ffffff; /* สีพื้นฐาน */
    transition: all 0.3s ease;
}

.line-contact-link i {
    color: #06C755; /* สีเขียว Line Official */
    margin-right: 10px;
    font-size: 1.1em;
}

.line-contact-link:hover {
    color: #06C755; /* เปลี่ยนสีตัวอักษรเมื่อ hover */
    transform: translateX(5px); /* ขยับไปข้างหน้าเล็กน้อย */
}


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--gray-100);
}

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

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: var(--font-size-2xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: auto;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-5xl);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-content .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.feature-item i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-mockup {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.mockup-screen {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.mockup-content {
    padding: var(--spacing-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.mockup-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #27ca3f;
}

.mockup-url {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-weight: 500;
}

.mockup-body h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.mockup-body p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
}

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

/* Features Section */
.features {
    padding: var(--spacing-5xl) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--gray-800);
}

.stats .section-header h2 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: var(--spacing-5xl) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.service-card h3 {
    font-size: var(--font-size-xl);
    margin: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    color: var(--gray-800);
}

.service-card p {
    margin: 0 var(--spacing-xl) var(--spacing-lg);
    color: var(--gray-600);
    line-height: 1.6;
}

.service-card ul {
    margin: 0 var(--spacing-xl) var(--spacing-xl);
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-600);
}

.service-card li i {
    color: var(--success);
    font-size: var(--font-size-sm);
}

/* Stats Section */
.stats {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stats-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%232563eb" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-pattern)"/></svg>');
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    display: block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.stat-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label-success {
    color: #059669 !important;
    font-weight: 600;
}

/* Advanced Animation Effects */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.counter-number.animating {
    animation: textGlow 2s ease-in-out;
}

.counter-number.completed {
    animation: textGlow 0.5s ease-in-out;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
    50% { text-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 30px rgba(37, 99, 235, 0.6); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    border-left: 4px solid #10b981;
}

.notification.show {
    transform: translateX(0);
}

.notification-success { border-left-color: #10b981; }
.notification-error { border-left-color: #ef4444; }

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

/* Enhanced button interactions */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-magnetic:hover {
    transform: scale(1.05);
}

/* 3D hover effects */
.interactive-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.interactive-card:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(10px);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.auth-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.auth-tabs {
    display: flex;
    gap: var(--spacing-md);
}

.auth-tab {
    background: none;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-normal);
    position: relative;
}

.auth-tab.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.auth-tab.active::after {
    width: 80%;
}

.auth-modal-body {
    padding: var(--spacing-xl);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

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

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-modal-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-modal-footer p {
    margin-bottom: var(--spacing-lg);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.social-login {
    display: flex;
    gap: var(--spacing-md);
}

.btn-social {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: white;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-social:hover {
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.github-btn:hover {
    border-color: #24292e;
    color: #24292e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }

    .auth-tabs {
        justify-content: center;
    }

    .social-login {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
    }
}

/* Enhanced Mockup Effects */
.mockup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji-float {
    animation: float 3s ease-in-out infinite;
}

.typing-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.mockup-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #4b5563;
}

.highlight-word {
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: shimmerMove 3s infinite;
}

.stat-icon {
    font-size: 1.2rem;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    width: 0;
    animation: fillBar 2s ease-out forwards;
}

.stat-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.status-text {
    font-size: 0.6rem;
    color: #10b981;
    font-weight: 500;
}

.mockup-cta {
    margin-top: 1rem;
    text-align: center;
}

.mockup-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mockup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mockup-btn:active {
    transform: translateY(0);
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill-width, 0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Counter Animation */
.animate-counter {
    display: inline-block;
    min-width: 2ch;
}

/* Enhanced Features Section Animations */
.features .section-header h2 {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.features .feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.features .feature-card:hover::before {
    left: 100%;
}

.features .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.features .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.features .feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.features .feature-card h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.features .feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Advanced Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-magnetic {
    transition: transform 0.3s ease;
}

.animate-magnetic:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Language Switcher */
/* === ELEGANT LANGUAGE SWITCHER === */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 0.25rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Subtle Floating Particles */
.language-switcher .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: gentleParticleFloat 6s ease-in-out infinite;
}

.language-switcher .particle:nth-child(1) { top: -6px; left: 25%; animation-delay: 0s; }
.language-switcher .particle:nth-child(2) { top: -4px; right: 30%; animation-delay: 2s; }
.language-switcher .particle:nth-child(3) { bottom: -6px; left: 20%; animation-delay: 4s; }
.language-switcher .particle:nth-child(4) { bottom: -4px; right: 35%; animation-delay: 1s; }

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    z-index: 10;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(139, 92, 246, 0.4) 30%,
            rgba(59, 130, 246, 0.3) 60%,
            rgba(16, 185, 129, 0.2) 80%,
            transparent 100%
        ),
        conic-gradient(
            from 0deg,
            rgba(236, 72, 153, 0.2),
            rgba(245, 158, 11, 0.2),
            rgba(139, 92, 246, 0.2)
        );
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    animation: none;
}

.lang-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(139, 92, 246, 0.15),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.lang-btn:hover::before {
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) scale(1) rotate(180deg);
    animation: quantumMorph 1.5s ease-in-out infinite;
}

.lang-btn:hover::after {
    left: 100%;
    animation: shimmerFlow 1.2s ease-in-out;
}

.lang-btn:hover {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.lang-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-weight: 700;
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
    opacity: 0.8;
}

.lang-btn .flag {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lang-btn:hover .flag {
    transform: scale(1.1);
}

/* === ADVANCED ANIMATIONS === */

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

@keyframes gentleParticleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 0.6;
    }
}


@keyframes magneticHover {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-4px) scale(1.08);
    }
    50% {
        transform: translateY(-3px) scale(1.06);
    }
    75% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* === MORPHING BORDER EFFECT === */
.lang-btn.active {
    position: relative;
}

.lang-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent,
        rgba(139, 92, 246, 0.5),
        rgba(59, 130, 246, 0.5),
        rgba(16, 185, 129, 0.5),
        transparent
    );
    border-radius: 27px;
    z-index: -1;
    animation: borderMorph 3s ease-in-out infinite;
}

@keyframes borderMorph {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0.5rem;
        padding: 0.2rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .lang-btn .flag {
        font-size: 1rem;
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* White Label Custom Styles */
.white-label-active .navbar {
    background: var(--wl-primary-color, #2563eb);
}

.white-label-active .btn-primary {
    background: var(--wl-primary-color, #2563eb);
}

.white-label-active .feature-card .feature-icon {
    background: linear-gradient(135deg, var(--wl-primary-color, #2563eb), var(--wl-secondary-color, #7c3aed));
}

.white-label-active .section-header h2 {
    background: linear-gradient(135deg, var(--wl-primary-color, #2563eb), var(--wl-secondary-color, #7c3aed));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Section */
.contact {
    padding: var(--spacing-5xl) 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.contact-item i {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-top: var(--spacing-xs);
}

.contact-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--gray-800);
}

.contact-item p {
    color: var(--gray-600);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Service Categories */
.service-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
}

.service-category-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-lg);
}

.service-category-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--gray-800);
}

.service-category-card p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
}

.category-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Combo Promotion */
.combo-promotion {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.combo-promotion::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

.combo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.combo-header i {
    color: #fbbf24;
    font-size: var(--font-size-xl);
    animation: bounce 2s infinite;
}

.combo-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.combo-content {
    position: relative;
    z-index: 1;
}

.combo-price {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.combo-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.combo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.benefit-item i {
    color: #10b981;
}

/* Content & SEO Grid */
.content-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.content-service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.content-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.service-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.service-price {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
}

.service-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.service-features li i {
    color: var(--success);
    font-size: var(--font-size-sm);
}

/* Service Price Styles */
.service-price {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: var(--spacing-4xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.footer-logo i {
    font-size: var(--font-size-2xl);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-normal);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
}

/* Responsive Design */
    @media (max-width: 768px) {
        .nav-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            flex-direction: column;
            padding: 0;
            display: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: calc(100vh - 80px);
            overflow-y: auto;
        }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu .nav-link {
            width: 100%;
            padding: 1rem 2rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            margin: 0;
        }

        .nav-menu .nav-link::after {
            display: none;
        }

        .nav-menu .nav-dropdown {
            width: 100%;
        }

        .nav-menu .dropdown-toggle {
            width: 100%;
            padding: 1rem 2rem;
            justify-content: space-between;
        }

        .nav-menu .dropdown-menu {
            position: static;
            width: 100%;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            display: none;
            background: rgba(0, 0, 0, 0.02);
            padding-left: 1rem;
        }

        .nav-menu .nav-dropdown.active .dropdown-menu {
            display: block;
        }

        .nav-toggle {
            display: flex;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            cursor: pointer;
            position: relative;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            margin-left: 10px;
        }

        /* Adjust navigation layout for mobile */
        .nav-container {
            position: relative;
            justify-content: space-between;
        }

        /* Nav-right positioning on mobile */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
            flex-shrink: 0;
        }

        .nav-right .btn-sm {
            padding: 6px 12px;
            font-size: 0.75rem;
            white-space: nowrap;
        }

        /* Ensure language switcher and toggle don't overlap */
        .nav-right .language-switcher {
            margin-right: 0;
        }
    }
/* --- ปรับปรุง Hero Section ให้รองรับเนื้อหาที่ยาวขึ้นในมือถือ --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 var(--spacing-5xl); /* เพิ่ม padding ล่างเพื่อให้มีพื้นที่ดัน section ถัดไป */
}

/* ปรับปรุง Container ของ Hero ให้ยืดหยุ่น */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2; /* ให้อยู่เหนือรูปทรงตกแต่ง */
}

/* ควบคุมขนาด Mockup ไม่ให้ล้น */
.hero-image {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 5;
}

/* --- Media Query สำหรับมือถือ (แก้ไขจุดที่ทำให้ทับกัน) --- */
@media (max-width: 992px) {
    .hero {
        height: auto; /* สำคัญ: ปลดล็อกความสูงตายตัว */
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr; /* ปรับเป็นแถวเดียว */
        text-align: center;
        gap: var(--spacing-4xl);
    }

    .hero-content {
        order: 1; /* ข้อความอยู่บน */
    }

    .hero-image {
        order: 2; /* Mockup อยู่ล่าง */
        margin-top: var(--spacing-2xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        align-items: center; /* จัด feature ให้อยู่กึ่งกลางตามข้อความ */
    }
}
/* Animations */
/* Modern Animations & Effects */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
}

/* Float Animation */
@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.float-gentle {
    animation: floatGentle 3s ease-in-out infinite;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Delay Classes */
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }
.fade-in-up.delay-6 { animation-delay: 0.6s; }

.slide-in-left.delay-1 { animation-delay: 0.1s; }
.slide-in-left.delay-2 { animation-delay: 0.2s; }
.slide-in-left.delay-3 { animation-delay: 0.3s; }

.slide-in-right.delay-1 { animation-delay: 0.1s; }
.slide-in-right.delay-2 { animation-delay: 0.2s; }
.slide-in-right.delay-3 { animation-delay: 0.3s; }

.scale-in.delay-1 { animation-delay: 0.1s; }
.scale-in.delay-2 { animation-delay: 0.2s; }
.scale-in.delay-3 { animation-delay: 0.3s; }

/* Enhanced Hover Effects */
.feature-card,
.service-card,
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-2xl);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

/* Interactive Elements */
.interactive-card {
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.interactive-card:hover::before {
    left: 100%;
}

/* Particle Background */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before,
.particle-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-bg::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
}

.particle-bg::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

/* Loading Animation */
@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-number {
    display: inline-block;
    animation: countUp 0.5s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Admin Dashboard Sidebar Styles */
.admin-dashboard .sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-right: 1px solid rgba(229, 231, 235, 0.8);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-dashboard .sidebar::before {
    content: '';
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 50%, rgba(16, 185, 129, 0.03) 100%);
    pointer-events: none;
    z-index: -1;
}

.admin-dashboard .sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.admin-dashboard .sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

.admin-dashboard .sidebar-nav {
    padding: 1rem 0;
}

.admin-dashboard .nav-section {
    margin-bottom: 2rem;
    position: relative;
}

.admin-dashboard .nav-section::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%);
    border-radius: 1px;
}

.admin-dashboard .nav-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.admin-dashboard .nav-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.admin-dashboard .nav-section-title i {
    color: #6366f1;
    font-size: 0.875rem;
}

.admin-dashboard .sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    position: relative;
    border-radius: 0 24px 24px 0;
    margin: 0.125rem 0.5rem 0.125rem 0;
    font-weight: 500;
}

.admin-dashboard .sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 0 24px 24px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.admin-dashboard .sidebar .nav-link:hover {
    color: #0f172a;
    transform: translateX(4px);
}

.admin-dashboard .sidebar .nav-link:hover::before {
    width: calc(100% - 8px);
}

.admin-dashboard .sidebar .nav-link.active {
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-dashboard .sidebar .nav-link.active::before {
    width: 100%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.admin-dashboard .sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.admin-dashboard .sidebar .nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content Adjustment */
.admin-dashboard .main-content {
    margin-left: 280px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

.status-healthy {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-critical {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-offline {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.status-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Metric Cards */
.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 20px 20px 0 0;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
}

.metric-value.live-data {
    animation: pulse 2s infinite;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.metric-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Server Status Cards */
.server-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.server-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

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

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.server-name {
    font-weight: 700;
    color: #1f2937;
}

.server-location {
    font-size: 0.875rem;
    color: #6b7280;
}

.resource-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.resource-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cpu-fill { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.ram-fill { background: linear-gradient(90deg, #10b981, #059669); }
.disk-fill { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: rgba(229, 231, 235, 0.5);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 3px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
    margin: 0.25rem 0;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(99, 102, 241, 0.02);
    transform: translateX(8px);
    padding-left: 1rem;
}

.activity-item:hover::before {
    opacity: 1;
    left: -0.5rem;
}

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

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.activity-icon.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.activity-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.activity-icon.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.activity-icon.info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.activity-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-time::before {
    content: '🕐';
    font-size: 0.875rem;
}

/* Responsive for sidebar */
@media (max-width: 1024px) {
    .admin-dashboard .sidebar {
        transform: translateX(-100%);
    }

    .admin-dashboard .sidebar.show {
        transform: translateX(0);
    }

    .admin-dashboard .main-content {
        margin-left: 0;
    }

    .admin-dashboard .main-content.sidebar-open {
        margin-left: 280px;
    }
}

@media (max-width: 768px) {
    .admin-dashboard .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }

    .admin-dashboard .main-content {
        padding: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard .navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-dashboard .nav-logo span {
    color: #f8fafc;
    font-weight: 700;
}

.admin-dashboard .nav-link {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.admin-dashboard .nav-link:hover,
.admin-dashboard .nav-link.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 20px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.card-body {
    padding: 24px;
}

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

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.open {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.closed {
    background: #d1fae5;
    color: #065f46;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.low {
    background: #f3f4f6;
    color: #374151;
}

.priority-badge.normal {
    background: #dbeafe;
    color: #1e40af;
}

.priority-badge.high {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    margin-right: 12px;
    font-size: 14px;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Registration Disabled Message */
.registration-disabled-message {
    margin: 1rem 0;
    animation: fadeIn 0.5s ease-out;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3b82f6;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 12px;
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-icon {
        margin-right: 0;
    }
}