/* Professional Dezimal Consulting Website Styles */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Basic animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.6s ease;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: #1e40af;
}

/* Icon hover effects */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    color: #1e40af;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Navigation link hover effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #1e40af;
    transform: translateY(-1px);
}

/* Service card specific hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #1e40af;
}

.service-icon {
    transition: all 0.4s ease;
}

/* Stats hover effects */
.stat-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: #1e40af;
}

/* Form input hover and focus effects */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:hover {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
    transform: translateY(-1px);
}

/* Contact info hover effects */
.contact-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.contact-item:hover {
    background: rgba(30, 64, 175, 0.05);
    transform: translateX(5px);
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
    color: #1e40af;
}

.contact-icon {
    transition: all 0.3s ease;
}

/* Hero section enhancements */
.hero-title {
    transition: all 0.3s ease;
}

.hero-title:hover {
    transform: scale(1.02);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-description {
    transition: all 0.3s ease;
}

.hero-description:hover {
    transform: translateY(-2px);
}

/* Section title hover effects */
.section-title {
    position: relative;
    transition: all 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.section-title:hover::after {
    width: 100%;
}

.section-title:hover {
    transform: translateY(-2px);
}

/* Competency item hover effects */
.competency-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.competency-item:hover {
    background: rgba(30, 64, 175, 0.05);
    transform: translateX(10px);
}

.competency-item:hover .competency-icon {
    transform: scale(1.2) rotate(5deg);
    color: #1e40af;
}

.competency-icon {
    transition: all 0.3s ease;
}

/* Footer link hover effects */
.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message styles */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 500;
    animation: slideInFromRight 0.5s ease;
}

.message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Selection styling */
::selection {
    background-color: #1e40af;
    color: white;
}

/* Focus outline */
*:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

.mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block !important;
    }
    
    .desktop-menu {
        display: none;
    }
}

/* Navigation transitions */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Professional color variables */
:root {
    --primary: #1e40af;
    --secondary: #64748b;
    --accent: #3b82f6;
    --dark: #1f2937;
    --light: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* Card shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Link hover effects */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* Social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #1e40af;
}

/* Form styling */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Button styling */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Professional spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Professional footer */
footer {
    background: #1f2937;
    color: #f9fafb;
}

footer a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Accessibility */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover:hover {
        border: 2px solid #1e40af;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Floating animation for icons */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow effect for primary elements */
.glow {
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
} 

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-content.success {
    border-left: 4px solid #10b981;
}

.modal-content.error {
    border-left: 4px solid #ef4444;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.modal-body {
    padding: 20px 24px;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-content.success .modal-icon {
    color: #10b981;
}

.modal-content.error .modal-icon {
    color: #ef4444;
}

.modal-message {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.modal-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.modal-overlay.closing {
    animation: fadeOut 0.3s ease;
}

.modal-overlay.closing .modal-content {
    animation: slideOut 0.3s ease;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px 20px 0;
    }
    
    .modal-body {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
} 