/*
 * AB Exhibition - Professional Trade Fair & Exhibition Design
 * Modern CSS with Bootstrap 5.3 Integration
 * Author: AB Exhibition
 * Version: 1.0
 */

/* ==========================================
   CUSTOM PROPERTIES (CSS VARIABLES)
   ========================================== */
:root {
    /* Primary Colors - AB Exhibition Corporate Blue */
    --primary-color: #0F329B;
    --primary-dark: #0B2878;
    --primary-light: #1E4BB8;
    --secondary-color: #64748b;
    --accent-color: #ffb00a;
    
    /* Gray Scale - Neutral */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;
    --font-weight-black: 900;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Borders & Shadows */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* ==========================================
   HEADER & NAVIGATION 
   ========================================== */

/* Remove burger button border for all screen sizes */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

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

/* Enable smooth collapse animation for all screen sizes */
.navbar-collapse {
    transition: height 0.35s ease;
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}
#header {
    transition: var(--transition-base);
    z-index: 1000;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand .logo {
    transition: var(--transition-base);
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}



.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   HERO SECTION WITH PARALLAX
   ========================================== */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Parallax Background - Fixed */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* Mobile-first: Disable parallax on mobile devices for better performance */
@media (max-width: 767.98px) {
    .parallax-background {
        position: absolute;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-section {
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        height: auto;
    }
}

/* Ensure background adapts to screen height */
@media (max-height: 800px) {
    .parallax-background {
        height: 100vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.0) 0%,
        rgba(0, 0, 0, 0.15) 25%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.15) 75%, 
        rgba(0, 0, 0, 0.0) 100%);
    z-index: -1;
}

@media (max-width: 1400px) {
    .hero-overlay {
        background: linear-gradient(90deg, 
            rgba(0, 0, 0, 0.0) 0%,
            rgba(0, 0, 0, 0.5) 50%, 
            rgba(0, 0, 0, 0.0) 100%);
    }
}

/* Parallax Content - Scrolls over background */
.parallax-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 100px 20px 40px 20px;
    /* Dynamic gap based on viewport height */
    gap: clamp(2rem, 6vh, 6rem);
}

/* Hero Content */
.hero-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
    color: #ffffff;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 2rem auto;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

/* Responsive font sizes for different screen heights */
@media (max-height: 900px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-height: 800px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-height: 700px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

.text-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 1.0);
    margin: 0 auto;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    width: 100%;
}

/* Responsive subtitle for different screen heights */
@media (max-height: 900px) {
    .hero-subtitle {
        font-size: 1.25rem;
        margin: 0 auto;
    }
}

@media (max-height: 800px) {
    .hero-subtitle {
        font-size: 1.125rem;
        margin: 0 auto;
    }
}

@media (max-height: 700px) {
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto;
    }
}



/* Hero Features */
.hero-features {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 100%;
    max-width: 1200px;
    flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE CONTENT SCALING BY SCREEN HEIGHT
   ========================================== */

/* Large displays (1440p, 4K, ultrawide) - more generous spacing */
@media (min-height: 1200px) {
    .parallax-content {
        gap: clamp(4rem, 7vh, 7rem);
        padding: 120px 20px 60px 20px;
    }
    
    .hero-title {
        font-size: clamp(4rem, 5vw, 5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 2vw, 1.75rem);
    }
}

/* Standard Full HD displays (1080p) */
@media (min-height: 1000px) and (max-height: 1199px) {
    .parallax-content {
        gap: clamp(3.5rem, 6vh, 5rem);
        padding: 100px 20px 50px 20px;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 4vw, 4.5rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    }
}

/* Compact displays (MacBook Pro 14", smaller laptops) */
@media (max-height: 999px) {
    .parallax-content {
        padding: 80px 20px 30px 20px;
        gap: clamp(1rem, 3vh, 2rem);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        margin-bottom: 0;
    }
    
    .hero-features {
        padding: 1.5rem;
    }
    
    .hero-feature {
        padding: 1.25rem;
    }
}

/* Very compact displays */
@media (max-height: 800px) {
    .parallax-content {
        padding: 70px 20px 20px 20px;
        gap: clamp(0.75rem, 2vh, 1.5rem);
    }
    
    .hero-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 1.25vw, 1.125rem);
    }
    
    .hero-features {
        padding: 1.25rem;
    }
    
    .hero-feature {
        padding: 1rem;
    }
}

/* Ultra compact displays */
@media (max-height: 700px) {
    .parallax-content {
        padding: 60px 20px 20px 20px;
        gap: clamp(0.5rem, 1.5vh, 1rem);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 1vw, 1rem);
    }
    
    .hero-features {
        padding: 1rem;
    }
    
    .hero-feature {
        padding: 0.75rem;
    }
}

.hero-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    height: 100%;

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive hero feature cards for different screen heights */
@media (max-height: 900px) {
    .hero-feature {
        padding: 1.25rem;
    }
}

@media (max-height: 800px) {
    .hero-feature {
        padding: 1rem;
    }
}

@media (max-height: 700px) {
    .hero-feature {
        padding: 0.75rem;
    }
}

.hero-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-feature-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-feature-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.hero-feature-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.hero-feature-content p {
    color: rgba(255, 255, 255, 1.0);
    font-size: 0.9rem;
    margin: 0;
}

.scroll-down {
    position: absolute;
    /* Smart positioning: smaller percentage on smaller screens */
    bottom: clamp(1.5%, calc(1% + 2vh), 8%);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-down a {
    color: #ffffff;
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.scroll-down a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.6);
    transform: translateY(-3px);
    /* Oranger Glow-Effekt */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 140, 0, 0.2),
        0 0 20px rgba(255, 140, 0, 0.4),
        0 0 40px rgba(255, 140, 0, 0.2),
        0 8px 25px rgba(255, 140, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-padding {
    padding: var(--section-padding);
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
#about {
    background: #ffffff;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.about-stats {
    margin-top: 3rem;
    gap: 1rem;
}

.about-stats .col-4 {
    padding: 1.5rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    position: relative;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    flex: 0 0 calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-stats .col-4:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.about-stats .col-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    transition: var(--transition-base);
}

.about-stats .col-4:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    line-height: 1;
    transition: var(--transition-base);
    text-align: center;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    hyphens: none;
    word-wrap: normal;
    max-width: 100%;
    padding: 0 0.25rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4/3;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
#services {
    background: var(--gray-100);
    position: relative;
    z-index: 10;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    transition: var(--transition-base);
    position: relative;
}

.service-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: var(--transition-base);
}

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

.service-card:hover .service-number::after {
    width: 60px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
#portfolio {
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.portfolio-filter {
    margin-bottom: 3rem;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 1rem 0;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.portfolio-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-base);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 50, 155, 0.9), rgba(30, 75, 184, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.portfolio-info h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ==========================================
   STELLENANGEBOTE SECTION
   ========================================== */
#stellenangebote {
    background: var(--gray-100);
    position: relative;
    z-index: 10;
}

/* Benefits Card */
.job-benefits-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.benefit-item:hover {
    background: #e8f5e8;
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-item span {
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
}

.benefits-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 450px;
}

.benefits-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4/3;
}

/* Job Cards */
.job-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.job-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.job-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon i {
    color: white;
    font-size: 1.5rem;
}

.job-title-info {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.job-location {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.job-content {
    padding: 0 1.5rem;
    flex: 1;
}

.job-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-requirements {
    margin-bottom: 1rem;
}

.requirements-intro {
    color: var(--gray-800);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.4;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.875rem;
}

.job-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.job-salary {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
}

/* Initiative Application */
.initiative-application {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 50, 155, 0.3);
}

.initiative-application h3 {
    color: white;
    margin-bottom: 1rem;
}

.initiative-application p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.initiative-application .btn-outline-primary {
    border-color: white;
    color: white;
    background: transparent;
}

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

/* ==========================================
   CONTACT SECTION
   ========================================== */
#contact {
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 50, 155, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-info {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.contact-details h5 {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    margin: 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
    background-color: var(--gray-900);
    color: #ffffff;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--gray-400);
}

#footer h5 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: #ffffff;
}

#footer ul li {
    margin-bottom: 0.5rem;
}

#footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
}

#footer a:hover {
    color: #ffffff;
}

.text-light-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-light-25 {
    color: rgba(255, 255, 255, 0.25) !important;
}

.border-light-25 {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Footer contact items */
.contact-item-footer {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.contact-item-footer i {
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-item-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-item-footer span {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

/* Social links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition-base);
    margin-right: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
}

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

/* Legal links styling */
#footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.25rem 0;
    display: inline-block;
    transition: var(--transition-base);
}

#footer .list-unstyled a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   FORM VALIDATION STATES
   ========================================== */

/* Required field indicators - thin red border on load */
.form-control-required,
.form-check-input[required] {
    border: 2px solid #dc3545;
    border-width: 1px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Valid state - green border */
.was-validated .form-control:valid,
.form-control.is-valid,
.form-select.is-valid,
textarea.is-valid {
    border-color: #198754 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
    background-image: none !important; /* Remove Bootstrap's default check icon */
}

/* Invalid state - red border */
.was-validated .form-control:invalid,
.form-control.is-invalid,
.form-select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-image: none !important; /* Remove Bootstrap's default cross icon */
}

/* Invalid state for checkbox - red border */
.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: white !important;
}

/* Focus states for required fields */
.form-control-required:focus,
.form-check-input[required]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 50, 155, 0.25);
}

/* Submit button states */
#submitBtn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

#submitBtn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

#submitBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

#submitBtn:not(:disabled):active {
    transform: translateY(0);
}

/* Form ready state */
#submitBtn.form-ready {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
}

/* Initial required state for fields */
.form-control-required.initial-required {
    border-color: #dc3545;
    border-width: 1px;
}

/* Hide validation feedback by default */
.invalid-feedback {
    display: none !important;
}

/* Show validation feedback only when field is invalid */
.is-invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block !important;
}



/* Placeholder styling */
.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Loading animation for submit button */
#submitBtn.loading {
    pointer-events: none;
}

#submitBtn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form counter styling */
#messageCounter {
    font-weight: 500;
    color: var(--gray-600);
}

.form-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Remove browser autofill styling */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--gray-700) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: white !important;
}

/* Firefox autofill styles */
.form-control:-moz-autofill {
    background-color: white !important;
    box-shadow: none !important;
}

/* General autofill prevention */
.form-control:autofill {
    background-color: white !important;
    color: var(--gray-700) !important;
}

/* Ensure autofill doesn't override our validation styles */
.form-control.is-valid:-webkit-autofill,
.form-control.is-valid:-webkit-autofill:hover,
.form-control.is-valid:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset, 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
    border-color: #198754 !important;
    border-width: 2px !important;
}

.form-control.is-invalid:-webkit-autofill,
.form-control.is-invalid:-webkit-autofill:hover,
.form-control.is-invalid:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset, 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

/* Form validation styling simplified - only border and shadow */



/* Required field asterisk */
.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Custom checkbox styling to match validation icons */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    position: relative;
}

/* Checkbox checked state with checkmark */
.form-check-input:checked {
    background-color: white;
    border-color: #198754;
}

.form-check-input:checked::after {
    content: "✓";
    color: #198754;
    font-size: 1em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Valid state for checkbox - green border with checkmark */
.form-check-input.is-valid {
    border-color: #198754 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
    background-color: white !important;
}

.form-check-input.is-valid::after {
    content: "✓";
    color: #198754;
    font-size: 1em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 50, 155, 0.25);
}

.form-check-input:hover {
    border-color: #198754;
}

.form-check-label {
    color: var(--gray-700);
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form message alerts */
#formMessage {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    border: none;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background-color: #d1f2eb;
    color: #0c5460;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Contact form container */
.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.contact-form h3 {
    color: var(--gray-900);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

/* Modal-specific contact form styling */
#contactModal .contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
}

/* Modal styling */
#contactModal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

#contactModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 1.5rem 2rem;
}

#contactModal .modal-title {
    font-weight: var(--font-weight-semibold);
    font-size: 1.5rem;
}

#contactModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#contactModal .btn-close:hover {
    opacity: 1;
}

#contactModal .modal-body {
    padding: 2rem;
}

#contactModal .modal-footer {
    padding: 0 2rem 2rem 2rem;
    background: transparent;
}

/* Modal form adjustments */
#contactModal .form-control,
#contactModal .form-select {
    font-size: 0.95rem;
}

#contactModal .lead {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Contact info heading styling */
.contact-info h3 {
    color: var(--gray-900);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

/* Error message styling - hidden by default */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: var(--font-weight-medium);
}

/* Form field validation animations */
.form-control.is-valid,
.form-select.is-valid {
    animation: validPulse 0.6s ease-out;
}

@keyframes validPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}



/* ==========================================
   LOADING STATES
   ========================================== */
.btn .submit-loading {
    display: none;
}

.btn.loading .submit-text {
    display: none;
}

.btn.loading .submit-loading {
    display: inline-block;
}

/* ==========================================
   MOBILE ADJUSTMENTS - Bootstrap 5 Breakpoints
   ========================================== */

/* iPhone and very small devices (phones, 0-480px) */
@media (max-width: 479.98px) {
    .hero-section {
        min-height: 100dvh;
        padding-top: max(70px, env(safe-area-inset-top, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .parallax-background {
        background-attachment: scroll;
        background-position: center 25%;
    }
    
    .parallax-content {
        padding: 20px 15px 20px 15px;
        gap: 0; /* Remove gap to save space */
        height: auto;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    /* Focus entirely on the main message */
    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
        line-height: 1.1;
        margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        font-weight: 900;
        width: 100%;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
        margin-bottom: 2rem;
        line-height: 1.4;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        max-width: 280px;
        font-weight: var(--font-weight-medium);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    /* HIDE hero features completely on very small screens */
    .hero-features {
        display: none !important;
    }
    
    /* Ensure scroll indicator is visible and positioned well */
    .scroll-down {
        bottom: 8%;
    }
    
    .scroll-down a {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Small mobile devices (480px-575px) */
@media (min-width: 480px) and (max-width: 575.98px) {
    .hero-section {
        min-height: 100dvh;
        padding-top: 70px;
    }
    
    .parallax-background {
        background-attachment: scroll;
        background-position: center 30%;
    }
    
    .parallax-content {
        padding: 20px 15px 30px 15px;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        margin-bottom: 1.5rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Reduce hero features for small screens but keep them */
    .hero-features {
        padding: 1rem;
        margin: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .hero-feature {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-feature-content h4 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-feature-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .hero-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Small devices (landscape phones, 576px-767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 100dvh;
        padding-top: 80px;
    }
    
    .parallax-background {
        background-attachment: scroll;
    }
    
    .parallax-content {
        padding: 40px 20px 30px 20px;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.125rem, 3.5vw, 1.25rem);
    }
}

/* Medium devices (tablets, 768px-1023px) - Base tablet styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .parallax-background {
        background-attachment: scroll; /* Disable on tablets for performance */
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.25rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.15rem, 3vw, 1.2rem);
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* iPad Portrait specific optimizations - Include iPad Pro 12.9" */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .parallax-background {
        background-size: cover;
        background-position: center 35%; /* Show more of the image details */
        background-attachment: scroll;
    }
    
    /* iPad-specific layout adjustments only */
    .hero-content {
        margin: 0 auto;
        max-width: 80%;
        text-align: center;
    }
    
    .hero-features {
        max-width: 90%;
        margin: 0 auto;
        padding: 2rem;
    }
}

/* iPad Landscape - Start from 1025px to avoid conflict with Portrait */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    .parallax-background {
        background-size: cover;
        background-position: center 30%;
        background-attachment: scroll;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .parallax-content {
        padding: 40px 60px 30px 60px;
        gap: 1.5rem;
        margin: auto;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .hero-badge {
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        text-align: center;
        width: 100%;
    }
    
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* General Landscape Optimization - Ensure centering for all landscape modes */
@media (orientation: landscape) {
    .parallax-content {
        margin: auto !important;
    }
    
    .hero-content {
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .hero-badge {
        text-align: center !important;
        display: block !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-title {
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================
   NAVIGATION OPTIMIZATIONS FOR TABLETS
   ========================================== */

/* iPad Pro 12.9" Portrait and similar devices (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    /* Smaller logo for better space utilization */
    .navbar-brand .logo {
        height: 42px;
    }
    
    /* Compact navigation links */
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Smaller primary button */
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Prevent text wrapping in navigation */
    .nav-item {
        white-space: nowrap;
    }
    
    /* Reduce gap between navigation items */
    .navbar-nav.gap-4 {
        gap: 0.75rem !important;
    }
    
    /* Tighter container spacing */
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Statistics optimization for iPad Pro and large tablets */
    .about-stats {
        margin-top: 3rem;
        gap: 1rem;
    }
    
    .about-stats .col-4 {
        padding: 2rem 0.75rem;
        border-radius: var(--border-radius-lg);
        flex: 0 0 calc(33.333% - 0.67rem);
        max-width: calc(33.333% - 0.67rem);
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.6rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        text-align: center;
        line-height: 1.3;
        word-break: keep-all;
        hyphens: none;
        word-wrap: normal;
        max-width: 100%;
        letter-spacing: 0.02em;
        padding: 0 0.25rem;
    }
}

/* Large tablets and small laptops (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* Even smaller logo */
    .navbar-brand .logo {
        height: 38px;
    }
    
    /* More compact navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Compact button */
    .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Prevent any text wrapping */
    .navbar-nav {
        flex-wrap: nowrap;
    }
    
    .nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Minimal gap between navigation items */
    .navbar-nav.gap-4 {
        gap: 0.5rem !important;
    }
    
    /* Tighter spacing */
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Statistics optimization for medium tablets */
    .about-stats {
        margin-top: 2.5rem;
        gap: 0.75rem;
    }
    
    .about-stats .col-4 {
        padding: 1.75rem 0.5rem;
        border-radius: var(--border-radius);
        flex: 0 0 calc(33.333% - 0.5rem);
        max-width: calc(33.333% - 0.5rem);
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.65rem;
        margin-top: 0.5rem;
        text-align: center;
        line-height: 1.3;
        word-break: keep-all;
        hyphens: none;
        word-wrap: normal;
        max-width: 100%;
        letter-spacing: 0.02em;
        padding: 0 0.2rem;
    }
}

/* Transition to burger menu for smaller tablets (576px - 767px) */
@media (max-width: 767.98px) {
    /* Show burger menu, let Bootstrap handle the collapse animation */
    .navbar-toggler {
        display: block !important;
    }
    
    /* Restore normal logo size for mobile */
    .navbar-brand .logo {
        height: 45px;
    }
    
    /* Simple mobile menu styling */
    .navbar-nav {
        gap: 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        color: var(--dark-color) !important;
        transition: color 0.3s ease;
    }
    
    /* Simple hover effect - just color change */
    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }
}



/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
}



/* Mobile devices (576px - 767px) - Non-overlapping optimization */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Hero optimizations handled by global mobile queries above */
    
    .hero-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 2rem;
    }
    
    .hero-features {
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
        margin: 0 1rem;
    }
    
    .hero-feature {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .hero-feature-icon i {
        font-size: 1.25rem;
    }
    
    .hero-feature-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-feature-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .scroll-down a {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    /* Typography improvements */
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        text-align: center;
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        margin-bottom: 2rem;
    }
    
    .service-card,
    .job-card,
    .job-benefits-card,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Image optimizations with proper aspect ratios */
    .about-image {
        min-height: 280px;
        margin-top: 2rem;
    }
    
    .about-image img {
        min-height: 280px;
        aspect-ratio: 4/3;
        object-fit: cover;
        object-position: center;
    }
    
    .initiative-application {
        padding: 2rem 1.5rem;
    }
    
    .job-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .job-content {
        padding: 0 1rem;
    }
    
    .benefits-image {
        min-height: 250px;
        margin-top: 2rem;
    }
    
    .benefits-image img {
        min-height: 250px;
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    .job-footer {
        padding: 0.75rem 1rem 1rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .portfolio-filter {
        text-align: center;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-number {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    /* Statistics mobile layout */
    .about-stats {
        text-align: center;
        margin-top: 2rem;
    }
    
    .about-stats .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem auto;
    }
    
    /* Portfolio mobile optimization */
    .portfolio-slider-container {
        margin: 0 1rem;
    }
    
    .portfolio-main-display {
        margin: 0 1rem 2rem 1rem;
    }
}

/* Extra Small Mobile devices (480px - 575px) - Bridge gap */
@media (min-width: 480px) and (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    

    
    /* Hero features are shown but compressed */
    .hero-features {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .hero-feature {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Ensure touch targets are minimum 44px */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .service-card,
    .job-card,
    .job-benefits-card,
    .contact-form,
    .contact-info {
        margin: 0 0.5rem 1.5rem 0.5rem;
        padding: 1.25rem;
    }
    
    .initiative-application {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .portfolio-main-display,
    .portfolio-slider-container {
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
}

/* ==========================================
   MOBILE FORM OPTIMIZATIONS
   ========================================== */
@media (max-width: 767.98px) {
    .form-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .form-check-input {
        width: 1.375em;
        height: 1.375em;
    }
    
    .form-check-label {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .btn-lg {
        font-size: 1.125rem;
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    /* Modal optimizations for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */

/* Fade in animation for sections - Optimized */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Staggered animation for cards - Optimized for faster loading */
.stagger-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stagger-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Faster stagger delays for quicker appearance */
.stagger-animation:nth-child(1) { transition-delay: 0.05s; }
.stagger-animation:nth-child(2) { transition-delay: 0.1s; }
.stagger-animation:nth-child(3) { transition-delay: 0.15s; }
.stagger-animation:nth-child(4) { transition-delay: 0.2s; }
.stagger-animation:nth-child(5) { transition-delay: 0.25s; }
.stagger-animation:nth-child(6) { transition-delay: 0.3s; }

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 50, 155, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 50, 155, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 50, 155, 0);
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-down a {
        animation: none;
    }
    
    .pulse {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --gray-700: #000000;
        --gray-600: #333333;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        background: transparent;
        color: black;
    }
    
    #preloader,
    #header,
    .scroll-top {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .job-card,
    .portfolio-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==========================================
   PORTFOLIO GALLERY STYLES - DARK MODE
   ========================================== */

/* Dark Mode Portfolio Section */
#portfolio {
    background: 
        radial-gradient(
            circle at center,
            var(--gray-700) 0%,
            var(--gray-900) 100%);
    position: relative;
    overflow: hidden;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--primary-color) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

/* Portfolio Dark Mode Typography */
#portfolio .section-title {
    color: var(--accent-color) !important;
    text-shadow: 0 2px 10px rgba(15, 50, 155, 0.5);
}

#portfolio .section-subtitle {
    color: var(--gray-300) !important;
}

.portfolio-gallery {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Main Display Image - Dark Mode */
.portfolio-main-display {
    margin-bottom: 3rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.portfolio-main-image {
    position: relative;
    width: 100%;
    /* 4:3 Aspect Ratio (1280x960) */
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transition is now handled by JavaScript for smoother crossfade */
}

.portfolio-main-image:hover img {
    transform: scale(1.02);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slider Container - Dark Mode */
.portfolio-slider-container {
    position: relative;
    overflow: hidden;
    /* Height adjusted to accommodate active border (150px + 4px for border) */
    height: 154px;
    padding: 2px;
    border-radius: var(--border-radius-lg);
    background: var(--gray-800);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin: 0 auto; /* Center the container */
}

.portfolio-slider {
    display: flex;
    height: 100%;
    /* Animation handled by JavaScript */
    will-change: transform; /* GPU acceleration for smooth JavaScript animations */
    align-items: stretch; /* Ensures thumbnails fill full height */
    /* Width will be set dynamically by JavaScript */
    transform: translateX(0); /* Starting position - controlled by JavaScript */
    /* Ensure crisp rendering without subpixel issues */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Thumbnail Styling - Dark Mode */
.portfolio-thumbnail {
    /* 4:3 Aspect Ratio with fixed width */
    flex: 0 0 200px;
    width: 200px;
    height: 150px; /* 200px * 3/4 = 150px for 4:3 ratio - exact container match */
    margin-right: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0; /* No border-radius needed, container handles clipping */
    border: 1px solid var(--gray-600);
    /* Ensure consistent rendering for original and cloned items */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.portfolio-thumbnail:hover {
    box-shadow: 0 8px 20px rgba(255, 176, 10, 0.4);
    border: 1px solid var(--accent-color);
}

/* Active thumbnail styling - Dark Mode */
.portfolio-thumbnail.active {
    box-shadow: 0 8px 20px rgba(255, 176, 10, 0.6);
    transform: scale(1.02);
    z-index: 2;
    border: 2px solid var(--accent-color);
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-thumbnail:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Portfolio Gallery */
@media (max-width: 768px) {
    .portfolio-slider-container {
        height: 124px; /* Adjusted for thumbnail height + border (120px + 4px) */
        /* Width will be recalculated by JavaScript for smaller thumbnails */
    }
    
    .portfolio-thumbnail {
        flex: 0 0 160px;
        width: 160px;
        height: 120px; /* 160px * 3/4 = 120px for 4:3 ratio */
    }
}

@media (max-width: 480px) {
    .portfolio-slider-container {
        height: 109px; /* Adjusted for thumbnail height + border (105px + 4px) */
        /* Width will be recalculated by JavaScript for smaller thumbnails */
    }
    
    .portfolio-thumbnail {
        flex: 0 0 140px;
        width: 140px;
        height: 105px; /* 140px * 3/4 = 105px for 4:3 ratio */
        margin-right: 0.5rem;
    }
}

/* ==========================================
   MOBILE LANDSCAPE MODE - UNIVERSAL SOLUTION
   Problem: Breite Auflösung aber extrem wenig Höhe
   PLATZIERT AM ENDE FÜR HÖCHSTE PRIORITÄT!
   ========================================== */

/* All Mobile Devices in Landscape Mode with constrained height */
@media (max-width: 1023.98px) and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh !important;
        padding-top: 45px !important;
        padding-bottom: 0 !important;
        overflow: hidden;
    }
    
    .parallax-content {
        padding: 3px 20px 3px 20px !important;
        gap: 0 !important;
        margin: auto !important;
        height: auto !important;
        min-height: auto !important;
        justify-content: center !important;
    }
    
    .hero-content {
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        display: block !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vh, 2.4rem) !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.05 !important;
        text-align: center !important;
        width: 100% !important;
        font-weight: var(--font-weight-black) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vh, 1.3rem) !important;
        margin-bottom: 0.7rem !important;
        line-height: 1.25 !important;
        max-width: 90% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* ALWAYS hide features in mobile landscape - no space available */
    .hero-features {
        display: none !important;
    }
    
    .scroll-down {
        bottom: 2% !important;
    }
    
    .scroll-down a {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
}

/* Very small height devices (like iPhone 6/7/8 in landscape: 667x375px) */
@media (max-width: 1023.98px) and (max-height: 420px) and (orientation: landscape) {
    .hero-section {
        padding-top: 35px !important;
    }
    
    .parallax-content {
        padding: 2px 20px 2px 20px !important;
    }
    
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vh, 1.9rem) !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.05 !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vh, 1.1rem) !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
        max-width: 85% !important;
    }
    
    .scroll-down {
        bottom: 1% !important;
    }
    
    .scroll-down a {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}