/* Global Variables */
:root {
    --primary-color: #88c54d;
    --secondary-color: #1e3932;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

/* HTML & Body Base Structure */
html {
    height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    position: relative !important;
    scrollbar-width: auto !important;
    -webkit-overflow-scrolling: touch !important;
    -ms-overflow-style: scrollbar;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow-y: visible !important;
    overflow-x: hidden;
}

/* Basic Layout Structure */
.site-wrapper {
    flex: 1 0 auto !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
    position: relative !important;
    overflow: visible !important;
}

main {
    flex: 1 0 auto;
}

.page-content {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

/* Container Positioning */
.container {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
}

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Top Bar Styles */
.top-bar {
    font-size: 0.9rem;
    padding: 0.8rem 0;
    background-color: var(--secondary-color) !important;
    margin-bottom: 0;
}

.top-bar .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar .contact-info span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.top-bar .contact-info i {
    margin-right: 0.5rem;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
}

.social-links a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.top-bar .social-links a {
    font-size: 1.2rem;
}

.footer .social-links a {
    font-size: 1.4rem;
}

/* Header Styles */
.header-main {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
    padding: 10px 0;
}

.main-logo {
    max-height: 270px;
    width: auto;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    align-items: center;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background-color: rgba(136, 197, 77, 0.1);
}

.nav-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link span {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.nav-desc {
    font-size: 0.75rem;
    color: #666;
    display: block;
    font-weight: normal;
    transition: opacity 0.3s ease;
}

.nav-link:hover .nav-desc {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0;
    overflow: hidden;
    background-color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: zoomInOut 20s ease-in-out infinite;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text-wrapper {
    position: relative;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    animation: wrapperFade 1s ease-out;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-title-line {
    display: block;
    line-height: 1.2;
    text-shadow: 0 1px 0 #ccc,
                 0 2px 0 #c9c9c9,
                 0 3px 0 #bbb,
                 0 4px 0 #b9b9b9,
                 0 5px 0 #aaa,
                 0 6px 1px rgba(0,0,0,.1),
                 0 0 5px rgba(0,0,0,.1),
                 0 1px 3px rgba(0,0,0,.3),
                 0 3px 5px rgba(0,0,0,.2),
                 0 5px 10px rgba(0,0,0,.25),
                 0 10px 10px rgba(0,0,0,.2),
                 0 20px 20px rgba(0,0,0,.15);
    animation: titleSlide 1s ease-out;
    background: linear-gradient(45deg, #fff 30%, #f0f0f0 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-line.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(136,197,77,0.5),
                 0 0 20px rgba(136,197,77,0.3),
                 0 0 30px rgba(136,197,77,0.2);
    animation: titleSlide 1s ease-out, glowPulse 2s ease-in-out infinite;
    background: linear-gradient(45deg, var(--primary-color) 30%, #a4d675 70%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-title-accent {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-top: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    animation: accentSlide 1s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    animation: subtitleFade 1.5s ease-out;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
}

/* Button Styles */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-cta {
    animation: ctaBounce 1s ease-out;
    transform-origin: center;
    position: relative;
}

.hero-cta .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: all 0.6s;
}

.hero-cta .btn:hover::before {
    left: 100%;
}

.hero-cta .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 20px rgba(136,197,77,0.4);
}

.hero-cta .btn i {
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover i {
    transform: translateX(5px);
}

/* Footer Styles */
footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer {
    background-color: var(--secondary-color) !important;
}

.footer-logo {
    max-height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
}

/* Card Styles */
.service-card {
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

/* Product Card */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Position Fixes */
.fixed-top, .sticky-top {
    position: absolute;
}

.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

/* Animations */
@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wrapperFade {
    from {
        transform: translateY(30px);
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes shimmer {
    100% { left: 100%; }
}

@keyframes titleSlide {
    0% {
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(20px) scale(1.1);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes accentSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.8;
    }
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255,255,255,0.3),
                     0 0 20px rgba(255,255,255,0.2),
                     0 0 30px rgba(255,255,255,0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255,255,255,0.5),
                     0 0 30px rgba(255,255,255,0.3),
                     0 0 40px rgba(255,255,255,0.2);
    }
    100% {
        text-shadow: 0 0 10px rgba(255,255,255,0.3),
                     0 0 20px rgba(255,255,255,0.2),
                     0 0 30px rgba(255,255,255,0.1);
    }
}

@keyframes subtitleFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ctaBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media screen and (min-width: 768px) {
    .fixed-top, .sticky-top {
        position: fixed;
    }
}

@media (max-width: 991.98px) {
    .main-logo {
        max-height: 90px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: center;
        padding: 0.75rem 1rem !important;
        margin: 0;
    }
    
    .nav-link i {
        font-size: 1.2rem;
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .nav-link span {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .nav-desc {
        display: none;
    }

    .btn-success {
        margin-top: 1rem;
        width: 100%;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        padding: 1rem 0;
    }

    .top-bar .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .top-bar .contact-info span {
        font-size: 0.85rem;
    }

    .hero {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}
