/* ==============================================
   Global Styles
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #005eb8;
    --secondary-color: #2ea3f2;
    --text-color: #666;
    --heading-color: #333;
    --light-bg: #f9f9f9;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 1em;
    line-height: 1.8em;
}

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

a:hover {
    color: var(--secondary-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 94, 184, 0.3);
}

/* ==============================================
   Header Styles
   ============================================== */
#main-header {
    background-color: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container {
    flex-shrink: 0;
}

#logo {
    max-height: 50px;
    width: auto;
}

#main-navigation {
    display: flex;
    align-items: center;
}

#nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

#nav-menu li {
    position: relative;
}

#nav-menu a {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

#nav-menu li.active a,
#nav-menu a:hover {
    color: var(--primary-color);
}

/* Enhanced Home Button */
#nav-menu li.active a {
    font-size: 16px;
    font-weight: 700;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-radius: 25px;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 94, 184, 0.3);
    transition: all 0.3s ease;
}

#nav-menu li.active a:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 94, 184, 0.4);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    border-bottom: 1px solid #eee;
}

.language-dropdown li:last-child {
    border-bottom: none;
}

.language-dropdown a {
    padding: 10px 15px !important;
    display: block;
    color: var(--text-color) !important;
}

.language-dropdown a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==============================================
   Hero Section
   ============================================== */
.hero-section {
    margin-top: 90px;
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 94, 184, 0.7);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Carousel Specific Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #000;
    margin-top: -90px;
    padding-top: 90px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
    max-width: 1200px;
}

.carousel-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
    animation: slideInFromBottom 1s ease-out;
}

.carousel-content p {
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: white;
    animation: slideInFromBottom 1.2s ease-out;
}

.carousel-content .btn {
    animation: slideInFromBottom 1.4s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    user-select: none;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    width: 40px;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
    user-select: none;
    outline: none;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

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

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

/* ==============================================
   Services Section
   ============================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
    overflow: hidden;
    cursor: pointer;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.service-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 94, 184, 0.15);
    border: 2px solid rgba(0, 94, 184, 0.1);
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.service-item:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-item:hover p {
    color: var(--heading-color);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-item h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.service-item p {
    color: var(--text-color);
    line-height: 1.8;
    transition: all 0.3s ease;
}

/* ==============================================
   Video Section
   ============================================== */
.video-section {
    padding: 80px 0;
    background-color: var(--white);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================================
   Gallery Section
   ============================================== */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--heading-color);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 94, 184, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0;
}

.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 24px;
}

/* ==============================================
   About Section
   ============================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==============================================
   Industries Section
   ============================================== */
.industries-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.industry-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.industry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.industry-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ==============================================
   CTA Section
   ============================================== */
.cta-section {
    padding: 120px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 42px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ==============================================
   Footer
   ============================================== */
#main-footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-icon {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    color: var(--white);
    font-size: 18px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

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

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

/* ==============================================
   Utility Classes
   ============================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }
