:root {
    --primary-color: #0066CC; /* Vibrant Blue */
    --secondary-color: #003366; /* Deep Navy */
    --accent-color: #66B2FF; /* Sky Blue */
    --light-color: #E6F0FA; /* Soft Blue-Gray */
    --dark-color: #001A33; /* Midnight Blue */
    --text-color: #001A33; /* Midnight Blue */
    --text-light: #E6F0FA; /* Soft Blue-Gray */
    --shadow-sm: 0 4px 8px rgba(0, 51, 102, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 51, 102, 0.05);
    --shadow-lg: 0 8px 16px rgba(0, 51, 102, 0.2);
    --background: var(--light-color);
    --text: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all elements respect the viewport */
* {
  box-sizing: border-box;
  max-width: 100%;
}


body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Wave Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.05), rgba(255, 255, 255, 0.1));
    animation: waveBackground 10s linear infinite;
    z-index: -1;
    opacity: 0.3;
    will-change: transform;
}

.navbar {
    padding: 0;
    background: rgba(0, 51, 102, 0.9);
    position: sticky;
    top: 0;
    height: 85px;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(0, 51, 102, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar .logo {
    margin-left: -35px;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.navbar .logo i {
    margin-right: 6px;
    color: var(--accent-color);
}

.navbar .logo:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

.navbar .nav-link {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0 5px;
    position: relative;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.navbar .nav-link:hover:after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: var(--text-light);
    background: rgba(102, 178, 255, 0.1);
}

.navbar .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.navbar .nav-link.active:after {
    width: 100%;
}

.navbar .nav-link.login {
    background: var(--primary-color);
    border-radius: 25px;
    padding: 10px 20px;
}

.navbar .nav-link.login:hover {
    background: var(--accent-color);
}

.navbar .dropdown-toggle {
    color: var(--text-light);
}

.navbar .dropdown-menu {
    background: rgba(0, 51, 102, 0.95);
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.navbar .dropdown-item {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s;
}

.navbar .dropdown-item:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

.hero-section {
    height: 550px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-align: center;
    padding: 8rem 2rem 5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 26, 51, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    position: relative;
}

.content-section h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.section-content {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group .form-control {
    font-size: 0.9rem;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.active {
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.detail-card {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.detail-card p {
    font-size: 0.9rem;
}

.detail-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-card a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn:hover {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 1px solid rgba(102, 178, 255, 0.1);
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-bottom a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes waveBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }
    .navbar .logo {
        margin-left: 5px;
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 6rem 1rem 3rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .content-section {
        padding: 3rem 1rem;
    }
    .navbar .nav-link, .navbar .dropdown-item {
        padding: 8px 10px;
    }
    .navbar .dropdown-menu {
        min-width: 100%;
        padding: 10px;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }

    /* Add background to navbar contents in mobile view */
    .navbar-collapse {
        background: rgba(55, 71, 79, 0.98);
        padding: 15px 10px 20px 10px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 5rem 1rem 2rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .content-section h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    .map-container iframe {
        height: 300px;
    }
}