/* ===== btdigitalstudio - Professional Theme ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --bg-soft: #f5f6f8;
    --bg-dark: #0f1117;
    --bg-dark-soft: #181b23;
    --bg-card: #ffffff;
    --bg-subtle: #f0f1f3;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-light: #f9fafb;
    --text-light-secondary: rgba(255,255,255,0.65);
    --accent: #111827;
    --accent-soft: #374151;
    --highlight: #6366f1;
    --highlight-light: rgba(99,102,241,0.08);
    --highlight-hover: #4f46e5;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: rgba(255,255,255,0.08);
    --white: #ffffff;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --max-w: 1140px;
    --nav-h: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate { opacity: 0; }
.animate.in-view { animation: fadeUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s !important; }
.animate-delay-2 { animation-delay: 0.2s !important; }
.animate-delay-3 { animation-delay: 0.3s !important; }
.animate-delay-4 { animation-delay: 0.4s !important; }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(15,17,23,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: border-color var(--transition);
}
.navbar.scrolled { border-bottom-color: rgba(255,255,255,0.12); }
.navbar .container {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-brand {
    display: flex; align-items: center;
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: -0.5px;
    transition: opacity var(--transition);
}
.nav-brand:hover { opacity: 0.8; }
.brand-bt {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.brand-rest {
    color: var(--text-light);
    font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-light-secondary); padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-light); background: rgba(255,255,255,0.06); }
.nav-links a.nav-cta {
    color: var(--bg-dark); background: var(--text-light);
    padding: 10px 24px; margin-left: 8px; font-weight: 600;
    border-radius: 100px;
}
.nav-links a.nav-cta:hover { background: rgba(255,255,255,0.85); }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; transition: 0.3s; }

/* ====== HERO (Dark) ====== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 24px 80px; position: relative; overflow: hidden;
    background: var(--bg-dark);
}
.hero::before {
    content: ''; position: absolute;
    top: -30%; right: -15%; width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute;
    bottom: -20%; left: -10%; width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.2);
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: #a5b4fc; margin-bottom: 28px;
    animation: fadeIn 0.6s ease forwards;
}
.hero-tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 700; line-height: 1.1;
    letter-spacing: -1.5px; color: var(--text-light);
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease 0.1s forwards; opacity: 0;
}
.hero-content h1 .highlight {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p {
    font-size: 1.05rem; color: var(--text-light-secondary);
    line-height: 1.8; max-width: 480px; margin-bottom: 36px;
    animation: fadeUp 0.6s ease 0.2s forwards; opacity: 0;
}
.hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s forwards; opacity: 0;
}
.hero-image {
    position: relative;
    animation: scaleIn 0.8s ease 0.2s forwards; opacity: 0;
}
.hero-image img {
    width: 100%; border-radius: var(--radius);
    aspect-ratio: 4/3; object-fit: cover; object-position: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-image-badge {
    position: absolute; bottom: 24px; left: -20px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 20px;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
    animation: float 4s ease 1s infinite;
}
.hero-image-badge-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--highlight-light); color: var(--highlight);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.hero-image-badge h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.hero-image-badge p { font-size: 0.72rem; color: var(--text-muted); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 100px;
    font-family: var(--font); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary { background: var(--white); color: var(--bg-dark); }
.btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--text-light-secondary); border: 1.5px solid rgba(255,255,255,0.15); }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--text-light); }
.btn-dark { background: var(--accent); color: white; }
.btn-dark:hover { background: var(--accent-soft); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-highlight { background: var(--highlight); color: white; }
.btn-highlight:hover { background: var(--highlight-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.25); }

/* ====== LOGOS BAR ====== */
.logos-bar {
    padding: 56px 0;
    background: var(--bg-dark-soft);
    border-bottom: 1px solid var(--border-dark);
}
.logos-bar-label {
    text-align: center; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 28px;
}
.logos-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 56px; flex-wrap: wrap;
}
.logo-item {
    display: flex; align-items: center; justify-content: center;
    opacity: 0.35; transition: opacity var(--transition);
    height: 32px;
}
.logo-item:hover { opacity: 0.7; }
.logo-item img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.logo-item-text {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 800;
    letter-spacing: -0.3px; color: var(--text-light);
    line-height: 1;
}
.logo-item-text small {
    display: block; font-size: 0.52rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: #a5b4fc; margin-top: 1px;
}
.logo-item-text.workout-logo small { color: #f97316; }

/* ====== ABOUT (Light) ====== */
.about-section { padding: 120px 0; background: var(--bg); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.about-tag {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--highlight); margin-bottom: 16px; display: block;
}
.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: -1px; line-height: 1.15;
    margin-bottom: 20px;
}
.about-content p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 16px;
}
.about-skills {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.skill-tag {
    padding: 8px 16px; border-radius: 100px;
    background: var(--bg-soft); border: 1px solid var(--border);
    font-size: 0.76rem; font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition);
}
.skill-tag:hover {
    border-color: var(--highlight); color: var(--highlight);
    background: var(--highlight-light);
}
.about-image { position: relative; }
.about-image img {
    border-radius: var(--radius); width: 100%;
    aspect-ratio: 3/4; object-fit: cover; object-position: top;
    border: 1px solid var(--border);
}

/* ====== SERVICES (Soft bg) ====== */
.services-section {
    padding: 120px 0; background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--highlight);
    margin-bottom: 16px; display: block;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: -1px; margin-bottom: 16px;
}
.section-subtitle {
    font-size: 0.95rem; color: var(--text-secondary);
    max-width: 520px; margin: 0 auto; line-height: 1.7;
}
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
    padding: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card:hover {
    border-color: var(--highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-icon-img {
    width: 100%; height: 200px;
    overflow: hidden;
}
.service-icon-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-icon-img img { transform: scale(1.05); }
.service-card-body { padding: 28px 28px 32px; }
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 600;
    margin-bottom: 10px; letter-spacing: -0.2px;
}
.service-card p {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
}

/* ====== PORTFOLIO ====== */
.portfolio-section { padding: 120px 0; background: var(--bg); }
.portfolio-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.portfolio-card {
    position: relative; padding: 48px 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; gap: 16px; min-height: 240px;
    transition: all var(--transition);
}
.portfolio-card:hover {
    border-color: var(--highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.portfolio-logo {
    height: 40px; display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.portfolio-logo img { height: 40px; width: auto; }
.portfolio-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.5px; color: var(--text); line-height: 1;
}
.portfolio-logo-text small {
    display: block; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--highlight); margin-top: 2px;
}
.portfolio-logo-text.workout-logo small { color: #f97316; }
.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600; margin-bottom: 2px;
}
.portfolio-info p {
    font-size: 0.78rem; color: var(--text-muted);
}
.portfolio-link {
    font-size: 0.76rem; font-weight: 600; color: var(--highlight);
    display: inline-flex; align-items: center; gap: 4px;
    opacity: 0; transform: translateY(6px);
    transition: all var(--transition);
}
.portfolio-card:hover .portfolio-link { opacity: 1; transform: translateY(0); }

/* ====== PROCESS (Dark) ====== */
.process-section {
    padding: 120px 0;
    background: var(--bg-dark);
}
.process-section .section-tag { color: #a5b4fc; }
.process-section .section-title { color: var(--text-light); }
.process-section .section-subtitle { color: var(--text-light-secondary); }
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.process-card {
    text-align: center; padding: 36px 20px;
    border: 1px solid var(--border-dark); border-radius: var(--radius);
    transition: all var(--transition);
}
.process-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(255,255,255,0.02);
}
.process-number {
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    opacity: 0.4;
    line-height: 1; margin-bottom: 14px;
}
.process-card h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600;
    margin-bottom: 8px; letter-spacing: -0.2px;
    color: var(--text-light);
}
.process-card p {
    font-size: 0.82rem; color: var(--text-light-secondary); line-height: 1.7;
}

/* ====== CTA ====== */
.cta-section {
    padding: 120px 0; text-align: center;
    position: relative; overflow: hidden;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
}
.cta-section::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 700;
    letter-spacing: -1.5px; margin-bottom: 14px; position: relative;
}
.cta-section > .container > p {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 460px; margin: 0 auto 36px;
    line-height: 1.8; position: relative;
}
.cta-actions { position: relative; }
.cta-info {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 44px; flex-wrap: wrap; position: relative;
}
.cta-info-item { text-align: center; }
.cta-info-item span {
    display: block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
}
.cta-info-item a,
.cta-info-item p {
    font-size: 0.92rem; color: var(--text-secondary);
    transition: color var(--transition);
}
.cta-info-item a:hover { color: var(--highlight); }

/* ====== FOOTER (Dark) ====== */
.footer {
    padding: 40px 24px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px; opacity: 0.5;
}
.footer-brand .brand-bt {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.footer-brand .brand-rest {
    color: var(--text-light);
    font-weight: 600;
}
.footer p { font-size: 0.76rem; color: rgba(255,255,255,0.3); }

/* ====== RESPONSIVE ====== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed; top: 0; right: 0;
        width: 300px; max-width: 85vw; height: 100vh;
        background: var(--bg-dark); flex-direction: column;
        padding: 100px 32px 40px; gap: 0; align-items: stretch;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999; overflow-y: auto;
        box-shadow: -8px 0 40px rgba(0,0,0,0);
        border-left: 1px solid var(--border-dark);
    }
    .nav-links.active { transform: translateX(0); box-shadow: -8px 0 40px rgba(0,0,0,0.3); }
    .mobile-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 998; opacity: 0; visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    .mobile-overlay.active { opacity: 1; visibility: visible; }
    .nav-links a { padding: 16px 0; font-size: 1rem; border-bottom: 1px solid var(--border-dark); border-radius: 0; }
    .nav-links a.nav-cta { margin-left: 0; margin-top: 16px; text-align: center; border-bottom: none; border-radius: 100px; }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image-badge { left: 50%; transform: translateX(-50%); bottom: -12px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-image { order: -1; max-width: 400px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .logos-grid { gap: 36px; }
}

@media (max-width: 600px) {
    .hero { min-height: auto; padding: 120px 24px 60px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .section-title { font-size: 1.7rem; }
    .about-content h2 { font-size: 1.7rem; }
    .process-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.8rem; }
    .cta-info { flex-direction: column; gap: 24px; }
    .logos-grid { gap: 24px; }
}
