/* ===== Custom Styles for Melissa Reyes Website ===== */

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

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

/* Circle shapes */
.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent);
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    bottom: -10%;
    right: -10%;
    animation: float-slow 25s ease-in-out infinite;
}

.shape-circle-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2), transparent);
    border-radius: 50%;
    top: -5%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

/* Square shapes */
.shape-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    top: 25%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(192, 132, 252, 0.3);
    bottom: 20%;
    left: 8%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite reverse;
}

/* Triangle shape */
.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(251, 191, 36, 0.2);
    top: 40%;
    left: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

/* Ring shape */
.shape-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(233, 213, 255, 0.2);
    border-radius: 50%;
    top: 15%;
    right: 20%;
    animation: float-slow 16s ease-in-out infinite;
}

/* Dots pattern */
.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    left: 15%;
    opacity: 0.3;
}

/* Keyframe animations */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(59, 7, 100, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu */
.mobile-nav-link {
    display: block;
}

/* Button hover effects */
a[href="#hero"],
a[href="#services"],
a[href="#about"],
a[href="#driving"],
a[href="#languages"],
a[href="#contact"] {
    text-decoration: none;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #9333ea !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(251, 191, 36, 0.2);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .geo-shape {
        animation-duration: 20s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .reveal {
        animation: none;
        transition: none;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .geo-shape,
    .reveal[data-reveal] {
        display: none;
    }
}
