/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(20px) rotate(-3deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Floating Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation: float-reverse 7s ease-in-out infinite;
}

/* Geometric Background Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(246, 200, 85, 0.15), rgba(246, 200, 85, 0.05));
    animation: rotate-slow 30s linear infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: -50px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.geo-square {
    position: absolute;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.08), rgba(10, 25, 47, 0.03));
    animation: rotate-slow 40s linear infinite;
}

.square-1 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 15%;
    border-radius: 30px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(246, 200, 85, 0.1);
    animation: rotate-slow 35s linear infinite;
}

.triangle-1 {
    top: 60%;
    left: 5%;
}

/* Service Cards Hover Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 200, 85, 0.1), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Gallery Item Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Selection Color */
::selection {
    background: #f6c855;
    color: #0a192f;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Focus Effects */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(246, 200, 85, 0.3);
}

/* Button Press Effect */
button:active {
    transform: scale(0.98);
}

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