/* CSS Reset & Base Styles (Copied from index.css) */
* {
    margin: 0;
    padding: 0;
    max-width: 100vw;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Custom Properties (Updated for KG Suppliers theme) */
:root {
    --primary-color: #1A3A5A; /* Deep Blue */
    --secondary-color: #4A6B8C; /* Muted Gray-Blue */
    --accent-color: #D4AF37; /* Rich Amber/Gold */
    --text-dark: #222222; /* Dark Charcoal */
    --text-light: #666666; /* Lighter Gray */
    --bg-light: #F5F5F5; /* Very Light Gray Background */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;

    /* Modern Font Families */
    --font-heading: "Playfair Display", serif;
    --font-subheading: "Montserrat", sans-serif;
    --font-body: "Inter", sans-serif;
}

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

/* Animation Keyframes (Copied from index.css) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Above lightbox but below any super high z-index elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal.closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    animation: slideInUp 0.3s ease-out forwards;
}

.modal-content.animate-on-scroll {
    opacity: 1; /* Override animate-on-scroll's initial opacity */
    transform: translateY(0); /* Override animate-on-scroll's initial transform */
}

.modal-close-btn,
.event-modal-close-btn {
    color: var(--text-light);
    font-size: 30px;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover,
.modal-close-btn:focus,
.event-modal-close-btn:hover,
.event-modal-close-btn:focus {
    color: var(--accent-color);
}

.success-modal h2,
.event-details-modal h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.success-modal h2 .fa-check-circle {
    color: var(--primary-color);
    margin-right: 10px;
}

.success-modal p,
.event-details-modal p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Event Details Modal Specifics */
.event-details-modal .modal-content {
    max-width: 600px;
    padding: 30px;
}

/* Utility Classes (Copied from index.css) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-light); /* Default background, can be overridden */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Animation Classes (Copied from index.css) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    max-width: 100vw;
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Header Styles (Copied from index.css) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 25px 0;
    max-width: 100vw;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
}

.logo {
    height: 70px;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

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

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-subheading);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.header.scrolled .nav-link::after {
    background: var(--primary-color);
}

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

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

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

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

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

.nav-menu.active+.hamburger span,
.hamburger.active span {
    background: var(--text-dark);
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Hero Section (Copied from index.css) */
.hero {
    height: 100vh;
    background: linear-gradient(135deg,
            rgba(26, 58, 90, 0.8), /* Using new primary color */
            rgba(74, 107, 140, 0.6)), /* Using new secondary color */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f0f8f0" width="1200" height="800"/><g fill="%23c8e6c9"><path d="M0,400 Q300,200 600,400 T1200,400 V800 H0 Z"/></g><g fill="%23a5d6a7"><circle cx="200" cy="200" r="80"/><circle cx="800" cy="150" r="60"/><circle cx="1000" cy="300" r="100"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(26, 58, 90, 0.6), /* Using new primary color */
            rgba(74, 107, 140, 0.4)); /* Using new secondary color */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-subheading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: italic;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Order Section (formerly Contact) */
.order {
    background: var(--bg-light); /* Light background for the form section */
}

.order-content {
    display: flex; /* Use flex for centering the form */
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.order-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px; /* Limit form width */
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-subheading);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 90, 0.1); /* Using new primary color */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Section (Simplified) */
.contact {
    background: var(--white); /* White background for this section */
}

.contact-content-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    justify-items: center; /* Center items in the grid */
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-light); /* Light background for contact items */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%; /* Ensure it takes full grid column width */
    max-width: 400px; /* Limit max width for larger screens */
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.5;
}


/* Footer (Copied from index.css) */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link:hover i {
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
}

/* Scroll to Top Button (Copied from index.css) */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    font-family: var(--font-subheading);
    font-weight: 600;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design (Copied from index.css and adjusted for new structure) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 10px;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* Adjust based on header height */
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px; /* Reduced padding for mobile menu */
        transition: var(--transition);
        z-index: 1000;
        gap: 15px;
        display: none; /* Hide by default, show with JS 'active' */
    }

    .nav-menu.active {
        left: 0;
        display: flex;
    }

    .nav-menu.active .nav-link {
        color: var(--text-dark);
        padding: 10px 20px;
        display: block;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .header.scrolled .nav-menu {
        background: var(--white);
    }

    .header.scrolled .nav-link {
        color: var(--text-dark);
    }

    .header.scrolled .nav-link::after {
        background: var(--primary-color);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .order-form {
        padding: 30px 20px;
    }

    .contact-content-simple {
        grid-template-columns: 1fr; /* Stack contact items on small screens */
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
        padding: 0 10px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-buttons {
        gap: 15px;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .order-form {
        padding: 25px 15px;
    }
}
