/* Custom CSS for dotnet.ge website */

/* CSS Variables for consistent theming */
:root {
    --primary-purple: #512BD4;
    --primary-purple-dark: #68217A;
    --primary-purple-light: #8B5CF6;
    --accent-purple: #A855F7;
    --light-purple: #F3E8FF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* Global styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Button enhancements */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Card enhancements */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple-light);
}

input, textarea, select {
    transition: all 0.3s ease;
}

/* Custom checkbox and radio styles */
input[type="checkbox"], input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.375rem;
    background: white;
    border-radius: 50%;
}

/* Animation classes */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Filter button active state */
.filter-btn.active {
    background: var(--primary-purple) !important;
    color: white !important;
}

.gallery-filter-btn.active {
    background: var(--primary-purple) !important;
    color: white !important;
}

/* Blue to Purple color overrides for new .NET theme */
.bg-blue-50 {
    background-color: var(--light-purple) !important;
}

.bg-blue-100 {
    background-color: #E0E7FF !important;
}

.bg-blue-600 {
    background-color: var(--primary-purple) !important;
}

.bg-blue-700 {
    background-color: var(--primary-purple-dark) !important;
}

.text-blue-600 {
    color: var(--primary-purple) !important;
}

.text-blue-700 {
    color: var(--primary-purple-dark) !important;
}

.border-blue-200 {
    border-color: #C7D2FE !important;
}

.border-blue-600 {
    border-color: var(--primary-purple) !important;
}

.hover\:bg-blue-50:hover {
    background-color: var(--light-purple) !important;
}

.hover\:bg-blue-700:hover {
    background-color: var(--primary-purple-dark) !important;
}

.hover\:text-blue-600:hover {
    color: var(--primary-purple) !important;
}

.hover\:text-blue-700:hover {
    color: var(--primary-purple-dark) !important;
}

.focus\:ring-blue-300:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

/* Message toast styles */
.message-toast {
    max-width: 400px;
    word-wrap: break-word;
}

/* Gallery grid enhancements */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-mt-4 {
        margin-top: 1rem !important;
    }
}

/* Custom focus styles */
.focus-purple:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f3e8ff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Dark mode support (basic) */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        background-color: var(--gray-900);
        color: var(--gray-100);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    * {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button, .btn {
        border: 2px solid;
    }

    .card-hover {
        border: 1px solid var(--gray-400);
    }
}

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

/* Custom selection color */
::selection {
    background: var(--light-purple);
    color: var(--primary-purple-dark);
}

::-moz-selection {
    background: var(--light-purple);
    color: var(--primary-purple-dark);
}

/* Smooth transitions for interactive elements */
a, button, input, textarea, select {
    transition: all 0.2s ease;
}

/* Enhanced focus indicators for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error states */
.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2;
}

.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success states */
.success {
    border-color: #10B981 !important;
    background-color: #F0FDF4;
}

.success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.logo *:focus,
.logo *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Partners Section Styles */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
}

.partner-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.partner-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
    border-color: #a855f7;
}

.partner-logo-wrapper:hover::before {
    opacity: 1;
}

.partner-logo {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .partner-logo-wrapper {
        padding: 1.5rem;
        height: 100px;
    }
    
    .partner-logo {
        max-width: 100px;
        max-height: 50px;
    }
}