/* Base and Variables - Premium Glassmorphism Dark UI */
:root {
    --bg-color: #060913; /* Rich Cosmic Dark */
    --bg-secondary: #0c0f1d;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* Gradients & Accents */
    --primary: #00E5FF;
    --secondary: #3B82F6;
    --accent: #8B5CF6;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover-bg: rgba(255, 255, 255, 0.04);
    
    /* Glows */
    --glow-primary: rgba(0, 229, 255, 0.3);
    --glow-secondary: rgba(59, 130, 246, 0.3);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

:root.light-mode {
    --bg-color: #F8FAFC; /* Clean soft slate gray */
    --bg-secondary: #FFFFFF; /* Pure white */
    --text-main: #0F172A; /* Deep dark slate */
    --text-muted: #64748B; /* Elegant gray */
    
    /* Light Mode Accents */
    --primary: #0284C7; /* Sky blue */
    --secondary: #2563EB; /* Royal blue */
    --accent: #7C3AED; /* Purple accent */
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.03);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-hover-bg: rgba(15, 23, 42, 0.05);
    
    /* Glows */
    --glow-primary: rgba(2, 132, 199, 0.15);
    --glow-secondary: rgba(37, 99, 235, 0.15);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.015) 1px, transparent 0),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.01) 1px, transparent 0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.en-text {
    font-family: 'Outfit', sans-serif;
}

/* Background gradient blobs to add depth */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.12;
    pointer-events: none;
    transition: var(--transition);
}

body::before {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    animation: floatBlob1 25s infinite ease-in-out;
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, var(--secondary) 100%);
    animation: floatBlob2 30s infinite ease-in-out;
}

@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(60px, 80px) scale(1.15) rotate(120deg);
        opacity: 0.15;
    }
    66% {
        transform: translate(-40px, 40px) scale(0.85) rotate(240deg);
        opacity: 0.08;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-80px, -60px) scale(1.15) rotate(-180deg);
        opacity: 0.14;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
    }
}

/* Custom Cursor - Refined */
.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.section-title span {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons - Premium Feel */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #0B0F19; /* Dark text for contrast */
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 24px;
    background: transparent;
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.large-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
}

.large-btn span {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    direction: ltr;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.05rem;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.8;
}

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

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

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.glass-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(60px);
    opacity: 0.15;
}

.floating-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.tech-icon {
    position: absolute;
    font-size: 1.8rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.tech-icon:nth-child(1) { top: 10%; right: 5%; color: #e34f26; }
.tech-icon:nth-child(2) { bottom: 15%; right: 15%; color: #1572b6; }
.tech-icon:nth-child(3) { top: 25%; left: 0%; color: #f7df1e; }
.tech-icon:nth-child(4) { bottom: 20%; left: 10%; color: var(--primary); }

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

/* About Section */
.about {
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(80px);
    opacity: 0.15;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.about-content h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(12px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--glass-hover-bg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-thumb {
    position: relative;
    height: 165px;
    overflow: hidden;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.service-card:hover .service-thumb img {
    transform: scale(1.08);
    opacity: 1;
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.thumb-overlay i {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(0, 229, 255, 0.1);
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Templates Store Section */
.templates {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.templates-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0B0F19;
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.5s ease;
}

.template-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
    backdrop-filter: blur(12px);
    position: relative;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.template-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--glass-hover-bg);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.template-mockup {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--glass-border);
}

.template-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover .template-mockup img {
    transform: scale(1.05);
}

.template-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.template-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.template-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.template-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

.btn-template {
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    display: inline-block;
    text-decoration: none;
}

.btn-template-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: transparent;
}

.btn-template-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-template-solid {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #0B0F19;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 229, 255, 0.15);
}

.btn-template-solid:hover {
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Grid for Templates */
@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .template-card {
        border-radius: 16px;
    }
    
    .template-mockup {
        height: 120px;
    }
    
    .template-info {
        padding: 14px;
    }
    
    .template-title {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .template-features {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .template-features li {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .feature-icon {
        font-size: 0.85rem;
        width: 14px;
    }
    
    .template-actions {
        gap: 8px;
    }
    
    .btn-template {
        padding: 8px 4px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
}

/* Contact Section */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.contact-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.contact-card h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    background: #060910;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    color: var(--text-muted);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--text-main);
}

.tiktok-icon:hover {
    border-color: rgba(255, 0, 80, 0.5);
    background: rgba(255, 0, 80, 0.1);
}

.whatsapp-icon:hover {
    border-color: rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.1);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* RTL */
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
    background: var(--primary);
    color: #0B0F19;
    border-color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container, .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .cursor-glow {
        display: none; /* Disable on mobile */
    }
}

/* Light mode background glow adjustments */
:root.light-mode body::before {
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.04;
}

:root.light-mode body::after {
    background: radial-gradient(circle, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0.04;
}

:root.light-mode .theme-toggle .theme-icon-light {
    display: block;
}

:root.light-mode .theme-toggle .theme-icon-dark {
    display: none;
}

:root.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    outline: none;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle .theme-icon-light {
    display: none;
    color: #F59E0B;
}

.theme-toggle .theme-icon-dark {
    display: block;
    color: #38BDF8;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    background: #20BD5A;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp .whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(11, 15, 25, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
