/* 
   ERCOFF.ID - Premium Beverage & Event Service Website
   Theme: Deep Forest Green, Emerald, Luxury, Gradient, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Primary Palette */
    --color-bg-dark: #021a12;
    /* Very dark green, almost black */
    --color-primary: #064e3b;
    /* Deep rich emerald */
    --color-accent: #10b981;
    /* Vibrant emerald for glows */
    --color-gold: #d4af37;
    /* Gold for premium accents */
    --color-text-light: #f3f4f6;
    --color-text-dim: #9ca3af;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    --gradient-text: linear-gradient(to right, #ffffff, #a7f3d0);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px 20px;
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h2 span,
h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Navbar Styles
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(2, 26, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.btn-nav {
    padding: 10px 25px;
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    color: var(--color-accent) !important;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark) !important;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Background Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 50vw;
    height: 50vw;
    background: var(--gradient-glow);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Hero Products Showcase */
.hero-products {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    min-width: 300px;
    padding: 2rem 0;
}

.product-card {
    position: relative;
    width: 220px;
    transition: transform 0.5s ease;
}

.product-card:first-child {
    margin-top: 50px;
}

.product-card.main-card {
    z-index: 2;
    transform: scale(1.1);
}

.product-card:hover {
    transform: translateY(-20px) scale(1.05);
}

.product-card.main-card:hover {
    transform: translateY(-20px) scale(1.15);
}

.product-img {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.product-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 78, 59, 0.9);
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid var(--color-accent);
    text-align: center;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.label-title {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.label-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===========================
   Grids (Team, Pricing, Gallery)
   =========================== */
.section {
    padding: var(--section-padding);
}

.team-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Team Card Specifics */
.team-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--color-text-dim);
}

/* ===========================
   About / Story Section
   =========================== */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
}

.about-image {
    flex: 1;
    position: relative;
}

.img-frame {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-primary));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.img-frame img {
    border-radius: 15px;
    display: block;
    width: 100%;
    filter: sepia(20%) contrast(110%);
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--color-text-dim);
    font-size: 1.05rem;
    text-align: justify;
}

.about-text strong {
    color: white;
    font-weight: 600;
}

.about-text em {
    color: var(--color-gold);
    font-style: italic;
}

.about-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.2rem;
    font-style: italic;
    color: white;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text p {
        text-align: left;
    }
}

/* Pricing Card Specifics */
.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card .badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-gold);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1rem 0 2rem;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.pricing-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li i {
    color: var(--color-accent);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 300px;
    background-color: #0a2e24;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
}

/* Slider Styles */
.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===========================
   Partners Marquee
   =========================== */
.partners-section {
    padding: 50px 0;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee-content img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    /* Make logos white/silver */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%) brightness(1);
    /* Restore color on hover */
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move by 50% because we doubled the content */
}

/* ===========================
   CSR Section
   =========================== */
.csr-section {
    background: linear-gradient(to top, rgba(2, 26, 18, 0.8), rgba(6, 78, 59, 0.2));
    position: relative;
}

.csr-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.csr-mission {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.csr-mission strong {
    color: white;
    font-weight: 600;
}

.csr-mission em {
    color: var(--color-gold);
    font-style: italic;
}

.csr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.csr-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.csr-item:hover {
    transform: translateY(-10px);
}

.csr-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.csr-item:hover img {
    transform: scale(1.1);
}

/* ===========================
   News/Media Section
   =========================== */
.news-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-left: 5px solid var(--color-accent);
}

.news-source {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-content p {
    color: var(--color-text-dim);
    margin-bottom: 2rem;
}

/* ===========================
   Responsive Optimization
   =========================== */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

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

    .about-container {
        gap: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
        /* Reduce padding on mobile */
    }

    /* Navbar */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 80%;
        /* Wider menu for mobile */
        background: rgba(2, 26, 18, 0.98);
        /* Less transparent for readability */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding-bottom: 50px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
        /* Stagger effect */
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hamburger.active .line {
        background: var(--color-accent);
    }

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

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

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

    /* Hero */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Put image on top or bottom? User said neat. Let's keep product below text usually, or reverse? Standard is text top. */
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-products {
        transform: scale(0.9);
        /* Slightly smaller products on mobile */
        margin-top: 0;
    }

    /* Grids */
    .team-grid,
    .pricing-grid,
    .gallery-grid,
    .csr-grid {
        grid-template-columns: 1fr;
        /* Single column for neatness on phone */
        gap: 2rem;
    }

    /* About */
    .about-container {
        flex-direction: column;
    }

    .about-text p {
        text-align: left;
        /* Easier to read on mobile than justify */
    }

    .about-quote {
        font-size: 1rem;
    }

    /* Marquee */
    .marquee-content {
        gap: 2rem;
        /* Closer logos on mobile */
    }

    .marquee-content img {
        height: 40px;
        /* Smaller logos */
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .product-card {
        width: 160px;
        /* Smaller cards to fit 2 side-by-side if needed, or stack */
    }

    .hero-products {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ===========================
   Footer
   =========================== */
/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, rgba(6, 78, 59, 0.2), rgba(2, 26, 18, 0.8));
    position: relative;
}

.contact-grid {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-container {
    flex: 1.5;
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.form-group select option {
    background: var(--color-bg-dark);
    color: white;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    width: 100%;
}

@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        width: 100%;
    }
}

.contact-icon {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2);
    color: var(--color-gold);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin: 0;
}

.contact-card p {
    color: var(--color-text-dim);
    font-size: 1rem;
}

.contact-btn {
    margin-top: 1rem;
    width: 100%;
}

footer {
    background: #01110c;
    padding: 80px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    color: var(--color-accent);
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

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

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

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