/* 
 * Gnosys Digital - Premium Theme Styles
 * Color Palette: Primary Blue, Green, Light Accents
 * Typography: Montserrat (Headings) & Poppins (Body)
 */

:root {
    --g-primary: #2A7B9B;
    --g-secondary: #5CB85C;
    --g-text: #2E2E2E;
    --g-accent: #004E89;
    --g-light-blue: #69C4E2;
    --g-medium-blue: #276FC2;
    --g-red: #D81313;
    
    --g-bg-light: #F8FAFC;
    --g-bg-white: #FFFFFF;
    --g-bg-dark: #0F172A;
    --g-border: #E2E8F0;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--g-text);
    background-color: var(--g-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--g-accent);
}

a {
    color: var(--g-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--g-accent);
}

/* Base Components */
.btn-gnosys {
    background-color: var(--g-accent);
    color: var(--g-bg-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(0, 78, 137, 0.2);
}

.btn-gnosys:hover {
    background-color: var(--g-text);
    color: var(--g-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-gnosys-outline {
    background-color: transparent;
    color: var(--g-accent);
    border: 2px solid var(--g-accent);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gnosys-outline:hover {
    background-color: var(--g-accent);
    color: var(--g-bg-white);
}

/* Navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g-border);
    transition: all 0.3s ease;
    padding: 15px 0;
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    top: 100% !important;
    margin-top: 0.5rem !important;
    transform: translateY(0) !important;
    z-index: 1050 !important;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--g-bg-light);
    color: var(--g-primary);
    padding-left: 1.2rem;
}

.navbar-glass.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--g-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--g-primary);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Sections */
.section-padding {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    scroll-margin-top: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
}

.section-bg-white {
    background-color: var(--g-bg-white);
    border-top: 1px solid var(--g-border);
}

.section-bg-light {
    background-color: var(--g-bg-light);
    border-top: 1px solid var(--g-border);
}

/* Ensure sections are visible */
#solutions-goal {
    display: block !important;
    visibility: visible !important;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--g-primary);
    border-radius: 3px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.sub-heading {
    color: var(--g-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Search Box Styles */
.search-wrapper {
    position: relative;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 250px;
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--g-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    outline: none;
    border-color: var(--g-primary);
    box-shadow: 0 0 0 2px rgba(63, 95, 138, 0.1);
    width: 300px;
}

.search-submit {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--g-text);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: var(--g-primary);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    z-index: 1;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 29, 61, 0.85);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Hero Button Styles */
.btn-hero-primary {
    background-color: #fff;
    color: var(--g-accent);
    border: 2px solid #fff;
}

.btn-hero-primary:hover {
    background-color: var(--g-accent);
    color: #fff;
    border-color: var(--g-accent);
}

.btn-hero-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero-outline:hover {
    background-color: #fff;
    color: var(--g-accent);
}

/* Cards & Grid Items */
.gnosys-card {
    background: var(--g-bg-white);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--g-border);
    height: 100%;
}

.gnosys-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--g-primary);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(42, 123, 155, 0.1);
    color: var(--g-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.gnosys-card:hover .icon-wrapper {
    background: var(--g-primary);
    color: #fff;
}

.product-card {
    background: var(--g-bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--g-border);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--g-border);
}

.product-body {
    padding: 20px;
}

/* Footer */
.footer-area {
    background-color: var(--g-bg-dark);
    color: #A0AEC0;
    padding: 80px 0 30px;
}

.footer-area h5 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #A0AEC0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--g-primary);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--g-primary);
    transform: translateY(-3px);
}

/* Utility Animations */
.floating-element {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-padding { padding: 50px 0; }
    .hero-section { padding-top: 100px; min-height: 80vh; padding-bottom: 60px; }
    
    /* Search box mobile */
    .search-input {
        width: 180px;
    }
    .search-input:focus {
        width: 200px;
    }
    
    /* Hero buttons mobile */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    /* Impact numbers mobile */
    .impact-number .display-4 {
        font-size: 2.5rem;
    }
    
    /* Cards mobile */
    .gnosys-card {
        padding: 20px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title { 
        font-size: 1.5rem; 
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .hero-subtitle { 
        font-size: 0.95rem; 
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .section-padding { padding: 35px 0; }
    .section-title { margin-bottom: 1.5rem; }
    
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    /* Hide some elements on very small screens */
    .search-wrapper {
        display: none;
    }
    
    /* Footer mobile */
    .footer-area {
        padding: 60px 0 20px;
    }
}

/* Blog Frontend Styles */
.blog-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.blog-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-card-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0056b3;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.blog-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-subtitle {
    font-size: 0.95rem;
    color: var(--g-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-weight: 700;
    color: var(--g-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-read-more:hover {
    gap: 10px;
    color: var(--g-accent);
}

.blog-card-footer {
    padding: 15px 25px;
    background: #fff !important;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-footer i {
    color: var(--g-primary);
}

/* Article Page */
.article-header {
    padding: 120px 0 60px;
    background: #0f172a;
    color: #fff;
}

.article-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.article-content {
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
}

.article-content h1, .article-content h2, .article-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1e293b;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}


.bg-light { background-color: #f8fafc !important; }
.bg-dark { background-color: #0f172a !important; color: #fff !important; }

/* Contact Page Styles */
.contact-header {
    padding: 100px 0 0;
    background: var(--g-bg-light);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 60px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-section {
    padding: 60px 0 100px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--g-primary);
    box-shadow: 0 0 0 3px rgba(42, 123, 155, 0.1);
}

.contact-info-wrapper {
    padding-left: 30px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(42, 123, 155, 0.1);
    color: var(--g-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-info-item h6 {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--g-bg-dark);
}

.contact-info-item p {
    margin-bottom: 0;
    color: #64748b;
}

.contact-info-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--g-primary);
}

/* Enhanced Form Styles */
.contact-form {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ERP Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    position: absolute;
    top: 0;
    right: 100%;
    margin-top: -1px;
    min-width: 280px;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-submenu:hover .submenu,
.dropdown-submenu .submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu .dropdown-toggle.erp-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}

.dropdown-submenu .dropdown-toggle.erp-toggle .fa-chevron-right {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.dropdown-submenu:hover .dropdown-toggle.erp-toggle .fa-chevron-right {
    transform: rotate(90deg);
}

.dropdown-submenu .submenu .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-submenu .submenu .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-submenu .submenu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0a2540;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .dropdown-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.05);
        margin-left: 20px;
        margin-top: 5px;
        min-width: auto;
    }
    
    .dropdown-submenu .dropdown-toggle.erp-toggle .fa-chevron-right {
        transform: rotate(90deg);
    }
    
    .dropdown-submenu .submenu .dropdown-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.75rem 1rem;
    }
}

.contact-form .form-label {
    color: var(--g-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.contact-form .btn-gnosys {
    background: var(--g-accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-gnosys:hover {
    background: var(--g-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Form Validation Styles */
.contact-form .is-invalid {
    border-color: var(--g-red);
}

.contact-form .invalid-feedback {
    color: var(--g-red);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Alert Styles */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
