:root {
    --navy: #0f172a;
    --charcoal: #334155;
    --white: #ffffff;
    --off-white: #f8fafc;
    --accent: #3b82f6;
    --gold: #d4af37;
    --gold-hover: #b8962e;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .logo-text {
    color: var(--navy);
}

.logo-text .accent {
    color: var(--gold);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

header.scrolled .nav-menu a {
    color: var(--charcoal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

header.scrolled .hamburger span {
    background: var(--navy);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.942) 0%, rgba(7, 11, 18, 0.884) 100%), 
                url(images/mewar_dpr.png) top/cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
    transform: scale(1.1);
    animation: subtleZoom 20s infinite alternate;
}

@keyframes subtleZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.15); }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.accent-text {
    color: var(--gold);
}

.subheadline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: var(--navy);
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Businesses Section */
.businesses {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--charcoal);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.business-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.business-card:hover {
    transform: translateY(-10px);
}

.business-card#furniture:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.1);
}

.business-card#milk:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.25), 0 0 20px rgba(16, 185, 129, 0.1);
}

.business-card#tractor:hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.25), 0 0 20px rgba(245, 158, 11, 0.1);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.business-card:hover .icon-box {
    background: var(--navy);
    color: var(--gold);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.business-card:hover .card-link {
    gap: 0.75rem;
    color: var(--gold);
}

/* Contact Section */
.contact {
    background: var(--navy);
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-item h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #0c0010;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-logo p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--navy);
        padding: 5rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-menu a {
        color: var(--white) !important;
        font-size: 1.1rem;
    }

    .hero-bg {
        background-attachment: scroll;
    }
}