/* Custom styles — overrides and additions beyond Tailwind */

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

/* Ensure navbar doesn't overlap content */
section[id] {
    scroll-margin-top: 64px;
}

/* Geometric shapes animation on scroll */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle,
    .geo-rect,
    .geo-triangle {
        animation: float 6s ease-in-out infinite;
    }

    .geo-circle:nth-child(odd) {
        animation-delay: -2s;
        animation-duration: 8s;
    }

    .geo-rect {
        animation: spin-slow 20s linear infinite;
    }

    .geo-triangle {
        animation: float 7s ease-in-out infinite;
        animation-delay: -3s;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-12px); }
    }

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #d8b4fe;
    color: #3b0764;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

/* Print styles */
@media print {
    nav, .geo-circle, .geo-rect, .geo-triangle {
        display: none;
    }

    .hero-gradient {
        background: #581c87 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
