@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --tf-primary: #0056b3;
    --tf-secondary: #f8f9fa;
    --tf-text: #333333;
    --tf-text-light: #6c757d;
    --tf-heading: #111111;
    --tf-border: #e9ecef;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tf-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tf-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ThemeForest specific utilities */
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--tf-secondary); }

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
}

/* Buttons */
.tf-btn {
    display: inline-block;
    padding: 16px 35px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}
.tf-btn-primary {
    background: var(--tf-primary);
    color: #fff;
    border: 2px solid var(--tf-primary);
}
.tf-btn-primary:hover {
    background: transparent;
    color: var(--tf-primary);
}
.tf-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.tf-btn-outline:hover {
    background: #fff;
    color: var(--tf-text);
}

@media (max-width: 768px) {
    .tf-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        margin-bottom: 0;
    }
}

/* Header & Nav */
.top-bar {
    background: #111;
    color: #aaa;
    font-size: 13px;
    padding: 10px 0;
}
.top-bar a { transition: color 0.3s; }
.top-bar a:hover { color: var(--tf-primary); }

.navbar {
    background: #fff;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--tf-border);
}
.navbar.sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}
.nav-link.active {
    color: var(--tf-primary);
    position: relative;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tf-primary);
    border-radius: 2px;
}
.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--tf-heading);
    margin-left: 30px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--tf-primary); }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2940&auto=format&fit=crop') center/cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 150px;
}
.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--tf-primary);
    font-size: 24px;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 52px;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-content { padding-top: 80px; }
    .hero-slider { min-height: 400px; height: auto; padding-bottom: 80px; }
}

/* Icon Boxes (Services) */
.icon-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-bottom-color: var(--tf-primary);
}
.icon-box-icon {
    font-size: 50px;
    color: var(--tf-primary);
    margin-bottom: 25px;
    transition: transform 0.3s;
}
.icon-box:hover .icon-box-icon {
    transform: scale(1.1);
}

/* Client Carousel Marquee */
.client-logos-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.client-logos {
    display: inline-flex;
    align-items: center;
    padding-left: 100%;
    animation: marquee-logos 30s linear infinite;
    opacity: 1;
    transition: all 0.3s ease;
}
.client-logos:hover {
    animation-play-state: paused;
}
.client-logos img {
    display: inline-block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 40px;
    vertical-align: middle;
}
@keyframes marquee-logos {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Industry Cards */
.industry-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--tf-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tf-primary) 0%, #003d82 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}
.industry-card:hover::before { opacity: 1; }
.industry-card:hover h4, .industry-card:hover i {
    color: #fff !important;
}

/* Trust Badges */
.trust-badge {
    background: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--tf-text);
    border: 1px solid var(--tf-border);
    transition: all 0.3s ease;
}
.trust-badge:hover {
    border-color: var(--tf-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
}

/* Progress Bars */
.progress-bar-wrap { margin-bottom: 25px; }
.progress-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}
.progress-bg {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--tf-primary);
    width: 0; /* animated via JS */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 30px;
    border-right: 1px solid var(--tf-border);
}
.counter-box:last-child { border-right: none; }
.counter-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--tf-heading);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .counter-box { border-right: none; border-bottom: 1px solid var(--tf-border); }
    .counter-box:last-child { border-bottom: none; }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--tf-primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--tf-heading);
}

/* Footer */
.footer-area {
    background: #111;
    color: #999;
    padding: 80px 0 30px;
}
.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--tf-primary);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #999;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--tf-primary);
    padding-left: 5px;
}

/* Studio Spotlight & Advanced Team Cards */
.team-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.12);
}
.team-photo-wrapper {
    background: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #e2e8f0 70%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}
.team-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(15,23,42,0.05) 100%);
    pointer-events: none;
}

/* Gradient Typography */
.gradient-text {
    background: linear-gradient(135deg, #0056b3 0%, #1e40af 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Team & Consultation Modal & Backdrop */
#team-modal, #consultation-modal {
    z-index: 9999 !important;
}
.modal-backdrop {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#team-modal > div {
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar for Modal Bio */
#team-modal ::-webkit-scrollbar {
    width: 6px;
}
#team-modal ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
#team-modal ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#team-modal ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}