/* Modern color scheme */
:root {
    --primary: #2c8a4f;
    --primary-dark: #236b3f;
    --accent: #00f5d4;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gradient: linear-gradient(120deg, var(--primary), var(--accent));
    /* --bs-primary-rgb: 44, 138, 79; */
    --bs-primary-rgb: 23, 191, 144;
}

/* General styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* Modern Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    margin-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
}

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

/* Cards with hover effect */
.impact-card {
    border: none;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Sections with parallax */
section {
    padding: 40px 0;
    position: relative;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Modern buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: all 0.3s ease;
    z-index: -1;
}

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

/* Image handling with modern effects */
.img-fluid {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.rounded {
    border-radius: 15px !important;
}

.shadow-sm {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Footer with modern gradient */
footer {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
        background-attachment: scroll;
    }
    
    .impact-card {
        margin-bottom: 20px;
    }
}

/* Product page styles */
.product-hero {
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg');
    opacity: 0.1;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    background: white;
    position: relative;
}

/* Technology page styles */
.tech-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/assets/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    border-radius: 15px;
    position: relative;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
}

.module-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Animation for numbers */
.number-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 1.2em;
}

/* News page styles */
.news-hero {
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    margin: 20px 0 50px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg');
    opacity: 0.1;
}

.post-preview {
    transition: all 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-5px);
}

.post-preview .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-preview .post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-preview .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-preview:hover .post-image img {
    transform: scale(1.05);
}

.post-preview .card-body {
    padding: 1.5rem;
}

.post-preview .card-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-preview .card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.post-preview .card-title a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-meta i {
    color: var(--primary);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 7rem;
    overflow: hidden;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.post-preview .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.post-preview .btn-primary i {
    transition: transform 0.3s ease;
}

.post-preview .btn-primary:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 0;
        margin: 20px 0 30px;
    }
    
    .post-preview .post-image {
        height: 180px;
    }
    
    .post-preview .card-body {
        padding: 1.25rem;
    }
}

/* Post layout styles */
.post-hero {
    position: relative;
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg');
    opacity: 0.1;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.post-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    z-index: 1;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.post-hero .display-4 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.post-hero .post-meta {
    font-size: 1.1rem;
    opacity: 0.9;
}

.post-hero .post-meta i {
    color: var(--accent);
}

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

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin: 2.5rem 0 1.5rem;
    color: var(--dark);
    font-weight: 600;
}

.post-content h3 {
    margin: 2rem 0 1rem;
    color: var(--dark);
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .post-hero {
        padding: 60px 0;
    }
    
    .post-hero .display-4 {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

/* Post CTA styles */
.post-cta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-cta .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    border-width: 1.5px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.post-cta .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.post-cta .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    background-color: transparent;
}

.post-cta .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.post-cta .external-link-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    background: var(--primary);
    color: white;
    padding: 3px;
    border-radius: 3px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.post-cta .btn-outline-primary:hover .external-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

.post-cta .btn-outline-primary:hover {
    transform: translateX(3px);
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(44, 138, 79, 0.2);
}

.post-cta .btn-outline-primary:active,
.post-cta .btn-outline-secondary:active {
    transform: translateX(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.post-cta .btn i {
    transition: transform 0.2s ease;
    font-size: 0.9em;
}

.post-cta .btn-outline-primary i {
    margin-left: 0.5rem;
}

.post-cta .btn-outline-secondary i {
    margin-right: 0.5rem;
}

.post-cta .btn:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .post-cta {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }
    
    .post-cta .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .post-cta .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* About page styles */
.about-hero {
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg');
    opacity: 0.1;
}

.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

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

.feature-list {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.achievement-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .number-highlight {
    transform: scale(1.1);
}

.achievement-card .number-highlight {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/assets/images/contact-hero.webp');
    background-size: cover;
    color: white;
    padding: 6rem 0;
    margin-top: -2rem;
}

.contact-info {
    height: 100%;
}

.social-links a {
    font-size: 1.5rem;
    color: #0066cc;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #004999;
}

.contact-form {
    background: white;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.25);
}

.contact-form .btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    padding: 0.5rem 2rem;
}

.contact-form .btn-primary:hover {
    background-color: #004999;
    border-color: #004999;
}

/* Contact Page Styles */
.quick-contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.contact-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-floating > label {
    padding-left: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > textarea.form-control {
    height: 150px;
}

.social-links .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    line-height: 45px;
    border-radius: 50%;
    text-align: center;
}

.map-container {
    overflow: hidden;
    border-radius: 15px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
}

/* Form validation styles */
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
} 