:root {
    --primary: #709AD5;
    --secondary: #9DC3E6;
    --dark: #19738D;
    --darker: #1F2232;
    --accent: #25283D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--darker);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--darker);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark);
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
    nav {
        position: relative;
    }

    nav ul {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        box-shadow: none;
        z-index: auto;
        overflow: visible;
    }

    nav ul li {
        margin: 0 15px;
        padding: 0;
        width: auto;
        text-align: left;
        border-bottom: none;
    }

    nav ul li a {
        padding: 10px 0;
        font-size: 16px;
        font-weight: 500;
        text-align: left;
    }

    nav ul li a:hover {
        background-color: transparent;
        color: var(--primary);
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(25, 115, 141, 0.8), rgba(31, 34, 50, 0.9)), url('/api/placeholder/1200/600.jpeg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 100px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn.btn-outline:hover {
    background-color: var(--primary);
}

.btn.btn-margin-top {
    margin-top: 20px;
}

/* Statistics Section */
.statistics {
    background-color: white;
    padding: 60px 0;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 20px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background-color: #e0e0e0;
}

.stat-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--darker);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Responsive adjustments for statistics */
@media (max-width: 768px) {
    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    display: block;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card ul li {
    padding: 5px 0;
    color: #666;
}

.service-card ul li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(25, 115, 141, 0.9) 0%, rgba(25, 115, 141, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.project-overlay h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.project-overlay p {
    color: white;
    margin-bottom: 15px;
}

/* Values Section */
.values {
    background-color: var(--accent);
    color: white;
}

.values .section-title {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Clients Section */
.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    max-width: 180px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

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

/* Contact Section */
.contact {
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.contact-text {
    flex: 1;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-social-links {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.contact-social-links a {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.contact-social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, var(--primary));
}

.contact-social-links a i {
    font-size: 16px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--darker);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-about p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    nav {
        position: static;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px; /* Space for header */
        box-shadow: none;
        z-index: 999;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 20px;
        display: block;
        transition: all 0.3s;
        font-size: 18px;
        font-weight: 600;
    }

    nav ul li a:hover {
        background-color: #f8f9fa;
        color: var(--primary);
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Ensure header container can accommodate mobile menu */
    .header-container {
        flex-wrap: wrap;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.error-message {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    animation: slideInFromTop 0.5s ease;
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: shake 0.8s ease;
}

.error-message h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.error-message p {
    margin: 0;
    opacity: 0.9;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}