/* Custom Styles for Lucas Rosa Portfolio */

:root {
    --color-dark: #0a0a0a;
    --color-slate: #1a1a1a;
    --color-gold: #d4af37;
    --color-gold-dark: #9d8c3d;
}

* {
    scroll-behavior: smooth;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #d4af37, #9d8c3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease-in-out;
}

/* Dark Mode Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Audio Player Styling */
audio {
    width: 100%;
    outline: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(157, 140, 61, 0.05));
}

audio::-webkit-media-controls-panel {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #d4af37;
}

/* Card Hover Effects */
.group:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* 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);
    }
}

/* Section Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Icon Effects */
.icon-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Calendly Custom Styling */
.calendly-inline-widget {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(26, 26, 26, 0.5);
}

/* Calendly responsive height */
@media (max-width: 768px) {
    .calendly-inline-widget {
        min-height: 750px !important;
        height: 800px !important;
    }
}


/* Video Container */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Text Shadow for Hero */
.text-shadow-gold {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Link Underline Animation */
a {
    position: relative;
}

a:not(.btn):not([class*="text-gold"]):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease-in-out;
}

a:not(.btn):not([class*="text-gold"]):hover:after {
    width: 100%;
}

/* Print Styles */
@media print {
    header, #mobile-menu {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
                0 0 0 4px rgba(37, 211, 102, 0.15);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #2eeb75 0%, #25D366 100%);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5),
                0 0 0 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-float .fab {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Tooltip no botão WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 8px 14px;
    background: #1a1a1a;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Floating WhatsApp Button Animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

/* Floating Button Responsive */
@media (max-width: 640px) {
    .fixed.bottom-8.right-8 {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* Backdrop Blur Support */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-md {
        -webkit-backdrop-filter: blur(12px);
    }
}
