/* Additional Enhancements and Animations */

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-gold), var(--primary-gold));
}

/* Selection Color */
::selection {
    background: var(--primary-gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--white);
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

/* Glowing Effect for Important Elements */
.hero-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.service-icon:hover {
    box-shadow: 0 0 30px var(--primary-gold);
}

.stat-icon {
    box-shadow: 0 0 20px rgba(196, 166, 97, 0.3);
}

/* Advanced Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 0.1;
}

/* Floating Animation for Shapes */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(120deg); }
    66% { transform: translateY(-5px) rotate(240deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

.shape-1 { animation: floatSlow 8s ease-in-out infinite; }
.shape-2 { animation: floatMedium 6s ease-in-out infinite; }
.shape-3 { animation: floatFast 4s ease-in-out infinite; }
.shape-4 { animation: floatSlow 7s ease-in-out infinite; }

/* Typewriter Effect for Hero Title */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--white); }
}

.hero-title.typewriter {
    overflow: hidden;
    border-left: 3px solid var(--white);
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s forwards, blink 1s infinite;
}

/* Ripple Effect for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Card Shadows */
.service-card,
.tech-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover,
.tech-card:hover {
    box-shadow: 
        0 14px 28px rgba(196, 166, 97, 0.25),
        0 10px 10px rgba(196, 166, 97, 0.22);
}

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

/* Animated Underlines */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Particle Effect Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.7;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px var(--shadow-light), 0 5px 15px rgba(196, 166, 97, 0.2);
}

/* Loading Animations */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Smooth Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* Enhanced Mobile Animations */
@media (max-width: 768px) {
    .service-card:hover {
        transform: scale(1.02);
    }
    
    .tech-card:hover {
        transform: scale(1.02);
    }
    
    .contact-item:hover {
        transform: scale(1.02);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .floating-shapes,
    .particles {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 50px 0;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .tech-card,
    .stat-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #B8941F;
        --dark-gold: #9A7A1A;
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #ffffff;
        --light-gray: #D3D3D3;
        --dark-text: #1a1a1a;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .service-card,
    .tech-card,
    .contact-form {
        background: var(--light-gray);
        color: var(--dark-text);
    }
}

