@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS Variables & Design Tokens
   ========================================== */
:root {
    /* Colors - Dark Theme by default (Main Site & Dashboard) */
    --primary: #6F3DFF;
    --primary-light: #9B5CFF;
    --primary-gradient: linear-gradient(135deg, #6F3DFF 0%, #9B5CFF 100%);
    --primary-gradient-hover: linear-gradient(135deg, #5b2ee5 0%, #8946f0 100%);
    --bg-main: #07050E;
    --bg-card: rgba(16, 12, 30, 0.65);
    --bg-card-hover: rgba(24, 18, 44, 0.85);
    --border-color: rgba(155, 92, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.05);
    --text-main: #F3F1FA;
    --text-muted: #A39EB9;
    --bg-light-purple: rgba(111, 61, 255, 0.15);
    --bg-very-light-purple: rgba(111, 61, 255, 0.05);
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(111, 61, 255, 0.35);

    /* Fonts */
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Outfit', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transition */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Light Theme overrides when toggled */
body.light-theme {
    --bg-main: #FAFAFF;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(111, 61, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.4);
    --text-main: #1C1929;
    --text-muted: #6E6885;
    --bg-light-purple: #F3EEFF;
    --bg-very-light-purple: #F8F5FF;
    --shadow-soft: 0 10px 30px -10px rgba(111, 61, 255, 0.08);
    --shadow-medium: 0 15px 40px -5px rgba(111, 61, 255, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(111, 61, 255, 0.06);
}

/* Dashboard Dark Theme Colors */
.dashboard-theme {
    --bg-main: #07050E;
    --bg-card: rgba(16, 12, 30, 0.65);
    --bg-card-hover: rgba(24, 18, 44, 0.85);
    --border-color: rgba(155, 92, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.05);
    --text-main: #F3F1FA;
    --text-muted: #A39EB9;
    --bg-light-purple: rgba(111, 61, 255, 0.15);
    --bg-very-light-purple: rgba(111, 61, 255, 0.05);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Resets & Base Styles
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    outline: none;
    border: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   Typography & Utilities
   ========================================== */
.font-num {
    font-family: var(--font-english);
}

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

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.glass-panel-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(111, 61, 255, 0.2);
    background: var(--bg-card-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(111, 61, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 61, 255, 0.4);
    background: var(--primary-gradient-hover);
}

.btn-secondary {
    background: var(--bg-light-purple);
    color: var(--primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-light-purple);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Floating Blobs Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #6F3DFF;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: #9B5CFF;
    bottom: -150px;
    left: -100px;
    animation-delay: 3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #E8D8FF;
    top: 40%;
    left: 20%;
    animation-delay: 6s;
    opacity: 0.2;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* ==========================================
   Animations
   ========================================== */
@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -50px) scale(1.1);
    }
    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

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

.animate-float {
    animation: float-element 5s infinite alternate ease-in-out;
}

.animate-float-delayed {
    animation: float-element 6s infinite alternate ease-in-out;
    animation-delay: 1.5s;
}

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

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

/* ==========================================
   Header & Sticky Navigation
   ========================================== */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.sticky {
    top: 0;
}

header.sticky .navbar {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(16, 12, 30, 0.92);
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 12, 30, 0.65);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    font-family: var(--font-english);
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition-fast);
}

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

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

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

/* Premium Floating Dashboard Illustration (HTML/CSS) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.25;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px -15px rgba(111, 61, 255, 0.15);
    position: relative;
    padding: 24px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(111, 61, 255, 0.08);
    padding-bottom: 12px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E5E5;
}

.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }

.mockup-title {
    font-family: var(--font-english);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mockup-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.mockup-chart-main {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.mockup-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Floating analytics cards outside the mockup container */
.floating-card {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.card-analytics-stat {
    top: 15%;
    right: -40px;
    width: 170px;
}

.card-sales-graph {
    bottom: 10%;
    left: -50px;
    width: 200px;
}

.card-visitors-badge {
    top: -25px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

/* Partners Banner in Hero */
.partners-banner {
    margin-top: 50px;
}

.partners-banner p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.partners-logos {
    display: flex;
    gap: 40px;
    align-items: center;
    opacity: 0.65;
}

.partners-logos svg {
    height: 24px;
    width: auto;
    fill: var(--text-muted);
    transition: var(--transition-fast);
}

.partners-logos svg:hover {
    fill: var(--primary);
    opacity: 1;
}

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

.service-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--bg-light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(111, 61, 255, 0.25);
    transform: scale(1.05) rotate(5deg);
}

/* ==========================================
   Portfolio Section
   ========================================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-very-light-purple);
    color: var(--text-muted);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(111, 61, 255, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-height: 350px;
    transition: var(--transition-smooth);
}

.portfolio-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.portfolio-img-container {
    width: 100%;
    aspect-ratio: 1.3;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(111, 61, 255, 0.1);
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 8, 19, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.portfolio-overlay span {
    background: #FFFFFF;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-details {
    padding: 20px 8px 10px;
}

.portfolio-details span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.portfolio-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-main);
}

.portfolio-item:hover .portfolio-img-container img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* Portfolio Details Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 5, 14, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 12, 30, 0.8);
    color: #F3F1FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition-fast);
    border: 1px solid rgba(155, 92, 255, 0.2);
}

body.light-theme .modal-close {
    background: rgba(255, 255, 255, 0.9);
    color: #1C1929;
    border-color: rgba(111, 61, 255, 0.1);
}

.modal-close:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.modal-img {
    width: 100%;
    aspect-ratio: 1.7;
    object-fit: cover;
    background: #EBE8F5;
}

.modal-body {
    padding: 30px;
}

.modal-category {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 8px 0 16px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================
   Pricing Section
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-card.highlighted {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(111, 61, 255, 0.2);
    transform: scale(1.03);
    z-index: 5;
}

.pricing-card.highlighted .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.pricing-card.highlighted .pricing-features li svg {
    color: #FFFFFF;
}

.pricing-card.highlighted .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.highlighted .price-guarantee {
    border-top-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card.highlighted .btn-outline {
    background: #FFFFFF;
    color: var(--primary) !important;
    border-color: #FFFFFF;
}

.pricing-card.highlighted .btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card-header {
    margin-bottom: 25px;
}

.pricing-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.pricing-price span {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    min-height: 60px;
    margin-bottom: 20px;
}

.pricing-card.highlighted .pricing-desc {
    color: rgba(255, 255, 255, 0.85);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(111, 61, 255, 0.08);
}

.pricing-features li svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.price-guarantee {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(111, 61, 255, 0.1);
    padding-top: 15px;
}

/* ==========================================
   Statistics Section
   ========================================== */
.stats {
    background: var(--bg-very-light-purple);
    border-top: 1px solid rgba(111, 61, 255, 0.08);
    border-bottom: 1px solid rgba(111, 61, 255, 0.08);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    font-family: var(--font-english);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================
   About Us Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-light-purple);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

.pillar-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.pillar-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-svg-illustration {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: radial-gradient(circle, rgba(155, 92, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-svg-illustration svg {
    width: 85%;
    height: 85%;
}

/* ==========================================
   Testimonials Slider
   ========================================== */
.testimonials-slider-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.testimonial-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars {
    display: flex;
    gap: 4px;
    color: #FFC107;
    margin-bottom: 20px;
}

.stars svg {
    width: 20px;
    height: 20px;
}

.testimonial-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-main);
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-english);
}

.client-info {
    text-align: right;
}

.client-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.client-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-info-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.contact-method-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-light-purple);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.method-icon svg {
    width: 20px;
    height: 20px;
}

.method-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.method-text strong {
    font-size: 1.15rem;
    font-family: var(--font-english);
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-very-light-purple);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.social-btn:hover {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-3px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form-panel {
    padding: 40px;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    padding: 12px 18px;
    background: var(--bg-very-light-purple);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(155, 92, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(111, 61, 255, 0.15);
}

.form-group textarea {
    resize: none;
    height: 120px;
}

.form-status {
    grid-column: 1 / span 2;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(39, 201, 63, 0.1);
    color: #27C93F;
    border: 1px solid rgba(39, 201, 63, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(255, 95, 86, 0.1);
    color: #FF5F56;
    border: 1px solid rgba(255, 95, 86, 0.2);
}

/* ==========================================
   Footer Section
   ========================================== */
footer {
    background: #0B0815;
    color: #FFFFFF;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(111, 61, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #8C87A3;
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 25px;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8C87A3;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8C87A3;
    font-size: 0.9rem;
}

/* Protected Link */
.footer-secure-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.footer-secure-link:hover {
    color: var(--primary-light);
}

/* ==========================================
   Admin Dashboard Styles (dashboard.html)
   ========================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Login Panel */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #140F2D 0%, #07050E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    background: rgba(28, 23, 48, 0.4);
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-icon {
    width: 64px;
    height: 64px;
    background: rgba(111, 61, 255, 0.2);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    border: 1px solid rgba(155, 92, 255, 0.3);
}

.login-card h2 {
    color: #FFFFFF;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.login-card p {
    color: #A39EB9;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.login-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(15, 12, 26, 0.8);
    border: 1px solid rgba(155, 92, 255, 0.25);
    border-radius: var(--radius-md);
    color: #FFFFFF;
    font-size: 1.1rem;
    text-align: center;
    font-family: var(--font-english);
    letter-spacing: 4px;
    transition: var(--transition-fast);
}

.login-input-wrapper input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(155, 92, 255, 0.3);
}

.login-error {
    color: #FF5F56;
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 15px;
}

/* Sidebar Dashboard */
.sidebar {
    width: 260px;
    background: rgba(16, 12, 30, 0.85);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    height: 100vh;
    top: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition-smooth);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-right: 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.sidebar-menu li a svg {
    width: 20px;
    height: 20px;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
    background: var(--bg-light-purple);
    color: var(--primary-light);
}

.sidebar-footer {
    margin-top: auto;
    padding-right: 10px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FF5F56;
    font-weight: 600;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Dashboard Content Area */
.dash-content {
    flex-grow: 1;
    margin-right: 260px;
    padding: 40px;
    min-height: 100vh;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dash-header-title h1 {
    font-size: 2rem;
    font-weight: 800;
}

.dash-header-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dash-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-profile-info {
    text-align: left;
}

.dash-profile-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.dash-profile-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Page Section Containers */
.dash-page {
    display: none;
}

.dash-page.active {
    display: block;
}

/* Stats Cards Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dash-stat-card {
    padding: 24px;
}

.dash-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dash-stat-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-very-light-purple);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: var(--font-english);
}

.dash-stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-english);
}

.dash-stat-trend.up { color: #27C93F; }
.dash-stat-trend.down { color: #FF5F56; }

/* Grid Layouts for Dashboard Content */
.dash-grid-two {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dash-grid-one-two {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dash-grid-two-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Dashboard Panels */
.dash-panel {
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Table Style */
.dash-table-wrapper {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.dash-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.dash-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table tr:hover td {
    background: var(--bg-very-light-purple);
}

/* Custom SVG Charts styles */
.chart-container {
    width: 100%;
    height: 250px;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-path {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-chart 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.15;
}

@keyframes draw-chart {
    to {
        stroke-dashoffset: 0;
    }
}

/* Portfolio CRUD styles in Dashboard */
.portfolio-manager {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.upload-card-preview {
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: var(--radius-md);
    border: 2px dashed rgba(155, 92, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-very-light-purple);
    transition: var(--transition-smooth);
}

.upload-card-preview:hover {
    border-color: var(--primary-light);
    background: rgba(155, 92, 255, 0.08);
}

.upload-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-card-preview svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.upload-card-preview span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-dash {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group-dash label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group-dash input, .form-group-dash textarea {
    padding: 12px 18px;
    background: #1a1430;
    border: 1px solid rgba(155, 92, 255, 0.25);
    border-radius: var(--radius-md);
    color: #F3F1FA;
    font-size: 0.95rem;
    font-family: var(--font-arabic);
    transition: var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}

/* Dark styled select dropdown - replaces browser default */
.form-group-dash select {
    padding: 12px 42px 12px 18px;
    background: #1a1430;
    border: 1px solid rgba(155, 92, 255, 0.25);
    border-radius: var(--radius-md);
    color: #F3F1FA;
    font-size: 0.95rem;
    font-family: var(--font-arabic);
    transition: var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
    /* Remove default browser arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom dark arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239B5CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    cursor: pointer;
}

/* Style native options - force dark bg on supported browsers */
.form-group-dash select option {
    background-color: #1a1430;
    color: #F3F1FA;
    padding: 10px 18px;
    font-family: var(--font-arabic);
}

.form-group-dash select option:checked {
    background-color: #6F3DFF;
    color: #FFFFFF;
}

.form-group-dash input::placeholder, .form-group-dash textarea::placeholder {
    color: rgba(163, 158, 185, 0.5);
}

.form-group-dash input:focus, .form-group-dash select:focus, .form-group-dash textarea:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.15);
}

.form-group-dash textarea {
    resize: none;
    height: 100px;
}

/* Portfolio List Grid in Dashboard */
.dash-portfolio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 550px;
    overflow-y: auto;
    padding-left: 10px;
}

.dash-portfolio-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    align-items: center;
}

.dash-portfolio-thumb {
    width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.dash-portfolio-info {
    flex-grow: 1;
}

.dash-portfolio-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-portfolio-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-portfolio-actions {
    display: flex;
    gap: 10px;
}

.dash-btn-delete {
    color: #FF5F56;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dash-btn-delete:hover {
    background: rgba(255, 95, 86, 0.15);
}

/* Messages Viewer Layout */
.messages-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: stretch;
    height: calc(100vh - 220px);
}

.messages-list-wrapper {
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.message-item-card {
    padding: 16px;
    cursor: pointer;
    margin-bottom: 12px;
}

.message-item-card:hover {
    background: var(--bg-very-light-purple);
}

.message-item-card.active {
    background: var(--bg-light-purple);
    border-color: var(--primary-light);
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.message-item-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.message-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-item-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-detail-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.message-detail-empty {
    text-align: center;
    color: var(--text-muted);
}

.message-detail-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.message-detail-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.message-detail-sender-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.message-detail-sender-business {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.message-detail-sender-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.message-detail-body {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
    padding: 10px 0;
}

/* ==========================================
   Responsive Design Breakpoints
   ========================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .partners-logos {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

    .pricing-card.highlighted {
        transform: scale(1);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Dashboard adjustments */
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-grid-two, .dash-grid-one-two, .dash-grid-two-equal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu hidden by default */
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        background: var(--bg-main);
        flex-direction: column;
        padding: 24px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
        gap: 20px;
    }

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

    .nav-cta .btn-primary {
        display: none;
    }

    .nav-cta.mobile-active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Dashboard mobile */
    .dash-menu-toggle {
        display: block !important;
    }

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .dash-content {
        margin-right: 0;
        padding: 20px;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-manager {
        grid-template-columns: 1fr;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-list-wrapper {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-mockup {
        padding: 12px;
    }

    .floating-card {
        display: none; /* Clean up small mobile screens */
    }
}

/* ==========================================
   Theme Toggle Button (Dark / Light Switch)
   ========================================== */
.theme-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-toggle-track {
    display: flex;
    align-items: center;
    width: 54px;
    height: 28px;
    border-radius: 14px;
    background: rgba(111, 61, 255, 0.2);
    border: 1px solid rgba(155, 92, 255, 0.35);
    position: relative;
    transition: background 0.35s ease, border-color 0.35s ease;
}

body.light-theme .theme-toggle-track {
    background: rgba(255, 220, 80, 0.18);
    border-color: rgba(255, 200, 0, 0.35);
}

.theme-toggle-thumb {
    position: absolute;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.35s ease;
    box-shadow: 0 2px 8px rgba(111, 61, 255, 0.4);
}

body.light-theme .theme-toggle-thumb {
    transform: translateX(-26px);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.45);
}

.theme-toggle-thumb .icon-sun,
.theme-toggle-thumb .icon-moon {
    position: absolute;
    color: #ffffff;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Dark mode default - show moon, hide sun */
.icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}
.icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Light mode - show sun, hide moon */
body.light-theme .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}
body.light-theme .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Dashboard sidebar toggle container */
.sidebar-theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.sidebar-theme-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Light theme overrides for main landing page sections */
body.light-theme {
    background-color: var(--bg-main);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.75);
}

body.light-theme header.sticky .navbar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(111, 61, 255, 0.06);
}

body.light-theme .blob-1,
body.light-theme .blob-2,
body.light-theme .blob-3 {
    opacity: 0.25;
}

body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(111, 61, 255, 0.08);
}

body.light-theme .nav-links a {
    color: var(--text-main);
}

/* Light theme mobile menu */
body.light-theme .nav-links {
    background: var(--bg-main);
}

/* Light theme form inputs */
body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: rgba(243, 238, 255, 0.5);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    background: #FFFFFF;
}

/* Light theme highlighted pricing card */
body.light-theme .pricing-card.highlighted {
    background: var(--primary-gradient);
}

/* Light theme stats section */
body.light-theme .stats-section {
    background: linear-gradient(135deg, rgba(111, 61, 255, 0.06) 0%, rgba(155, 92, 255, 0.04) 100%);
}

/* Light theme footer stays dark */
body.light-theme footer {
    background: #0B0815;
    color: #FFFFFF;
}

/* Light theme dashboard overrides */
body.light-theme.dashboard-theme,
body.light-theme .dashboard-wrapper {
    background-color: var(--bg-main);
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(111, 61, 255, 0.08);
}

body.light-theme .sidebar-menu li.active a,
body.light-theme .sidebar-menu li a:hover {
    background: var(--bg-light-purple);
}

body.light-theme .login-overlay {
    background: radial-gradient(circle at center, #E8E0FF 0%, #F5F2FF 100%);
}

body.light-theme .login-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(111, 61, 255, 0.12);
}

body.light-theme .login-card h2 {
    color: var(--text-main);
}

body.light-theme .login-card p {
    color: var(--text-muted);
}

body.light-theme .login-input-wrapper input {
    background: rgba(243, 238, 255, 0.5);
    border-color: rgba(111, 61, 255, 0.15);
    color: var(--text-main);
}

body.light-theme .form-group-dash input,
body.light-theme .form-group-dash textarea {
    background: rgba(243, 238, 255, 0.5);
    border-color: rgba(111, 61, 255, 0.15);
    color: var(--text-main);
}

body.light-theme .form-group-dash select {
    background-color: rgba(243, 238, 255, 0.5);
    border-color: rgba(111, 61, 255, 0.15);
    color: var(--text-main);
}

body.light-theme .form-group-dash select option {
    background-color: #FFFFFF;
    color: #1C1929;
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(111, 61, 255, 0.1);
}

body.light-theme .modal-content h3 {
    color: var(--text-main) !important;
}

body.light-theme .sidebar-theme-toggle {
    background: rgba(111, 61, 255, 0.04);
    border-color: rgba(111, 61, 255, 0.08);
}

/* ==========================================
   Portfolio Gallery Carousel Modal
   ========================================== */
.gallery-modal-content {
    width: 94%;
    max-width: 900px;
    max-height: 92vh;
    background: rgba(7, 5, 14, 0.97);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(155, 92, 255, 0.15);
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

body.light-theme .gallery-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(111, 61, 255, 0.1);
    box-shadow: 0 30px 80px rgba(111, 61, 255, 0.12);
}

.modal.active .gallery-modal-content {
    transform: scale(1);
}

.gallery-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    z-index: 10;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.gallery-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #0a0818;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.light-theme .gallery-main {
    background: #F3EEFF;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 5;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.gallery-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(155, 92, 255, 0.25);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 0.85;
}

.gallery-info {
    padding: 20px 24px 28px;
}

.gallery-category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(111, 61, 255, 0.15);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.gallery-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.portfolio-img-count {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-behance {
    background: #1769FF;
    color: #FFFFFF !important;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(23, 105, 255, 0.25);
    transition: var(--transition-smooth);
}

.btn-behance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4);
    background: #0050E6;
}

.upload-thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.upload-thumb-item {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(155, 92, 255, 0.2);
}

.upload-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 95, 86, 0.9);
    color: #FFFFFF;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    line-height: 1;
}

@media (max-width: 768px) {
    .gallery-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .gallery-main {
        aspect-ratio: 4/3;
    }
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    .gallery-thumb {
        width: 52px;
        height: 40px;
    }
    .gallery-info {
        padding: 16px 20px 24px;
    }
    .gallery-title {
        font-size: 1.2rem;
    }
}
