/* SDS Software - Modern Interactive Green Theme */

:root {
    --primary-green: #1e7e34;
    --light-green: #2d9a4a;
    --bright-green: #28a745;
    --dark-green: #155724;
    --accent-green: #20c997;
    --accent-gold: #f39c12;
    --light-gold: #f5b041;
    --dark-gold: #d68910;
    --light-bg: #f0f8f5;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #20c997;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', 'Segoe UI', sans-serif;
    background-color: #fafbfa;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
}

/* ==================== NAVBAR ==================== */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.1);
    border-bottom: 3px solid var(--primary-green);
}
}

.navbar.scrolled {
    box-shadow: 0 4px 16px rgba(30, 126, 52, 0.15);
    padding: 0.5rem 0 !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding-left: 40px !important;
}

.navbar-brand:hover {
    transform: none;
}

.navbar-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
    background: none !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

.navbar-brand i {
    margin-right: 8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Items */
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--light-bg);
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Navbar Collapse */
.navbar-collapse {
    overflow: visible !important;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute !important;
    min-width: 250px;
    z-index: 1000 !important;
    display: none;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(30, 126, 52, 0.15);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    margin-top: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block !important;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block !important;
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--accent-gold) !important;
    border-left-color: var(--accent-gold);
    padding-left: 25px;
}

/* ==================== MOBILE NAVBAR STYLING ==================== */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    position: relative;
    height: 40px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e7e34' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 28px;
    height: 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-toggler {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 3px solid var(--primary-green);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease !important;
        transform-origin: top;
    }

    .navbar-collapse.show {
        max-height: calc(100vh - 80px);
        opacity: 1;
        visibility: visible;
        animation: none;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0 !important;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 16px 20px !important;
        color: var(--text-dark) !important;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover {
        background-color: var(--light-bg);
        color: var(--primary-green) !important;
        padding-left: 24px !important;
        transform: translateX(4px);
    }

    .nav-link.active {
        background-color: rgba(30, 126, 52, 0.1);
        color: var(--primary-green) !important;
        border-left: 4px solid var(--primary-green);
        padding-left: 16px !important;
    }

    .nav-link::after {
        display: none !important;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none;
        background-color: var(--light-bg);
        border: none;
        border-radius: 0;
        animation: none;
        margin: 0;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-item {
        padding: 12px 20px;
        border-left: none;
        color: var(--text-dark);
        font-weight: 400;
        font-size: 14px;
    }

    .dropdown-item:hover {
        background-color: rgba(30, 126, 52, 0.1);
        color: var(--primary-green);
        border-left: none;
        padding-left: 20px;
    }

    .btn-primary.d-none.d-lg-block {
        display: none !important;
    }
}

.dropdown-item.active {
    background-color: var(--light-green);
    color: white !important;
}

/* Get Started Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%) !important;
    border: 0 !important;
    font-weight: 600;
    padding: 12px 32px !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    position: relative;
    overflow: hidden;
    color: white !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.4);
    color: white !important;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-section h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    animation: slideInLeft 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
    position: relative;
    z-index: 2;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-header h1 {
    color: white;
    font-size: 40px;
    position: relative;
    z-index: 2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

/* ==================== CARDS ==================== */
.card {
    border-radius: 12px;
    border: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.08);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(30, 126, 52, 0.15);
    transform: translateY(-8px);
}

.card:hover::before {
    transform: scaleX(1);
}

.service-card {
    border-left: 4px solid var(--primary-green);
    padding: 30px;
    background: linear-gradient(135deg, white 0%, var(--light-bg) 100%);
}

.service-card:hover {
    border-left-color: var(--accent-green);
}

.service-card i {
    color: var(--primary-green);
    font-size: 40px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--accent-green);
    transform: scale(1.1);
}

.product-card {
    overflow: hidden;
    background: white;
}

.product-card img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 250px;
    object-fit: cover;
}

.product-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 0;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--bright-green) 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 126, 52, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline-primary:hover {
    background: var(--accent-gold);
    color: white;
}

.btn-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-green);
    animation: fadeInUp 0.6s ease-out;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    margin: 15px auto 0;
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #252d3d 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer h5::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    border-radius: 2px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-gold);
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 156, 18, 0.3);
    margin-right: 12px;
}

.btn-social:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--light-gold);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    padding: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    color: white;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    visibility: hidden;
    opacity: 0;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.4);
}

.back-to-top.show {
    visibility: visible;
    opacity: 1;
}

.back-to-top i {
    font-size: 18px;
    line-height: 1;
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar,
.navbar-brand,
.navbar-logo,
.navbar-logo.wow {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* ==================== ANIMATIONS ==================== */
.wow {
    opacity: 0;
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.wow.fadeInUp {
    animation-name: fadeInUp;
}

.wow.fadeInDown {
    animation-name: fadeInDown;
}

.wow.fadeInLeft {
    animation-name: slideInLeft;
}

.wow.fadeInRight {
    animation-name: slideInRight;
}

.wow.zoomIn {
    animation-name: zoomIn;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ==================== FORMS ==================== */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* ==================== ALERTS ==================== */
.alert {
    border-radius: 8px;
    border: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-category {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        margin: 5px 0;
    }
    
    .dropdown-menu {
        position: static !important;
        background-color: var(--light-bg);
        box-shadow: none;
        border-left: 3px solid var(--primary-green);
        border-radius: 0;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        filter: none !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 22px;
        padding-left: 15px !important;
    }
    
    .navbar-logo {
        max-width: 100%;
        height: auto;
        max-height: 50px !important;
        min-width: 45px;
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        filter: none !important;
    }
    
    .hero-section {
        min-height: 350px;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        max-width: 45px;
        max-height: 45px;
        padding: 0 !important;
        line-height: 1 !important;
        flex-shrink: 0;
        bottom: 20px;
        right: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Links */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--dark-gold);
}

/* ==================== BOOTSTRAP OVERRIDES ==================== */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%) !important;
    border-color: var(--accent-gold) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-gold) 0%, var(--accent-gold) 100%) !important;
    border-color: var(--dark-gold) !important;
}

.btn-outline-primary {
    color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: white !important;
}

/* Shadow Effects */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
