/* Dark Theme for Ultra Creation Production Website */

[data-theme="dark"] {
    /* Primary Colors - Adjusted for dark mode */
    --color-primary: #60a5fa;
    --color-primary-hover: #3b82f6;
    --color-primary-light: #93c5fd;
    --color-primary-dark: #2563eb;
    
    /* Secondary Colors - Adjusted for dark mode */
    --color-secondary: #a78bfa;
    --color-secondary-hover: #8b5cf6;
    --color-secondary-light: #c4b5fd;
    --color-secondary-dark: #7c3aed;
    
    /* Accent Colors - Adjusted for dark mode */
    --color-accent: #f472b6;
    --color-accent-hover: #ec4899;
    --color-accent-light: #f9a8d4;
    --color-accent-dark: #db2777;
    
    /* Text Colors - Inverted for dark mode */
    --color-text: #f9fafb;
    --color-text-secondary: #d1d5db;
    --color-text-tertiary: #9ca3af;
    --color-text-inverse: #111827;
    
    /* Background Colors - Dark backgrounds */
    --color-bg: #111827;
    --color-bg-alt: #1f2937;
    --color-bg-secondary: #374151;
    --color-bg-tertiary: #4b5563;
    
    /* Border Colors - Subtle in dark mode */
    --color-border: #374151;
    --color-border-light: #4b5563;
    --color-border-dark: #1f2937;
    
    /* Status Colors - Adjusted for dark mode */
    --color-success: #34d399;
    --color-success-bg: #064e3b;
    --color-success-border: #059669;
    
    --color-warning: #fbbf24;
    --color-warning-bg: #78350f;
    --color-warning-border: #f59e0b;
    
    --color-error: #f87171;
    --color-error-bg: #7f1d1d;
    --color-error-border: #dc2626;
    
    --color-info: #60a5fa;
    --color-info-bg: #1e3a8a;
    --color-info-border: #3b82f6;
    
    /* Shadows - Darker and more subtle in dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    /* Card Shadows - More pronounced in dark mode */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.6);
    
    /* Overlay - Lighter in dark mode */
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* Company name styling */
[data-theme="dark"] .company-name {
    color: #ffffff;
}

[data-theme="dark"] .company-tagline {
    color: #d1d5db;
}

/* Global dark mode styles */
[data-theme="dark"] body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Navigation */
[data-theme="dark"] nav,
[data-theme="dark"] .navbar {
    background-color: var(--color-bg-alt);
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .nav-link {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--color-text);
}

/* Cards - Override white background */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .portfolio-card,
[data-theme="dark"] .news-card {
    background-color: var(--color-bg-alt) !important;
    border-color: var(--color-border);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .portfolio-card:hover,
[data-theme="dark"] .news-card:hover {
    box-shadow: var(--shadow-card-hover);
    background-color: var(--color-bg-secondary) !important;
}

/* Card content */
[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6 {
    color: var(--color-text);
}

[data-theme="dark"] .card p {
    color: var(--color-text-secondary);
}

/* Buttons */
[data-theme="dark"] .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--color-primary-hover);
}

[data-theme="dark"] .btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--color-secondary-hover);
}

/* Forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--color-text-tertiary);
}

/* Tables */
[data-theme="dark"] table {
    background-color: var(--color-bg-alt);
}

[data-theme="dark"] th {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="dark"] td {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

[data-theme="dark"] tr:hover {
    background-color: var(--color-bg-secondary);
}

/* Modals */
[data-theme="dark"] .modal-content {
    background-color: var(--color-bg-alt);
    border-color: var(--color-border);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--color-border);
}

/* Alerts */
[data-theme="dark"] .alert-success {
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
}

[data-theme="dark"] .alert-warning {
    background-color: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: var(--color-warning);
}

[data-theme="dark"] .alert-error {
    background-color: var(--color-error-bg);
    border-color: var(--color-error-border);
    color: var(--color-error);
}

[data-theme="dark"] .alert-info {
    background-color: var(--color-info-bg);
    border-color: var(--color-info-border);
    color: var(--color-info);
}

/* Footer */
[data-theme="dark"] footer {
    background-color: var(--color-bg-alt);
    border-top-color: var(--color-border);
}

/* Links */
[data-theme="dark"] a {
    color: var(--color-primary-light);
}

[data-theme="dark"] a:hover {
    color: var(--color-primary);
}

/* Code blocks */
[data-theme="dark"] code {
    background-color: var(--color-bg-secondary);
    color: var(--color-accent-light);
}

[data-theme="dark"] pre {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-light);
}

/* Override Tailwind utility classes for dark mode */
[data-theme="dark"] .bg-white {
    background-color: var(--color-bg-alt) !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--color-bg) !important;
}

[data-theme="dark"] .bg-gray-100 {
    background-color: var(--color-bg-alt) !important;
}

[data-theme="dark"] .bg-gray-200 {
    background-color: var(--color-bg-secondary) !important;
}

[data-theme="dark"] .text-gray-900 {
    color: var(--color-text) !important;
}

[data-theme="dark"] .text-gray-800 {
    color: var(--color-text) !important;
}

[data-theme="dark"] .text-gray-700 {
    color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .text-gray-600 {
    color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .text-gray-500 {
    color: var(--color-text-tertiary) !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: var(--color-border) !important;
}

[data-theme="dark"] .border-gray-300 {
    border-color: var(--color-border-light) !important;
}

/* Service icons and category badges */
[data-theme="dark"] .bg-blue-50,
[data-theme="dark"] .bg-blue-100,
[data-theme="dark"] .bg-purple-50,
[data-theme="dark"] .bg-purple-100,
[data-theme="dark"] .bg-pink-50,
[data-theme="dark"] .bg-pink-100,
[data-theme="dark"] .bg-green-50,
[data-theme="dark"] .bg-green-100,
[data-theme="dark"] .bg-yellow-50,
[data-theme="dark"] .bg-yellow-100,
[data-theme="dark"] .bg-orange-100,
[data-theme="dark"] .bg-teal-100,
[data-theme="dark"] .bg-fuchsia-100,
[data-theme="dark"] .bg-rose-100,
[data-theme="dark"] .bg-amber-100 {
    background-color: var(--color-bg-secondary) !important;
}

/* Icon colors in dark mode */
[data-theme="dark"] .text-blue-600,
[data-theme="dark"] .text-blue-500 {
    color: var(--color-primary-light) !important;
}

[data-theme="dark"] .text-purple-600,
[data-theme="dark"] .text-purple-500 {
    color: var(--color-secondary-light) !important;
}

[data-theme="dark"] .text-pink-600,
[data-theme="dark"] .text-pink-500 {
    color: var(--color-accent-light) !important;
}

/* Headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--color-text);
}

/* Sections with light backgrounds */
[data-theme="dark"] section {
    background-color: transparent;
}

[data-theme="dark"] .bg-gradient-to-br,
[data-theme="dark"] .bg-gradient-to-r {
    opacity: 0.9;
}
