/* --------------------------------------------------
   Global Styles & Variables
-------------------------------------------------- */
:root {
    --bg-color-light: linear-gradient(to right, #e0f7ff, #ffffff);
    --text-color-light: #003366;
    --primary-color-light: #0074d9;
    --card-bg-light: #ffffff;
    --header-bg-light: rgba(0, 51, 102, 0.5);
    --footer-bg-light: #003366;
    --footer-text-light: #e0f7ff;
    --shadow-light: rgba(0, 115, 230, 0.1);

    --bg-color-dark: #0d1117;
    --text-color-dark: #c9d1d9;
    --primary-color-dark: #58a6ff;
    --card-bg-dark: #161b22;
    --header-bg-dark: rgba(22, 27, 34, 0.7);
    --footer-bg-dark: #161b22;
    --footer-text-dark: #c9d1d9;
    --shadow-dark: rgba(88, 166, 255, 0.15);
}

[data-theme="light"] {
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --primary-color: var(--primary-color-light);
    --card-bg: var(--card-bg-light);
    --header-bg: var(--header-bg-light);
    --footer-bg: var(--footer-bg-light);
    --footer-text: var(--footer-text-light);
    --shadow-color: var(--shadow-light);
}

[data-theme="dark"] {
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --primary-color: var(--primary-color-dark);
    --card-bg: var(--card-bg-dark);
    --header-bg: var(--header-bg-dark);
    --footer-bg: var(--footer-bg-dark);
    --footer-text: var(--footer-text-dark);
    --shadow-color: var(--shadow-dark);
}

/* --------------------------------------------------
   Base Styles
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    scroll-behavior: smooth;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------
   Header & Navbar
-------------------------------------------------- */
header {
    position: fixed;
    top: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 4.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
}

header.hide-navbar {
    top: -6rem;
}

.logo-container .img {
    height: 12rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.theme-toggle,
.menu-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover,
.menu-icon:hover {
    transform: scale(1.1);
}

.menu-icon {
    display: none;
}

/* --------------------------------------------------
   Hero Section
-------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.spline-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.spline-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    scale: 1.2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 260px;
    pointer-events: none;
    text-align: left;
}

.hero-content h1 {
    font-weight: bold;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

/* --------------------------------------------------
   General Section Styling
-------------------------------------------------- */
.section {
    padding: 0.2rem 2rem 4rem;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------
   Services & Info Section
-------------------------------------------------- */
.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.service-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.service-tab.active,
.service-tab:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

.service-content,
.info-content {
    display: none;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    animation: fadeIn 0.5s;
    padding: 2rem;
}

.service-content.active,
.info-content.active {
    display: block;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.content-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.content-text {
    flex-grow: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------
   Scrolling Info Section
-------------------------------------------------- */
.scrolling-info-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

.scrolling-info-wrapper:before,
.scrolling-info-wrapper:after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.scrolling-info-wrapper:before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 20%, transparent);
}

[data-theme="dark"] .scrolling-info-wrapper:before {
    background: linear-gradient(to right, var(--bg-color-dark) 20%, transparent);
}

.scrolling-info-wrapper:after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 20%, transparent);
}

[data-theme="dark"] .scrolling-info-wrapper:after {
    background: linear-gradient(to left, var(--bg-color-dark) 20%, transparent);
}

.scrolling-info {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scrolling-info:hover {
    animation-play-state: paused;
}

.info-item {
    cursor: pointer;
    padding: 1rem 2rem;
    margin: 0 1rem;
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    font-weight: 500;
}

.info-item:hover,
.info-item.active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    color: var(--primary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.info-content-area {
    margin-top: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-card {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

[data-theme="dark"] .grid-card {
    background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------
   Contact Section
-------------------------------------------------- */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 240px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

.map-container {
    margin-top: 4rem;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section a {
    display: inline-block;
    margin: 0 10px 10px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.social-icons {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--footer-text);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid var(--footer-text);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

 /* --- Responsive Design --- */
 @media (min-width: 768px) {
     .content-wrapper {
         flex-direction: row;
     }
 }

 @media (max-width: 768px) {
     header {
         padding: 0 1rem;
         height: 4.5rem;
     }

     .logo-container .img {
         height: 10rem;
         margin-top: 0.5rem;
     }

     .nav-links {
         display: none;
         flex-direction: column;
         width: 100%;
         background-color: var(--header-bg);
         position: absolute;
         top: 4.5rem;
         left: 0;
         padding: 1rem 0;
         border-bottom-left-radius: 20px;
         border-bottom-right-radius: 20px;
     }

     .nav-links.active {
         display: flex;
     }

     .nav-links a {
         margin: 10px 0;
         text-align: center;
         width: 100%;
     }

     .nav-right {
         gap: 5px;
     }

     .menu-icon {
         margin-right: 0.5rem;
         display: block;
     }

     .theme-toggle {
         margin-right: 1rem;
     }

     .footer-content {
         text-align: center;
     }

     .footer-section.quick-links a {
         display: inline-block;
     }

     .scrolling-info {
         display: flex;
         width: max-content;
         animation: scroll 12s linear infinite;
     } 
     .spline-wrapper {
         width: 100%;
         height: 100%;
     }

     .spline-wrapper iframe {
         width: 100%;
         height: 100%;
         border: none;
         scale: 1.3;
     }

     .section {
         padding: 0rem 2rem 4rem;
         max-width: 1200px;
         margin: auto;
     }

     .hero-content {
         transform: translate(-50%, -50%);
         text-align: center;
         color: white;
         z-index: 500;
         pointer-events: none;
         display: flex;
         /*flex-wrap: wrap;*/
         flex-direction: column;
     }

     .hero-content {
         position: absolute;
         top: 14vh;
         left: 0;
         width: 100%;
         height: calc(100% - 20vh);
         transform: none;
         display: flex;
         flex-direction: column;
         justify-content: space-around;
         align-items: flex-start;
         padding: 1.5rem;
         text-align: left;
         z-index: 500;
         pointer-events: none;
     }

     .hero-content h1 {
         font-size: 2rem;
         color: #0154b3;
         margin: 0;
     }
     
     .bottom-text {
        
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-left: -0.4rem;
    }
 }

 /* --- Company Culture Layout --- */
 .company-culture-wrapper {
     display: flex;
     align-items: flex-start;
     gap: 2rem;
     margin-bottom: 3rem;
     flex-wrap: wrap;
 }

 .company-culture-image {
     flex: 1;
     min-width: 280px;
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
 }

 .company-culture-image img {
     width: 100%;
     height: auto;
     object-fit: cover;
     border-radius: 15px;
     margin-bottom: 1.5rem;
     max-height: 450px;
 }

 .company-culture-mini-cards {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
     flex: 1;
 }

 .mini-card {
     background: var(--card-bg);
     padding: 1rem;
     border-radius: 10px;
     box-shadow: 0 4px 12px var(--shadow-color);
     transition: transform 0.3s;
 }

 .mini-card:hover {
     transform: translateY(-3px);
 }

 .company-culture-text {
     flex: 1;
     min-width: 280px;
 }

 .current-openings {
     margin-top: 4rem;
     padding-top: 2rem;
     border-top: 2px dashed var(--primary-color);
 }

 /* --------------------------------------------------
   Dark Theme Specific Text
-------------------------------------------------- */
 [data-theme="dark"] .bottom-text p {
     color: var(--text-color-dark);
     margin-bottom: 0.4rem;

 }

