/* ===================================
   UP Source - Main Stylesheet
   Ultra-fast, modern design system
   =================================== */

/* === CSS Custom Properties === */
:root {
    /* Colors */
    --primary-blue: #0066CC;
    --primary-blue-dark: #004C99;
    --primary-blue-light: #3385D6;
    --accent-blue: #00A3FF;
    --navy-dark: #0A1628;
    --navy-medium: #1A2B42;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-medium: #E1E8ED;
    --gray-dark: #657786;
    --text-dark: #14171A;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A3FF 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.9) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-dark);
    line-height: 1.8;
}

/* === Container & Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-alt {
    background-color: var(--gray-light);
}

/* === Grid System === */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* === Glass Card Effect === */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* === Hero Section === */
.hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-xl);
    color: var(--gray-light);
    font-weight: var(--font-weight-regular);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-primary {
    background: var(--gradient-primary);
}

.bg-dark {
    background: var(--navy-dark);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
    }

    .grid-2,

    .btn {
        width: 100%;
    }
}

/* === New Hero Section Design === */
.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    /* Ensure no gap from header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.4);
    /* Dark overlay base */
    z-index: -1;
}

/* Geometric Shapes */
.hero-shape-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.8) 100%);
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0% 100%);
    z-index: 0;
}

.hero-shape-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(225deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: var(--spacing-lg);
    text-align: center;
    color: white;
}

.hero-tagline {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 8px auto 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.hero-arrow-decoration {
    display: none;
    /* Hidden on mobile, shown on desktop */
}

@media (min-width: 768px) {
    .hero-arrow-decoration {
        display: block;
        transform: rotate(15deg) translateY(10px);
    }
}

/* Slider Navigation */
.hero-nav {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: white;
    color: var(--primary-blue);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100000 !important;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
    }

    .hero-shape-left,
    .hero-shape-right {
        width: 100%;
        height: 50%;
        clip-path: none;
        opacity: 0.8;
    }

    .hero-shape-left {
        top: 0;
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.0) 100%);
    }

    .hero-shape-right {
        top: auto;
        bottom: 0;
        height: 50%;
        background: linear-gradient(0deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.0) 100%);
    }

    .hero-nav {
        display: none;
    }
}

/* === About Section === */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
    /* Fixed height for the collage */
}

.about-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 85%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 50%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.about-stat-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-20%, -20%);
    background: #0099ff;
    /* Bright blue from image */
    color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    z-index: 3;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.about-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.about-content {
    padding-right: var(--spacing-xl);
}

.about-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-blue);
}

.about-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.about-text {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    font-size: 1.05rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-section {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-images {
        height: 500px;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
    }

    .about-label {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .about-images {
        height: 400px;
    }

    .about-stat-box {
        padding: 20px;
        min-width: 120px;
    }

    .about-stat-number {
        font-size: 2rem;
    }
}

/* === Success Partners Section === */
.partners-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
    text-align: center;
}

.partners-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 50px;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scrollPartners 30s linear infinite;
    width: max-content;
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === Services Section (New Design with Swiper) === */
.services-section-new {
    padding: var(--spacing-2xl) 0;
    background-color: #fff;
    overflow: hidden;
    /* Prevent horizontal scrollbar */
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.swiper-wrapper {
    gap: 20px;
}

.services-title-wrapper {
    flex: 0 0 auto;
}

.services-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.services-subtitle::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    margin-right: 10px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.services-description {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

/* Swiper Styles */
.services-swiper {
    width: 100%;
    padding-bottom: 50px !important;
    /* Space for pagination */
    overflow: visible !important;
    /* Allow shadows/overflow to be seen */
}



.swiper-slide {
    height: auto;
    display: flex;
    position: relative;
    justify-content: center;
}

.service-card-new {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-new:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.service-card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Recruitment Card Special Style */
.card-recruitment {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-recruitment .recruitment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 2;
}

.card-recruitment .recruitment-icon {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .swiper-wrapper {
        gap: 0px;
    }

    .services-description {
        width: 100%;
    }

    .service-card-new {
        height: 350px;
    }
}