/* Nicki Thiim Racing Site - Custom Styles */

/* Hero Section */
.nicki-thiim-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Marquee Section */
.marquee-wrapper {
    width: 100%;
}

/* Aston Martin Section */
.aston-martin-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Race Calendar */
.race-calendar-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-group {
    margin: 2rem 0;
}

.calendar-group p {
    margin: 0.5rem 0;
}

.calendar-group a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.calendar-group a:hover {
    border-bottom-color: white;
}

/* Quote Section */
.quote-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-section blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 2rem;
}

/* Social Feed */
.social-feed-section {
    min-height: 60vh;
}

.instagram-grid {
    transition: all 0.3s ease;
}

.instagram-grid>div {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-title-section {
    display: flex;
    align-items: flex-start;
    padding-top: 4vw;
}

.contact-title-section h1 {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    display: inline-block;
}

/* Social Links Footer */
.social-links-footer {
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.social-links-footer h2 a {
    position: relative;
    display: inline-block;
}

.social-links-footer h2 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.social-links-footer h2 a:hover::after {
    width: 100%;
}

/* Overlay Effects */
.overlay {
    transition: opacity 0.3s ease;
}

section:hover .overlay {
    opacity: 0.9 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        padding: 8vw 4vw !important;
    }

    .quote-section blockquote {
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .social-links-footer>div>div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .contact-title-section h1 {
        font-size: 2rem !important;
        padding: 0.5rem 1rem;
    }

    section {
        padding: 6vw 4vw !important;
    }
}

/* Animation for sections on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for images */
section[style*="background-image"] {
    background-color: #1a1a1a;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .marquee-wrapper,
    .social-feed-section,
    .social-links-footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}