@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #1a3b68;
    --primary-dark: #122a4a;
    --secondary-color: #c1272d;
    --accent-color: #45a08d;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --topbar-height: 40px;
    --container-width: 1200px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    height: var(--topbar-height);
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 20px;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.top-bar-social a:hover {
    color: var(--accent-color);
}

/* --- Navigation --- */
header {
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    transition: var(--transition);
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    width: 250px;
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar li {
    position: relative;
}

.navbar a {
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 15px 25px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    display: flex;
    gap: 40px;
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    display: block;
}

.dropdown a {
    padding: 8px 0;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

@media (max-width: 992px) {
    .dropdown {
        display: none;
    }
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 40px 20px;
    overflow-y: auto;
    visibility: hidden;
    /* Added to prevent overflow-x bugs when closed */
    pointer-events: none;
    /* Prevent interaction when closed */
}

.sidebar.active {
    right: 0;
    visibility: visible;
    pointer-events: all;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-logo {
    margin: 30px 0;
}

.sidebar li {
    margin-bottom: 0px;
}

.sidebar a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sidebar Dropdown Submenu */
.sidebar-submenu {
    display: none;
    padding-left: 20px;
    margin-bottom: 10px;
    border-left: 2px solid var(--gray-200);
}

.sidebar-submenu.active {
    display: block;
}

.sidebar-submenu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    padding: 8px 0;
}

.sidebar-dropdown-toggle i {
    transition: var(--transition);
}

.sidebar-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.sidebar-contact {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 59, 104, 0.8), rgba(26, 59, 104, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

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

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* --- Sections --- */
section {
    padding: 80px 0;
}

.section-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

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

/* --- Service Cards --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 1 1 300px;
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

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

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .navbar {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .top-bar-info {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 50px 0;
    }
}