/* Modern color scheme */
:root {
    --primary-color: #004D8C;
    --primary-light: #3385dd;
    --primary-dark: #003666;
    --secondary-color: #FFA726;
    --secondary-light: #FFF3E0;
    --accent-color: #FFD700;
    --text-color: #2C3E50;
    --text-light: #6C7A89;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --dark-bg: #1A202C;
    --gray-bg: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Text Alignment Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(0, 77, 140, 0.95), rgba(0, 54, 102, 0.90)), url('https://images.unsplash.com/photo-1498084393753-b411b2d26b34?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--light-bg));
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Page header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

/* Section styles */
.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Contact section */
.contact {
    background-color: var(--light-bg);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card styles */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.card-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.card .btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.card .btn:hover {
    transform: translateY(-2px);
}

ul {
    list-style: disc;
    padding: 1rem;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--primary-color);
    color: var(--white);
}

tr:nth-child(even) {
    background: var(--gray-bg);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Elements */
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    background-color: var(--white);
    cursor: pointer;
}

.form-submit {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Style for hero buttons container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Specific style for call-to-action section buttons */
.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button (hidden by default) */
.mobile-menu-btn {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        width: 100vw;
        background: linear-gradient(135deg, rgba(0, 77, 140, 0.97), rgba(0, 54, 102, 0.95));
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-20px);
        padding: 2rem;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: flex;
    }

    .nav-menu .nav-link {
        color: var(--white);
        font-size: 1.25rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(var(--i) * 0.1s);
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu .nav-link:hover {
        color: var(--secondary-color);
    }

    .nav-menu .nav-link::after {
        background-color: var(--secondary-color);
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        padding: 0.75rem;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
    }

    .mobile-menu-btn span {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-btn span:nth-child(1) {
        top: 14px;
    }

    .mobile-menu-btn span:nth-child(2) {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-menu-btn span:nth-child(3) {
        bottom: 14px;
    }

    .mobile-menu-btn.active span {
        background: var(--white);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        bottom: 50%;
        transform: translate(-50%, 50%) rotate(-45deg);
    }
}

/* Technical specifications styles */
.spec-table {
    font-size: 0.9rem;
}

.spec-table th {
    white-space: nowrap;
}

/* Team and Projects grid styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-light);
}

/* Project portfolio styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 82, 155, 0.9);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Organizational Structure and Team Page Styles */
.section-light-bg {
    background-color: var(--light-bg);
}

.section-primary-bg {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-primary-light-bg {
    background-color: var(--primary-light);
    color: var(--white);
}

.section-secondary-bg {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.section-secondary-light-bg {
    background-color: var(--secondary-light);
    color: var(--text-color);
}

.org-structure-container {
    max-width: 800px;
    margin: 0 auto;
}

.org-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.org-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.org-card {
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.org-card-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    border-radius: 8px;
}

.org-card-primary-light {
    background: var(--primary-light);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.org-card-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.org-card-secondary-light {
    background: var(--secondary-light);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.org-title {
    margin: 0;
    font-size: 1.1em;
}

.text-center {
    text-align: center;
}

.text-center-mb {
    text-align: center;
    margin-bottom: 2rem;
}

.text-center-container {
    text-align: center;
}

.white-text {
    color: var(--white);
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}