/* CSS Variables for Darker Blue-Focused Color Scheme */
:root {
    --primary-color: #1E3A8A;
    --primary-dark: #1E2A5A;
    --primary-light: #2563EB;
    --primary-ultra-light: #DBEAFE;
    --accent-color: #0284C7;
    --accent-dark: #0369A1;
    --accent-light: #0EA5E9;
    --accent-ultra-light: #E0F2FE;
    --neutral-dark: #111827;
    --neutral-medium: #6B7280;
    --neutral-light: #F9FAFB;
    --text-color: #111827;
    --bg-color: #FFFFFF;
    --card-bg: #F8FAFC;
    --gradient-start: #1E3A8A;
    --gradient-middle: #1E40AF;
    --gradient-end: #0284C7;
}

[data-theme="option-b"] {
    --primary-color: #2563EB;
    --accent-color: #EF4444;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Background Image */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://picsum.photos/1920/1080?random=construction') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #3B82F6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #E5E7EB;
    letter-spacing: 2px;
}

.hero-content .tagline {
    font-size: 3rem;
    font-style: italic;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    font-weight: 300;
}

/* VMV Section */
.vmv-section {
    padding: 40px 20px 80px;
    background: white;
}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vmv-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.vmv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.vmv-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.vmv-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.core-values h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

.core-values h4:first-child {
    margin-top: 0;
}

.core-values p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Welcome Section */
.welcome-section {
    padding: 100px 20px 40px;
    background: white;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.welcome-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-images img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    padding: 100px 20px 80px;
    background: var(--neutral-light);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 1.5rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-light);
    line-height: 1.2;
}

.learn-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.learn-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Projects Section - Jumbotron Carousel */
.projects {
    padding: 0 0 80px 0;
    background: white;
}

.projects h2 {
    text-align: center;
    padding: 100px 20px 40px;
    margin: 0;
    font-size: 2rem;
    color: var(--primary-dark);
    background: white;
}

.carousel-container {
    position: relative;
    width: calc(100% + 20px);
    margin: 0 -10px;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-slide {
    display: none;
    position: relative;
    height: 70vh;
    min-height: 500px;
}

.carousel-slide.active {
    display: block;
}

.slide-content {
    position: absolute;
    top: 40px;
    left: 40px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    z-index: 2;
    max-width: 400px;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.slide-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--accent-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

/* Team Section */
.team-section {
    padding: 100px 20px 80px;
    background: var(--neutral-light);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.team-card:nth-child(2) {
    grid-column: span 2;
}

.team-photo {
  width: 100%;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.team-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.9rem;
    color: var(--neutral-medium);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background: var(--primary-color);
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-light);
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-media {
    margin-top: 2rem;
}

.social-media h4 {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* Color Toggle */
.color-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#colorToggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(30, 58, 138, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.4rem;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vmv-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-description {
        display: none;
    }
    
    .team-card:nth-child(1) { order: -2; }
    .team-card:nth-child(2) { order: -3; grid-column: span 2; }
    .team-card:nth-child(3) { order: -1; }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        height: 350px;
    }
    
    .service-content {
        min-height: 80px;
        padding: 2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .carousel-slide {
        height: 50vh;
        min-height: 400px;
    }
    
    .slide-content {
        top: 20px;
        left: 20px;
        padding: 1.5rem;
        max-width: 300px;
    }
    
    .slide-content h3 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .projects h2 {
        padding: 40px 20px 30px;
        font-size: 2rem;
    }
}

.loading {
    opacity: 0.7;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(2, 132, 199, 0.8));
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    margin: 0;
    padding: 3rem 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(30, 58, 138, 0.1);
    animation: slideIn 0.3s ease-out;
}

.close {
    color: var(--primary-color);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(30, 58, 138, 0.1);
}

.close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.modal-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.modal-icon.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-text {
    font-size: 1rem;
    color: var(--neutral-medium);
    line-height: 1.6;
    margin: 0;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.7s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Service Modal */
.service-modal-content {
    max-width: 600px;
    padding: 2.5rem;
}

.service-modal-content .modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-modal-content .modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}