/* Custom styles for Modern Ink */

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

/* Geometric animations for hero */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-2 {
    width: 200px;
    height: 200px;
    background: #fde68a;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-3 {
    width: 120px;
    height: 120px;
    background: white;
    top: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    opacity: 0.1;
    border-radius: 16px;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: rotate-slow 20s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.1);
    bottom: 25%;
    right: 8%;
    animation: float 9s ease-in-out infinite;
}

.geo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    bottom: 10%;
    left: 20%;
    animation: rotate-slow 15s linear infinite reverse;
}

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

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

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For browsers that support prefers-reduced-motion, disable transitions */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-circle,
    .geo-square,
    .geo-triangle,
    .geo-ring {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5ef;
}

::-webkit-scrollbar-thumb {
    background: #e97257;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f7ccbb;
    color: #73251a;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

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

/* Prevent layout shift on images */
img {
    object-fit: cover;
}
