/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6600;
    --primary-blue: #1E3A8A;
    --dark-blue: #0F172A;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header Styles */
.header {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .navbar {
    padding: 15px 0;
}

.header .navbar-brand {
    padding: 0;
    margin-right: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

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

.logo-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-name-orange {
    color: var(--primary-orange);
}

.logo-name-blue {
    color: var(--white);
}

.logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Bootstrap Navbar Customization */
.header .navbar-nav {
    gap: 0;
}

.header .navbar-nav .nav-item {
    position: relative;
}

.header .navbar-nav .nav-item:not(:last-child)::after {
    content: '|';
    color: var(--white);
    margin: 0 15px;
    opacity: 0.5;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.header .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 15px 10px;
    transition: color 0.3s;
    white-space: nowrap;
}

.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
}

.header .navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.header .navbar-toggler:focus {
    box-shadow: none;
}

.header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.search-icon {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

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

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.carousel-slide .hero {
    position: relative;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: var(--primary-orange);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.projects-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.project-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    user-select: none;
    pointer-events: auto;
}

.project-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.project-image:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Ensure images are tappable on mobile */
@media (max-width: 768px) {
    .project-image {
        touch-action: pan-y pinch-zoom;
        -webkit-touch-callout: none;
    }
    
    .project-slide {
        touch-action: pan-y;
    }
}

.project-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
}

.project-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 2;
}

.project-arrow:hover {
    background-color: var(--primary-orange);
}

.project-arrow.prev {
    left: 20px;
}

.project-arrow.next {
    right: 20px;
}

.project-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.project-dot.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Certification Cards */
.certification-card {
    background-color: var(--white);
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certification-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.certification-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-card h4 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.certification-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.certification-card .btn {
    margin-top: auto;
}

/* Image Lightbox Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-orange);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    padding: 20px;
    user-select: none;
    transition: color 0.3s, transform 0.3s;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-prev:hover,
.modal-next:hover {
    color: var(--primary-orange);
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    z-index: 10001;
}

.modal-caption span {
    display: block;
}

.modal-counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .project-image {
        position: relative;
    }
    
    .project-image::after {
        content: '👆 Tap to view';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: var(--white);
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 12px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .project-image:active::after {
        opacity: 1;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        width: auto;
        height: auto;
        touch-action: pan-y pinch-zoom;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
        min-width: 50px;
        min-height: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .modal-prev,
    .modal-next {
        font-size: 40px;
        width: 55px;
        height: 55px;
        padding: 12px;
        background-color: rgba(0, 0, 0, 0.6);
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-caption {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .image-modal {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
    }
    
    .projects-carousel {
        touch-action: pan-y;
    }
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #E55A00;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.feature-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 16px;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

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

.service-card h4 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--white);
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.team-member h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member .contact {
    font-size: 14px;
    color: var(--text-light);
    margin: 5px 0;
}

/* Testimonials */
.testimonials {
    background-color: var(--light-gray);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-location {
    color: var(--text-light);
    font-size: 14px;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-item {
    text-align: center;
    padding: 30px;
}

.why-item h4 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Form */
.contact-section {
    background-color: var(--light-gray);
}

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

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

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

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 991px) {
    .header .navbar-nav .nav-item::after {
        display: none;
    }
    
    .header .navbar-nav {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .header .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .search-icon {
        padding: 12px 0;
        margin-top: 10px;
    }
}
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-menu li:not(:last-child)::after {
        display: none;
    }
    
    .nav-menu a {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .search-icon {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    .logo-name {
        font-size: 18px;
    }
    
    .logo svg {
        width: 50px;
        height: 50px;
    }
}
