:root {
    --primary-blue: #0f3460;
    --accent-green: #20bf6b;
    --gradient-bg: linear-gradient(135deg, #0f3460 0%, #16a085 100%);
    --gradient-text: linear-gradient(45deg, #0f3460, #16a085);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

body {
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Navbar Customization */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--primary-blue) !important;
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    margin-left: 15px;
    position: relative;
    /* Ensure flex display to align caret properly if needed */
    display: flex; 
    align-items: center;
}

/* Use ::before for underline to avoid conflict with Bootstrap's dropdown caret ::after */
.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-green);
    transition: width 0.3s;
}

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

/* Dropdown Customization */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px;
    margin-top: 15px; /* Spacing from navbar */
    background-color: #fff;
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(32, 191, 107, 0.1); /* Soft Green */
    color: var(--primary-blue);
    transform: translateX(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-custom {
    background-image: var(--gradient-bg);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 160, 133, 0.3);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh; /* Changed from height to min-height for safety */
    display: flex;
    align-items: center;
    background-color: #f8fbff;
    padding-top: 80px; /* Navbar space */
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(32, 191, 107, 0.1) 0%, rgba(248, 251, 255, 0) 70%);
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-bg-gradient {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(32, 191, 107, 0.1) 0%, rgba(248, 251, 255, 0) 80%);
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-3d-wrapper {
        height: 350px; /* Reduced height for mobile */
    }

    .hero-content .d-flex {
        justify-content: center;
    }

    .display-3 {
        font-size: 2.2rem;
    }
}


.hero-content {
    position: relative;
    z-index: 5;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-soft-primary {
    background-color: rgba(15, 52, 96, 0.1) !important;
    color: var(--primary-blue) !important;
}

/* 3D Model Placeholder & Blobs */
.hero-3d-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-model {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft shadow instead of border */
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    overflow: hidden; /* Keep model inside rounded corners */
}

.blob-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: 1;
    animation: blob-bounce 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(15, 52, 96, 0.2);
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(32, 191, 107, 0.25);
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 15px;
    border-radius: 2px;
}

/* Services Cards */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-bg);
    transition: height 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3, 
.service-card:hover p,
.service-card:hover .icon-box i {
    color: #fff;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(15, 52, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.icon-box i {
    font-size: 28px;
    color: var(--primary-blue);
}

.service-card:hover .icon-box {
    background: rgba(255,255,255,0.2);
}

/* Product Cards */
.product-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.product-img {
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    transition: transform 0.5s;
}

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

.product-content {
    padding: 25px;
}

.product-title {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Asymmetric About Section */
.about-img-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

.about-img-1 {
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border: 5px solid #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

/* References Ticker / Logos */
.client-logo-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.client-logo {
    max-height: 80px;
    max-width: 90%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.client-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-green);
}

.client-logo-wrapper:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Stats Counter */
.counter-box {
    text-align: center;
    padding: 40px;
    color: #fff;
    position: relative;
}

.stats-section {
    background: var(--gradient-bg);
    position: relative;
    z-index: 1;
}

/* Info Cards (Mission, Vision, etc.) */
.info-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-bg);
    transition: height 0.3s ease;
}

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

.info-card:hover::before {
    height: 6px;
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.info-card h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.info-card p, .info-card ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.info-card ul li i {
    color: var(--accent-green);
    margin-right: 8px;
    font-size: 0.8rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: #fff;
    padding-top: 80px;
}

.footer-widget h4 {
    color: var(--accent-green);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #fff;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

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

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    /* Navbar Mobile Transparent Fix */
    .navbar {
        background-color: transparent; 
        padding: 10px 0;
    }

    /* Mobile Menu Dropdown Style */
    .navbar-collapse {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        margin-top: 15px;
    }
    
    .navbar-collapse .nav-link {
        color: var(--primary-blue) !important;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-img-2 {
        display: none;
    }

    .hero-section {
        height: auto;
        padding: 150px 0 100px 0;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.news-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-green);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.news-card:hover .news-content h4 {
    color: var(--accent-green);
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--accent-green);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    box-shadow: var(--card-shadow);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 52, 96, 0.9), transparent);
    padding: 30px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.project-card:hover .project-link {
    opacity: 1;
}
