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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 0.8rem 0;
    transition: padding 0.3s ease;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    gap: 2rem;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Logo Styles */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: brightness(1.2) contrast(1.2);
    transform: scale(1.05);
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fcfbf9;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: center;
    justify-self: center;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mega menu */
.dropdown.mega { position: relative; }
.mega-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: min(920px, calc(100vw - 40px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.35s ease;
    z-index: 1000;
}
.dropdown.mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 0.75rem;
}
.mega-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    text-decoration: none;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.mega-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
    background: #f8fafc;
}
.mega-icon { 
    width: 40px; height: 40px; border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; 
}
.mega-text h5 { margin: 0; font-size: 0.95rem; color: #0f172a; font-weight: 600; }
.mega-text p { margin: 4px 0 0; font-size: 0.85rem; color: #475569; }

.lang-toggle {
    display: flex;
    gap: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333333;
    margin: 3px 0;
    transition: 0.3s;
}

.lang-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #777;
    color: #fff;
}

.lang-btn.active {
    background: #2a2a2a;
    color: #fff;
    border-color: #666;
}

/* Text style button */
.lang-btn-flag {
    width: 64px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid #e5e7eb !important;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.flag-icon { 
    display: inline-block; 
    color: #374151;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Hover/active styles for text button */
.lang-btn-flag:hover { 
    border-color: #2563eb !important; 
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}
.lang-btn-flag:hover .flag-icon {
    color: #2563eb;
}
.lang-btn-flag.active { 
    border-color: #2563eb !important; 
    background: rgba(37, 99, 235, 0.1); 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.lang-btn-flag.active .flag-icon {
    color: #2563eb;
}


/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding-top: 120px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #fefaf7, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: #fcfbf9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #fefaf7, #f5f1ed);
    color: #333333;
    border: 2px solid #fefaf7;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #f0ebe6, #e8e3de);
    border-color: #e8e3de;
    color: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #fefaf7;
    border: 2px solid #fefaf7;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: rgba(254, 250, 247, 0.95);
    color: #2d2d2d;
    border-color: #fefaf7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 250, 247, 0.4);
}

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

.btn-secondary:hover:before {
    left: 100%;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-main-image {
    width: clamp(360px, 40vw, 750px);
    max-width: none;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    object-fit: cover;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
}

.hero-main-image.loaded {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.hero-main-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
}

/* Tech Icons Section */
.tech-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2d3748 100%);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 400px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 50%;
    animation: float-tech 15s ease-in-out infinite;
}

.tech-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 50%;
    animation: float-tech 20s ease-in-out infinite reverse;
}

@keyframes float-tech {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Additional floating objects */
.tech-grid::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 150px;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 50%;
    animation: float-tech 12s ease-in-out infinite;
    z-index: 1;
}

.tech-grid::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 150px;
    height: 100px;
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.08), rgba(168, 85, 247, 0.08));
    border-radius: 50%;
    animation: float-tech 18s ease-in-out infinite reverse;
    z-index: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    position: relative;
    z-index: 11;
    padding: 2rem;
}

.tech-item {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #60a5fa;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 0 rgba(59, 130, 246, 0.4);
    cursor: default;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    animation: pulse-alarm 2s ease-in-out infinite;
}

.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 0.3s; }
.tech-item:nth-child(3) { animation-delay: 0.6s; }
.tech-item:nth-child(4) { animation-delay: 0.9s; }
.tech-item:nth-child(5) { animation-delay: 1.2s; }
.tech-item:nth-child(6) { animation-delay: 1.5s; }

/* Additional glow effect for stronger alarm feeling */
.tech-item::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.tech-item:nth-child(1)::after { animation-delay: 0.1s; }
.tech-item:nth-child(2)::after { animation-delay: 0.4s; }
.tech-item:nth-child(3)::after { animation-delay: 0.7s; }
.tech-item:nth-child(4)::after { animation-delay: 1s; }
.tech-item:nth-child(5)::after { animation-delay: 1.3s; }
.tech-item:nth-child(6)::after { animation-delay: 1.6s; }

@keyframes pulse-alarm {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 0 rgba(59, 130, 246, 0.4);
        border-color: rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 20px rgba(59, 130, 246, 0);
        border-color: rgba(59, 130, 246, 0.6);
    }
}

.tech-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.tech-item:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    animation-play-state: paused;
    border-color: rgba(59, 130, 246, 0.8);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(147, 51, 234, 0.2) 100%);
    color: #93c5fd;
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 15px rgba(59, 130, 246, 0.1);
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Tooltip bubble */
.tech-item {
    position: relative;
    z-index: 12;
}
.tech-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tech-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
}
.tech-item.active .tech-tooltip,
.tech-item:hover .tech-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    z-index: 16;
}

/* Section Styles */
.section {
    position: relative;
    overflow: hidden;
}

.dark-section {
    background: linear-gradient(135deg, #e6f0ff 0%, #eff6ff 100%);
}

.light-section {
    background: linear-gradient(135deg, #eaf2ff 0%, #edf6ff 100%);
    color: #0f172a;
}

.light-section .section-header h2 {
    color: #1a1a1a;
    font-weight: 700;
}

.light-section .section-header p {
    color: #555555;
}

.light-section .content-text p {
    color: #444444;
}

.light-section .feature h4 {
    color: #1a1a1a;
}

.light-section .feature p {
    color: #555555;
}

.light-section .feature i {
    color: #333333;
}

.light-section .about-text p {
    color: #444444;
}

.light-section .stat h3 {
    color: #1a1a1a;
}

.light-section .stat p {
    color: #555555;
}

.light-section .image-placeholder {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.12);
}

.light-section .image-placeholder:hover {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.18);
}

.light-section .image-placeholder i {
    color: #666666;
}

.light-section .image-placeholder p {
    color: #444444;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-header p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #666;
    margin-top: 0.2rem;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature p {
    color: #cccccc;
    margin: 0;
}

/* Image Placeholders */
.image-placeholder {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #555;
    background: #222;
}

.image-placeholder i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: #cccccc;
    font-weight: 500;
    margin: 0;
}

/* Section Images */
.section-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    filter: blur(3px);
    transform: translateY(15px);
}

.section-image.loaded {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.partner-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
}

.partner-item:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.partner-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
}

.partner-item:hover .partner-img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.partner-logo h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Products Carousel */
.products-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Products Track - WITH Animation */
.products-track {
    display: flex;
    margin: 10px;
    gap: 2rem;
    padding: 0 2rem 1rem 2rem;
    width: max-content;
    animation: products-scroll 30s linear infinite;
}

@keyframes products-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.products-track:hover {
    animation-play-state: paused;
}

.products-carousel .product-card {
    flex: 0 0 320px;
    height: 400px;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-carousel .product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

/* Clickable card extra hover effect */
.clickable-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.3s ease;
}

.clickable-card:hover .card-front,
.clickable-card:hover .card-back {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #2563eb;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.product-card {
    background: transparent;
    perspective: 1200px;
    height: 360px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Clone cards inherit all styles from .product-card */

.product-card:hover {
    transform: scale(1.02);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.product-card:hover .card-inner {
    transform: rotateY(180deg);
}


.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 9px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover .card-front,
.product-card:hover .card-back {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    border-radius: 8px;
}

.card-back-content {
    text-align: left;
    width: 100%;
    padding: 0.5rem;
    overflow: hidden;
}

.card-back-content h4 {
    color: #1f2937;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    text-align: center;
    font-weight: 600;
}

.card-back-content ul {
    list-style: none;
    padding: 0;
}

.card-back-content li {
    color: #4b5563;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.3;
}

.card-back-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.card-back-content li:last-child {
    border-bottom: none;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border: 2px solid #bfdbfe;
}

.product-card h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-card p {
    color: #6b7280;
    line-height: 1.6;
    font-weight: 400;
}

.solution-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    background: #222;
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #666;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.solution-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Consulting Section */
.consulting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consulting-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

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

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #222;
    border-color: #555;
    transform: translateX(10px);
}

.service-item i {
    font-size: 1.2rem;
    color: #666;
    width: 20px;
}

.service-item span {
    font-weight: 500;
    color: #ffffff;
}

/* References Carousel */
.references-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 2rem 0;
}

/* References Track - WITH Animation */
.references-track {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.references-track:hover {
    animation-play-state: paused;
}

.reference-item {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 250px;
    flex-shrink: 0;
}

.reference-item:hover {
    transform: translateY(-5px);
    border-color: #555;
    background: #222;
}

.reference-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.reference-logo i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
}

.reference-item:hover .reference-img {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
}

.reference-logo h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    text-align: center;
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cccccc;
    font-weight: 500;
    margin: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #666;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: #cccccc;
    margin: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 1rem;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: brightness(1.1) contrast(1.1);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-logo p {
    color: #cccccc;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: black;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
    margin: 0;
}

/* Responsive Design */

/* Tablet responsive for partners */
@media (max-width: 1024px) and (min-width: 769px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 0 15px;
        max-width: 100%;
    }

    .nav-menu {
        position: fixed;
        inset: 70px 0 auto 0;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(135deg, rgba(254, 250, 247, 0.98) 0%, rgba(248, 244, 241, 0.98) 100%);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 999999;
    }

    .nav-menu.active { transform: translateX(0); }

    .nav-right .lang-toggle { display: flex; }

    .hamburger { display: flex; }
    /* Center language toggle in mobile header */
    .lang-toggle {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000001;
    }
    .nav-right { justify-content: flex-end; }

    /* Mobile mega menu styles */
    .dropdown.mega .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        left: 0;
        right: 0;
        padding: 0;
        box-shadow: none;
        border: 0;
        background: transparent;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease;
        will-change: opacity, max-height;
        margin-left: 0;
        margin-right: 0;
    }
    .dropdown.mega.open .mega-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1000px;
    }
    .mega-grid { grid-template-columns: 1fr; gap: 0; }
    .mega-item {
        padding: 0.75rem 1rem;
        background: transparent;
        border: 0;
        box-shadow: none;
        align-items: center;
    }
    .mega-item:hover {
        transform: none;
        background: var(--accent-50);
        box-shadow: none;
    }
    .mega-icon {
        width: 28px;
        height: 28px;
        background: transparent;
        color: var(--accent-700);
        border: 0;
        margin: 0 0.75rem 0 0;
    }
    .mega-text h5 { color: var(--text); }
    .mega-text p { display: none; }

    /* Ensure dropdown opens downward and is fully visible */
    .nav-menu { align-items: stretch; }
    .nav-menu > li { width: 100%; position: relative; }
    .nav-menu > li > a { display: block; width: 100%; padding: 0.75rem 1rem; text-align: left; }
    .dropdown.mega .mega-menu { margin-top: 0.25rem; width: 100%; }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo-img {
        height: 60px;
        max-width: 280px;
    }

    .footer-logo-img {
        height: 45px;
        max-width: 220px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .hero {
        padding-top: 100px;
        flex-direction: column;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
        max-width: 100%;
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 500px;
        padding: 1rem;
    }
    
    .tech-item {
        width: 100px;
        height: 100px;
        font-size: 2rem;
        border-radius: 50%;
    }

    .hero-main-image {
        max-width: 95%;
        margin: 0 15px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .section-image {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .content-grid,
    .consulting-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }

    .partner-item {
        min-height: 160px;
        padding: 1.5rem;
    }

    .partner-img {
        width: 60px;
        height: 60px;
    }

    .partner-logo h4 {
        font-size: 1rem;
    }

    /* Mobile carousel adjustments */
    .products-carousel .product-card {
        flex: 0 0 280px;
        height: 380px;
        transform: scale(1);
        opacity: 1;
    }

    .products-track {
        margin: 10px;
        padding: 0 1rem 1rem 1rem;
        gap: 1rem;
        animation: products-scroll 25s linear infinite; /* Faster on mobile */
    }
    
    .products-track:hover {
        animation-play-state: paused;
    }
    
    .carousel-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .carousel-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .carousel-controls {
        gap: 1rem;
        margin-top: 2rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Improve touch targets on mobile */
    .carousel-dot {
        width: 16px;
        height: 16px;
        margin: 4px;
    }

    .stats {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-group {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-card {
        height: 340px;
    }
    
    .card-front, .card-back {
        padding: 1.2rem;
    }
    
    .card-back-content {
        padding: 0.3rem;
    }
    
    .card-back-content li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
    /* Prevent tick and text overlap on mobile */
    .card-back-content ul { margin: 0; }
    .card-back-content li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding-left: 0;
        line-height: 1.4;
    }
    .card-back-content li:before {
        position: static;
        flex: 0 0 auto;
        margin-top: 0.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Very small screens - single column for partners */
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }


    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 280px;
        padding: 1rem;
    }

    .tech-item {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
        border-radius: 50%;
    }
    
    .tech-section {
        padding: 3rem 0;
    }
    
    /* Mobile tooltip improvements */
    .tech-tooltip {
        max-width: 180px;
        white-space: normal;
        word-wrap: break-word;   /* eski tarayıcılar için */
        overflow-wrap: break-word; /* modern tarayıcılar için */
        text-align: center;
        z-index: 20;
        display: inline-table;
    }
    

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 50px;
        max-width: 250px;
    }

    .footer-logo-img {
        height: 40px;
        max-width: 200px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .hero {
        padding-top: 90px;
    }

    .nav-menu {
        top: 90px;
    }

}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modern Light Theme Overrides */
:root {
    /* Subtle corporate blue palette */
    --bg: #eef4ff;          /* page background base */
    --bg-contrast: #f8fbff; /* page background top */
    --surface: #ffffff;     /* card surface */
    --surface-2: #f1f5ff;   /* secondary surface */
    --text: #0f172a;
    --muted-text: #475569;
    --border: #e5e7eb;
    --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
    /* Corporate Blue */
    --accent: #2563eb;      /* blue-600 */
    --accent-700: #1d4ed8;  /* blue-700 */
    --accent-50: #eff6ff;   /* blue-50 */
    --radius: 12px;
    --radius-sm: 10px;
}

body {
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-contrast) 100%);
}

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-menu a { color: var(--text); }
.nav-menu a::after { background-color: var(--accent); }
.hamburger span { background: var(--text); }
.nav-logo h2 { color: var(--text); }

.hero {
    background: radial-gradient(1200px 600px at 20% 10%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-contrast) 100%);
}
.hero-content h1 { color: var(--text); }
.hero-content p { color: var(--muted-text); }

/* Language toggle on light header */
.lang-btn {
    border: 1px solid var(--border);
    color: var(--muted-text);
}
.lang-btn:hover { border-color: #cbd5e1; color: var(--text); }
.lang-btn.active { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

.btn-primary, .btn-secondary {
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background: linear-gradient(45deg, var(--accent), #00357b);
    color: #ffffff;
    border: 1px solid transparent;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--accent-50); transform: translateY(-2px); box-shadow: var(--shadow); }

.tech-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tech-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); background: var(--surface); }

.section-header h2 { color: var(--text); }
.section-header p { color: var(--muted-text); }
.content-text p { color: var(--muted-text); }
.feature i { color: var(--muted-text); }
.feature h4 { color: var(--text); }
.feature p { color: var(--muted-text); }

.image-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.image-placeholder:hover { border-color: var(--accent); box-shadow: var(--shadow); background: var(--accent-50); }
.image-placeholder i { color: var(--muted-text); }
.image-placeholder p { color: var(--muted-text); }

.dark-section { background: var(--surface-2); }
.light-section { background: var(--surface); color: var(--text); }
.light-section .section-header h2 { color: var(--text); }
.light-section .section-header p { color: var(--muted-text); }
.light-section .content-text p { color: var(--muted-text); }
.light-section .feature h4 { color: var(--text); }
.light-section .feature p { color: var(--muted-text); }
.light-section .feature i { color: var(--muted-text); }
.light-section .about-text p { color: var(--muted-text); }
.light-section .stat h3 { color: var(--text); }
.light-section .stat p { color: var(--muted-text); }
.light-section .image-placeholder { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.light-section .image-placeholder:hover { border-color: var(--accent); box-shadow: var(--shadow); background: var(--accent-50); }
.light-section .image-placeholder i { color: var(--muted-text); }
.light-section .image-placeholder p { color: var(--muted-text); }

.product-card, .solution-card, .reference-item, .service-item, .contact-form {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover, .solution-card:hover, .reference-item:hover, .service-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: var(--accent-50);
}
.product-icon, .solution-icon {
    background: var(--accent-50);
    color: var(--accent-700);
}
.product-card h3, .solution-card h3 { color: var(--text); }
.product-card p, .solution-card p, .reference-logo h4 { color: var(--muted-text); }
.reference-logo i { color: var(--muted-text); }

/* Improve contrast for consulting and contact */
.consulting-text h3 { color: var(--text); }
.contact-item h4 { color: var(--text); }
.contact-item p { color: var(--muted-text); }
.contact-item i { color: var(--muted-text); }

/* Service items text colors */
.service-item span { color: var(--text); }
.service-item i { color: var(--muted-text); }

.about-text p { color: var(--muted-text); }
.stat h3 { color: var(--text); }
.stat p { color: var(--muted-text); }

.form-group input, .form-group textarea {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }

/* Contact form heading in light theme */
.contact-form h3 {
    color: var(--text) !important;
}

.footer {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-top: 1px solid #e2e8f0;
}
.footer-logo h3 { color: var(--text); }
.footer-logo p { color: var(--muted-text); }
.footer-links a { color: var(--muted-text); }
.footer-links a:hover { color: var(--text); }
.footer-bottom p { color: #94a3b8; }
.footer-logo-img, .logo-img { filter: none; }

/* Link hover color to brand */
.nav-menu a:hover { color: var(--accent); }

/* Modern theme dropdown styles */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dropdown-menu a {
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--accent-50);
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 999999;
    }
}

/* Scrollbar light */
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* Animated background objects */
.bg-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-oval {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: float-bg 20s infinite ease-in-out;
}

.bg-oval:nth-child(1) {
    width: 200px;
    height: 120px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bg-oval:nth-child(2) {
    width: 150px;
    height: 100px;
    background: linear-gradient(45deg, #7c3aed, #a855f7);
    top: 60%;
    right: -3%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.bg-oval:nth-child(3) {
    width: 300px;
    height: 180px;
    background: linear-gradient(45deg, #059669, #10b981);
    top: 80%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 35s;
}

.bg-oval:nth-child(4) {
    width: 100px;
    height: 80px;
    background: linear-gradient(45deg, #dc2626, #ef4444);
    top: 30%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.bg-oval:nth-child(5) {
    width: 250px;
    height: 150px;
    background: linear-gradient(45deg, #0891b2, #06b6d4);
    top: 5%;
    right: 25%;
    animation-delay: -12s;
    animation-duration: 28s;
}

@keyframes float-bg {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg); 
    }
    50% { 
        transform: translateY(-40px) translateX(-10px) rotate(180deg); 
    }
    75% { 
        transform: translateY(-20px) translateX(15px) rotate(270deg); 
    }
}

/* Ensure content is above background objects */
.section > .container {
    position: relative;
    z-index: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .bg-oval { animation: none; opacity: 0.01; }
}

/* Medium screens: simplify hero layout to text-only to avoid tiny image */
@media (max-width: 1100px) and (min-width: 769px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 0 20px; }
    .hero-image { display: block; order: 2; margin-top: 2rem; }
}
/* Very large screens: scale hero title more gracefully */
@media (min-width: 1440px) {
    .hero-content h1 { font-size: clamp(3rem, 1.8rem + 2.2vw, 5rem); }
}

/* Products Page Styles */
.products-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    text-align: center;
}

.products-hero .section-header h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.products-hero .section-header p {
    color: #e0e7ff;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eef4ff 0%, #eff6ff 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card-detailed {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.product-header {
    margin-bottom: 2rem;
}

.product-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    border: 3px solid #bfdbfe;
    transition: all 0.3s ease;
}

.product-card-detailed:hover .product-icon-large {
    transform: scale(1.1);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #2563eb;
}

.product-card-detailed h2 {
    color: #1f2937;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-card-detailed .product-header p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.product-image-container {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.product-image-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card-detailed:hover .product-image-large {
    transform: scale(1.1);
}

.product-features {
    text-align: left;
    margin: 2rem 0;
}

.product-features h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: #4b5563;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #10b981;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.product-actions {
    margin-top: 2rem;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #e0e7ff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #ffffff;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Active navigation state */
.nav-menu a.active {
    color: #2563eb;
    position: relative;
}

.nav-menu a.active::after {
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* Mobile styles for products page */
@media (max-width: 768px) {
    .products-hero {
        padding: 100px 0 60px 0;
    }
    
    .products-hero .section-header h1 {
        font-size: 2.5rem;
    }
    
    .products-hero .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .products-grid-section {
        padding: 60px 0;
    }
    
    .products-grid {
        gap: 3rem;
    }
    
    .product-card-detailed {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .product-card-detailed h2 {
        font-size: 1.8rem;
    }
    
    .product-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .product-image-large {
        width: 100px;
        height: 100px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* References Page Styles */
.references-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    text-align: center;
}

.references-hero .section-header h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.references-hero .section-header p {
    color: #e0e7ff;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.references-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eef4ff 0%, #eff6ff 100%);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reference-card-detailed {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.reference-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.reference-logo-container {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.reference-logo-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.reference-card-detailed:hover .reference-logo-large {
    transform: scale(1.1);
}

.reference-content h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reference-category {
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.reference-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.partners-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.partner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.partner-card .partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    margin-bottom: 1rem;
}

.partner-card .partner-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
}

.partner-card:hover .partner-img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.partner-card .partner-logo h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.partner-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Mobile styles for references page */
@media (max-width: 768px) {
    .references-hero {
        padding: 100px 0 60px 0;
    }
    
    .references-hero .section-header h1 {
        font-size: 2.5rem;
    }
    
    .references-hero .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .references-grid-section,
    .partners-section {
        padding: 60px 0;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .reference-card-detailed {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .reference-logo-large {
        width: 100px;
        height: 100px;
    }
    
    .reference-content h2 {
        font-size: 1.6rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-card {
        min-height: 160px;
        padding: 1.5rem;
    }
}
