/* Premium Dark Theme Styles for Dr. Marcel Noronha Landing Page */

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Smooth Transitions */
a, button, .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar - Dark Theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #1a5047;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Selection Color */
::selection {
    background: #d4af37;
    color: #0a0a0a;
}

::-moz-selection {
    background: #d4af37;
    color: #0a0a0a;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

/* Card Hover Effects */
.group:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

/* Button Glow Effect */
@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.3);
    }
}

.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #f5f1e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Animations */
@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(245, 241, 232, 0.1);
    }
    50% {
        border-color: rgba(212, 175, 55, 0.3);
    }
}

.border-animate {
    animation: borderPulse 3s ease-in-out infinite;
}

/* Decorative Lines */
.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 2rem auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Image Lazy Load Effect */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

img:hover {
    transform: scale(1.02);
}

/* Backdrop Effects */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
    }
    
    .backdrop-blur-md {
        backdrop-filter: blur(20px);
    }
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #d4af37;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Corner Decorations */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #d4af37;
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Prose Styling for Dark Theme */
.prose {
    max-width: 65ch;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose strong {
    color: #1a5047;
    font-weight: 600;
}

/* SVG Animations */
@keyframes drawCircle {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.draw-animation {
    stroke-dasharray: 1000;
    animation: drawCircle 3s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Text Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        #f5f1e8 0%,
        #d4af37 50%,
        #f5f1e8 100%
    );
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.card-shine:hover::before {
    opacity: 1;
    left: 100%;
}

/* Responsive Padding */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-dark {
        background: #000;
    }
    
    .text-cream {
        color: #fff;
    }
}
