/* Additional styles for the home page */

/* Import Hanken Grotesk font */
@font-face {
    font-family: 'Hanken Grotesk';
    src: url('/static/fonts/hankenGrotesk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Ensure smooth animations */
* {
    box-sizing: border-box;
}

/* Background grid animation */
#grid-svg {
    transition: opacity 0.3s ease;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    pointer-events: none;
    visibility: hidden;
}

#mobile-menu.menu-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* Icon transitions */
#hamburger-icon,
#close-icon {
    transition: all 0.2s ease;
}

/* Menu button hover effect */
#mobile-menu-button:hover {
    transform: scale(1.05);
}

/* Menu items hover effects */
#mobile-menu a {
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    transform: translateX(4px);
}

/* Backdrop blur enhancement */
nav {
    background: rgba(15, 15, 35, 0.8);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Grid line styles */
.grid-line {
    stroke: #0ea5e9;
    stroke-width: 0.15;
    opacity: 0.1;
}

.grid-point {
    fill: #0ea5e9;
    opacity: 0.2;
}

/* Responsive text scaling */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
}

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

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Loading animation for grid */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#background {
    animation: fadeIn 1s ease-in-out;
} 