/* Modern Dark Theme - Animations & Styling */

body {
    background: #3a3a3a;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

p {
    color: #d0d0d0;
}

/* Navigation Styles */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#nav.sticky {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-container .logo:hover {
    color: #b0b0b0;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    border: none;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

#main header.major,
#main footer.major {
    background: #2e2e2e;
    color: #ffffff;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header Animations */
.logo-img {
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

.fade-in-delay {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    gap: 5px;
    transition: border-color 0.3s ease;
}

.scroll-down:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.scroll-down span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Fade In Sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Sections */
.category-section {
    padding: 4rem 0;
    background: #252525;
}

.category-section:nth-child(even) {
    background: #252525;
}

.section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #6e6e6e;
}

.coming-soon {
    text-align: center;
    font-size: 1.5rem;
    color: #9e9e9e;
    font-style: italic;
    padding: 3rem 0;
}

/* Horse Cards Grid Layout */
.box.alt.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: 2 columns */
@media screen and (min-width: 768px) {
    .box.alt.container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Horse Cards */
.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    max-width: 400px;
    max-height: 300px;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.horse-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.image-wrapper:hover .horse-image {
    transform: scale(1.1);
}

/* Override the side-by-side layout from main.css */
.feature.left {
    display: block;
    text-align: center;
    height: auto !important;
    min-height: auto !important;
}

.feature.left .image,
.feature.left .image-wrapper {
    float: none;
    width: 100%;
    display: block;
    height: auto;
    position: static;
}

.feature.left .image img {
    position: static;
    min-height: auto;
    min-width: auto;
}

.feature.left .content {
    background: #3d3d3d;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: block;
}

.feature.left .content:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature.left .content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.horse-details {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.horse-details th {
    color: #b0b0b0;
    font-weight: 600;
    text-align: left;
    padding-right: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.horse-details td {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.horse-description {
    color: #d0d0d0;
    line-height: 1.8;
    margin: 1.5rem 0;
}

.horse-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.5rem 0;
}

/* Buttons */
.button {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 53, 53, 0.3);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.button.primary {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
}

.button.primary:hover {
    background: linear-gradient(135deg, #424242 0%, #2e2e2e 100%);
}

/* Map Container */
.map-container {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    background: #333333;
    border: 2px solid #444444;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #404040;
    border-color: #888888;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 110, 110, 0.1);
}

/* Icons */
.icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b3b3b;
    transition: all 0.3s ease;
    border: none;
}

.icons a:hover {
    background: #ececec;
    color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 980px) {
    #header {
        padding-top: 80px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Footer Overrides */
    #footer {
        background-color: #1a1a1a;
        color: #d0d0d0;
    }

    #footer h2,
    #footer h3,
    #footer h4 {
        color: #ffffff;
    }

    #footer .copyright {
        color: #888888;
    }

    #footer .copyright li {
        border-left-color: #444;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-img {
        width: 200px;
        height: 200px;
    }
}

@media screen and (max-width: 736px) {
    .section-title {
        font-size: 1.5rem;
    }

    .horse-price {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

/* Footer Overrides */
#footer {
    background-color: #1a1a1a;
    color: #d0d0d0;
}

#footer h2,
#footer h3,
#footer h4 {
    color: #ffffff;
}

#footer .copyright {
    color: #888888;
}

#footer .copyright li {
    border-left-color: #444;
}