/* ===================================
   CloudDix - Premium Modern Theme
   Inspired by Brizmo + Dark Mode
   =================================== */

/* CSS Variables - Light Mode (Default) */
:root {
    /* Primary Purple Palette - Deep & Vibrant */
    --purple-900: #1e1034;
    --purple-800: #2d1b4e;
    --purple-700: #4c1d95;
    --purple-600: #6d28d9;
    --purple-500: #7c3aed;
    --purple-400: #8b5cf6;
    --purple-300: #a78bfa;
    --purple-200: #c4b5fd;
    --purple-100: #ede9fe;
    --purple-50: #f5f3ff;
    
    /* Theme Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Hero Gradient - Light Mode */
    --gradient-hero: linear-gradient(155deg, 
        #6d28d9 0%, 
        #7c3aed 15%, 
        #8b5cf6 30%, 
        #a78bfa 50%, 
        #c4b5fd 65%,
        #ddd6fe 78%,
        #ede9fe 88%,
        #ffffff 100%);
    
    /* Alternative Gradients */
    --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
    --gradient-text: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    --gradient-card-stat: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    
    /* Neutral Colors */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Dark Theme Colors */
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --secondary: #06b6d4;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-purple: 0 8px 32px rgba(109, 40, 217, 0.25);
    --shadow-card: 0 4px 24px rgba(109, 40, 217, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   DARK MODE - Gestor Pix Inspired
   =================================== */
[data-theme="dark"] {
    /* Theme Colors - Dark Mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Override grays for dark mode */
    --gray-900: #ffffff;
    --gray-800: rgba(255, 255, 255, 0.95);
    --gray-700: rgba(255, 255, 255, 0.85);
    --gray-600: rgba(255, 255, 255, 0.7);
    --gray-500: rgba(255, 255, 255, 0.6);
    --gray-400: rgba(255, 255, 255, 0.5);
    --gray-300: rgba(255, 255, 255, 0.2);
    --gray-200: rgba(255, 255, 255, 0.1);
    --gray-100: rgba(255, 255, 255, 0.05);
    --gray-50: rgba(255, 255, 255, 0.03);
    --white: #0f172a;
    
    /* Hero Gradient - Dark Mode (deep space purple) */
    --gradient-hero: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 50%,
        #1a1a2e 100%);
    
    /* Shadows for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-purple: 0 8px 32px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.7;
    color: var(--gray-600);
}

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

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

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

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-label {
    display: inline-block;
    color: var(--purple-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--gray-900);
    font-weight: 800;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--purple-400);
    color: var(--purple-600);
    background: var(--purple-50);
}

.btn-outline-white {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.btn-outline-white:hover {
    background: var(--white);
    border-color: var(--purple-500);
    color: var(--purple-600);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--purple-100);
    color: var(--purple-700);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin-left: auto;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 4px 0;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001; /* Ensure it's above the menu */
    width: 44px;
    height: 44px;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger Animation State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

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

/* Dark mode adjustment for toggle */
[data-theme="dark"] .mobile-menu-toggle span {
    background-color: #ffffff !important;
}

/* ===================================
   HERO SECTION - Premium Design
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(155deg, 
        #6d28d9 0%, 
        #7c3aed 15%, 
        #8b5cf6 30%, 
        #a78bfa 50%, 
        #c4b5fd 65%,
        #ddd6fe 78%,
        #ede9fe 88%,
        #ffffff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(109, 40, 217, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.hero-title .gradient-text {
    font-weight: 800;
}

.hero-buttons {
    margin-bottom: 32px;
}

/* Partner Badge */
.hero-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-partner-logo img {
    height: 24px;
}

.hero-partner-logo span {
    color: var(--gray-500);
    font-weight: 500;
}

.hero-partner p {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Stats Cards - Premium Style */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 24px 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 24px rgba(109, 40, 217, 0.08);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.15);
    border-color: rgba(139, 92, 246, 0.25);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple-600);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.8; }
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(109, 40, 217, 0.2);
}

.float-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-100) 0%, var(--purple-50) 100%);
    border-radius: var(--radius-lg);
}

.float-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.progress-bar {
    width: 120px;
    height: 6px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    animation: progress-fill 1.5s ease-out;
}

@keyframes progress-fill {
    from { width: 0; }
}

.card-1 {
    top: 10%;
    right: 8%;
    animation: float-1 5s ease-in-out infinite;
}

.card-2 {
    top: 42%;
    right: 2%;
    animation: float-2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.card-3 {
    bottom: 12%;
    right: 12%;
    animation: float-3 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

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

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

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

/* ===================================
   SOLUTIONS SECTION
   =================================== */
.solutions {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.solutions .section-title {
    margin-bottom: 60px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card {
    background: var(--white);
    border: 2px solid var(--purple-100);
    border-radius: var(--radius-3xl);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.solution-card:hover {
    border-color: var(--purple-300);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon svg {
    width: 72px;
    height: 72px;
}

.solution-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.solution-subtitle {
    font-size: 0.875rem;
    color: var(--purple-600);
    font-weight: 600;
    margin-bottom: 20px;
}

.solution-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===================================
   MICROSOFT 365 TOOLS
   =================================== */
.m365-tools {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--purple-50) 100%);
}

.m365-tools .container {
    text-align: center;
}

.m365-tools .section-title {
    margin-bottom: 20px;
}

.m365-tools .section-description {
    margin: 0 auto 60px;
    max-width: 800px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-base);
}

.tool-item:hover {
    transform: translateY(-6px);
}

.tool-icon {
    width: 72px;
    height: 72px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
}

.tool-item:hover .tool-icon {
    box-shadow: 0 8px 28px rgba(109, 40, 217, 0.15);
    border-color: var(--purple-200);
    transform: scale(1.05);
}

.tool-icon img,
.tool-icon svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tool-name {
    font-size: 0.8125rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.about-content {
    max-width: 520px;
}

.about-content .section-description {
    margin-bottom: 24px;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-box {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 28px;
    transition: all var(--transition-base);
}

.feature-box:hover {
    border-color: var(--purple-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-box h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-box p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   MICROSOFT PARTNER
   =================================== */
.microsoft-partner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--purple-50) 0%, var(--purple-100) 100%);
}

.partner-content {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-badge {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.partner-badge svg {
    width: 64px;
    height: 64px;
}

.partner-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.partner-description {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

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

.services .section-title {
    margin-bottom: 60px;
}

.services-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 32px;
    text-align: left;
    min-width: 340px;
    height: 100%; /* Garantir altura total */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--transition-base);
}

.service-card .service-description {
    flex-grow: 1; /* Empurrar conteúdo para baixo uniformemente */
}

.service-card:hover {
    border-color: var(--purple-200);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-600);
    font-weight: 600;
    font-size: 0.875rem;
}

.service-link:hover {
    gap: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--purple-600);
    width: 28px;
    border-radius: 5px;
}

/* ===================================
   PRICING SECTION
   =================================== */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.pricing .section-title {
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 32px 24px;
    text-align: left;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--purple-200);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--purple-600);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pricing-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.pricing-cta {
    margin-bottom: 24px;
}

.pricing-cta .btn {
    width: 100%;
    padding: 12px 20px;
}

.pricing-apps {
    margin-bottom: 20px;
}

.pricing-apps-title {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.pricing-apps-icons {
    display: flex;
    gap: 8px;
}

.pricing-apps-icons svg {
    width: 28px;
    height: 28px;
}

.pricing-features {
    flex: 1;
}

.pricing-features-title {
    font-size: 0.8125rem;
    color: var(--purple-600);
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    font-size: 0.8125rem;
    color: var(--gray-600);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    line-height: 1.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--purple-50) 0%, var(--purple-100) 100%);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-content {
    max-width: 480px;
}

.contact-content .section-description {
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--purple-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    stroke: var(--purple-600);
    width: 22px;
    height: 22px;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.info-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

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

.btn-full {
    width: 100%;
    grid-column: 1 / -1;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo-img {
    height: 36px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 24px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--purple-600);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

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

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

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-content {
        max-width: 100%;
        text-align: center;
    }
    
    .about-content .section-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact .container {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto 48px;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 32px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Navbar Mobile Modernization */
    .navbar {
        padding: 12px 0;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .navbar {
        background: rgba(15, 23, 42, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-container {
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    /* Force Logo to Left */
    .logo {
        margin-right: auto;
        z-index: 1001;
    }

    /* Group Controls to Right */
    .theme-toggle {
        order: 1;
        margin-right: 8px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 24px;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999; /* Below logo/toggle */
        pointer-events: none;
    }
    
    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }
    
    .nav-links li {
        width: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger Animation for items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--gray-900);
        padding: 8px 0;
        display: inline-block;
        width: auto;
        border-bottom: none;
    }

    [data-theme="dark"] .nav-links a {
        color: var(--white);
    }
    
    .nav-links a:hover {
        background: transparent;
        color: var(--purple-600);
        padding-left: 0;
        transform: scale(1.05);
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 24px;
    }
    
    .hero-partner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .stat-number {
        font-size: 1.25rem;
        margin-bottom: 0;
        min-width: 120px;
    }

    .stat-label {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    /* Grids Mobile */
    .solutions-grid,
    .about-features,
    .pricing-grid,
    .contact-form,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .tool-icon {
        width: 56px;
        height: 56px;
    }
    
    .tool-icon svg, 
    .tool-icon img {
        width: 28px;
        height: 28px;
    }
    
    .tool-name {
        font-size: 0.75rem;
    }
    
    /* Partner Content */
    .partner-content {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-visual {
        height: 320px;
        display: none; /* Hide visual on very small screens to save space */
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-card {
        min-width: 260px;
        padding: 24px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    /* Floating Cards adjustment for small screens if visual is kept */
    .floating-card {
        padding: 12px 16px;
    }
    
    .float-card-icon {
        width: 40px;
        height: 40px;
    }

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   DARK MODE COMPONENT STYLES
   =================================== */

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--gray-600);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--purple-600);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Sun/Moon icons visibility */
.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Body transition for theme change */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode - Body */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark Mode - Navbar */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--purple-300);
}

[data-theme="dark"] .theme-toggle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--purple-300);
}

/* Dark Mode - Hero Section */
[data-theme="dark"] .hero {
    background: var(--gradient-hero);
    position: relative;
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, var(--purple-300) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-partner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-partner p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .stat-number {
    color: var(--purple-300);
}

[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .floating-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dark Mode - Buttons */
[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Dark Mode - Solutions Section */
[data-theme="dark"] .solutions {
    background: var(--bg-primary);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .section-description {
    color: var(--text-tertiary);
}

[data-theme="dark"] .section-label {
    color: var(--purple-300);
}

[data-theme="dark"] .solution-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .solution-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .solution-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .solution-subtitle {
    color: var(--purple-300);
}

[data-theme="dark"] .solution-card p {
    color: var(--text-tertiary);
}

/* Dark Mode - M365 Tools */
[data-theme="dark"] .m365-tools {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .tool-icon {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .tool-item:hover .tool-icon {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .tool-name {
    color: var(--text-secondary);
}

/* Dark Mode - About Section */
[data-theme="dark"] .about {
    background: var(--bg-primary);
}

[data-theme="dark"] .about-text {
    color: var(--text-tertiary);
}

[data-theme="dark"] .feature-box {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-box:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .feature-box h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-box p {
    color: var(--text-tertiary);
}

/* Dark Mode - Microsoft Partner */
[data-theme="dark"] .microsoft-partner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

[data-theme="dark"] .partner-badge {
    background: var(--bg-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .partner-title {
    color: var(--text-primary);
}

[data-theme="dark"] .partner-description {
    color: var(--text-tertiary);
}

/* Dark Mode - Services */
[data-theme="dark"] .services {
    background: var(--bg-secondary);
}

[data-theme="dark"] .service-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .service-title {
    color: var(--text-primary);
}

[data-theme="dark"] .service-description {
    color: var(--text-tertiary);
}

[data-theme="dark"] .tag {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-300);
}

/* Dark Mode - Pricing */
[data-theme="dark"] .pricing {
    background: var(--bg-primary);
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .pricing-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.5);
}

[data-theme="dark"] .pricing-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .pricing-subtitle {
    color: var(--text-muted);
}

[data-theme="dark"] .pricing-apps-title {
    color: var(--text-tertiary);
}

[data-theme="dark"] .pricing-features-title {
    color: var(--purple-300);
}

[data-theme="dark"] .pricing-features li {
    color: var(--text-secondary);
    border-bottom-color: var(--border-color);
}

/* Dark Mode - Contact */
[data-theme="dark"] .contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

[data-theme="dark"] .contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-group label {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .info-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .info-content p {
    color: var(--text-tertiary);
}

/* Dark Mode - Footer */
[data-theme="dark"] .footer {
    background: #0a0f1a;
}

[data-theme="dark"] .footer-description {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-links a {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--purple-300);
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

[data-theme="dark"] .social-link:hover {
    background: var(--purple-600);
    color: white;
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text-muted);
}

/* Particles Animation for Dark Mode Hero */
[data-theme="dark"] .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

[data-theme="dark"] .hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
}

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

