/* Inter Font - Local Files (Optimized - Only Used Weights) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* Quicksand Font - Local Files */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/Quicksand-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Quicksand-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Quicksand-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Quicksand-Bold.ttf') format('truetype');
}

/* ========== GLOBAL UTILITIES ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ========== NAVIGATION COMPONENT ========== */
.nav {
    transition: all 0.3s ease;
}

.nav__logo-box {
    transition: transform 0.3s ease;
}

.nav__logo-box:hover {
    transform: scale(1.05);
}

.nav__link {
    position: relative;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4F46E5;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: #1f3763;
    font-weight: bold;
}

.nav__link.active::after {
    width: 100%;
}

/* ========== HERO SECTION COMPONENT ========== */
.hero {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.hero__content {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__image {
    animation: moveUpDown 3s ease-in-out infinite;
}

@keyframes moveUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero__button {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hero__button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero__video-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff4f1f;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: transform 0.3s ease;
}

.hero__video-button:hover {
    transform: scale(1.1);
}

/* ========== TRANSFORMATION JOURNEY COMPONENT ========== */
.journey {
    background-color: #f8fafc;
    position: relative;
}

.journey__card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.journey__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.journey__card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid #ff5a1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff5a1f;
    z-index: 1;
    background-color: white;
    pointer-events: none;
    user-select: none;
}

.journey__image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 3px solid white;
    border-radius: 9999px;
    padding: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    overflow: hidden; /* ensure inner image is clipped to the circle */
}

.journey__card:hover .journey__image {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Ensure the image itself is perfectly round and centered */
.journey__image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: contain;
}

.journey__button {
    transition: all 0.3s ease;
}

.journey__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========== MODAL STYLES ========== */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

body.modal-open {
    overflow: hidden;
}

/* Carousel Modal - Quicksand Font */
#carousel-modal h1,
#carousel-modal h2,
#carousel-modal h3,
#carousel-modal h4,
#carousel-modal h5,
#carousel-modal h6,
#carousel-modal p,
#carousel-modal span,
#carousel-modal button,
#carousel-modal a,
#carousel-modal div {
    font-family: 'Quicksand', sans-serif;
}

/* Carousel Navigation Buttons */
#prev-btn, #next-btn {
    transition: background-color 0.3s ease;
}

#prev-btn:hover, #next-btn:hover {
    opacity: 1 !important;
}

/* Mobile specific carousel button styles */
@media (max-width: 768px) {
    #prev-btn, #next-btn {
        position: fixed !important;
    }
    
    #prev-btn {
        left: 10px !important;
    }
    
    #next-btn {
        right: 10px !important;
    }
}

/* Carousel Dots */
#carousel-dots button {
    cursor: pointer;
    transition: all 0.3s ease;
}

#carousel-dots button:hover {
    transform: scale(1.2);
}

/* Mobile safe-area helper for scrollable slides */
.safe-area-inset {
    padding-bottom: max(96px, env(safe-area-inset-bottom));
}

/* Older iOS support */
@supports (padding: constant(safe-area-inset-bottom)) {
    .safe-area-inset {
        padding-bottom: max(96px, constant(safe-area-inset-bottom));
    }
}

/* Ensure carousel dots sit just above device nav, as low as possible */
#carousel-dots {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

@supports (bottom: constant(safe-area-inset-bottom)) {
    #carousel-dots {
        bottom: calc(constant(safe-area-inset-bottom) + 8px);
    }
}

/* Use dynamic viewport height for modal slides to avoid OS UI overlap */
@supports (height: 100dvh) {
    .modal .h-screen {
        height: 100dvh;
    }
}

/* Improve touch scrolling behavior for scrollable slides */
.scroll-touch {
    -webkit-overflow-scrolling: touch;
}

.touch-pan-y {
    touch-action: pan-y;
}

/* Utility to add only bottom safe padding for inner sections */
.pb-device-safe {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

@supports (padding: constant(safe-area-inset-bottom)) {
    .pb-device-safe {
        padding-bottom: calc(24px + constant(safe-area-inset-bottom));
    }
}

/* Checkbox Styling for Better Mobile Experience */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    min-width: 2rem;
    min-height: 2rem;
    aspect-ratio: 1 / 1;
}

input[type="checkbox"]:checked {
    background-color: #f97316;
    border-color: #f97316;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

input[type="checkbox"]:hover {
    border-color: #f97316;
}

input[type="checkbox"]:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Mobile checkbox sizing */
@media (max-width: 640px) {
    input[type="checkbox"].h-8 {
        min-height: 2rem !important;
        min-width: 2rem !important;
        height: 2rem !important;
        width: 2rem !important;
    }
}

/* Make checkboxes even bigger on very small screens */
@media (max-width: 400px) {
    input[type="checkbox"].h-8 {
        min-height: 2.5rem !important;
        min-width: 2.5rem !important;
        height: 2.5rem !important;
        width: 2.5rem !important;
    }
}

/* ========== CUSTOM PHOTO CAROUSEL COMPONENT ========== */
.deep-carousel-wrapper {
    position: relative;
}

.deep-carousel-container {
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.deep-carousel-container::-webkit-scrollbar {
    display: none;
}

.deep-carousel-slide {
    scroll-snap-align: start;
    min-width: 100%;
}

.deep-carousel-dots .deep-carousel-dot.active {
    background-color: #ff5a1f;
}

/* ========== AI TRANSFORMATION COMPONENT ========== */
.ai-transformation {
    background-color: #f8fafc;
    position: relative;
}

.ai-transformation__card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-transformation__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.ai-transformation__cta-primary {
    transition: all 0.3s ease;
}

.ai-transformation__cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.3);
}

.ai-transformation__cta-secondary {
    transition: all 0.3s ease;
}

.ai-transformation__cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* ========== MOBILE NAVIGATION STYLES ========== */
.nav__link--mobile {
    transition: all 0.2s ease;
}

.nav__link--mobile:hover {
    transform: translateX(5px);
}

#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CTA FORM COMPONENT ========== */
.cta-form {
    background-color: #f8fafc;
    padding: 3rem 0;
}

.cta-form__input {
    transition: all 0.3s ease;
}

.cta-form__input:focus {
    transform: translateY(-1px);
}

.cta-form__submit {
    transition: all 0.3s ease;
}

.cta-form__submit:hover {
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.3);
}

/* ========== REFERENCES SECTION COMPONENT ========== */
.logo-carousel-track {
    display: flex;
    width: calc(200px * 14);
    animation: scroll-logos 20s linear infinite;
}

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

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7));
    }
}

.logo-item {
    min-width: 200px;
    height: 120px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.logo-placeholder {
    width: 140px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

/* Category specific colors */
.banking-logo {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.defense-logo {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.media-logo {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.other-logo {
    background: linear-gradient(135deg, #059669, #10b981);
}

.references-category {
    margin-bottom: 2rem;
}

.references-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1f2937;
    position: relative;
}

.references-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #8B5CF6);
    border-radius: 2px;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem 0;
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc, transparent);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #f8fafc, transparent);
}

/* Logo grid styles */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
    padding: 0 12px;
    justify-items: center;
}

.logo-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 200px;
    height: 120px;
    position: relative;
}

.logo-grid-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.2);
}

.logo-grid-item img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.logo-grid-item:hover img {
    transform: scale(1.08);
}

/* References category styling */
.references-category {
    margin-bottom: 64px;
}

.references-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
    position: relative;
}

.references-category h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    border-radius: 1px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .references-category {
        margin-bottom: 48px;
    }
    
    .references-category h3 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        margin-bottom: 32px;
        justify-items: center;
    }
    
    .logo-grid-item {
        width: 150px;
        height: 90px;
        padding: 12px;
    }
    
    .logo-grid-item img {
        max-width: 120px;
        max-height: 60px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

/* ========== CTA COMPONENT ========== */
.cta {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta__button {
    transition: all 0.3s ease;
}

.cta__button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ========== FOOTER COMPONENT ========== */
.footer__link {
    transition: all 0.3s ease;
}

.footer__link:hover {
    transform: translateX(5px);
}

.footer__social-icon {
    transition: all 0.3s ease;
}

.footer__social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
}