/* Bio Code Technology - Master Stylesheet */
/* Architecture: CSS3 with Glassmorphism & Dark Mode Enterprise Design */

:root {
    --primary: #3b82f6;
    --secondary: #1e40af;
    --accent: #6366f1;
    --dark-bg: #0f1419;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
}

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

html {
    /* Hide scrollbar for all browsers */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Subtle Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f1419 40%),
        radial-gradient(circle at bottom left, #1e1b4b 0%, #0f1419 40%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.cta-button:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.4);
}

.cta-outline {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.55);
    box-shadow: none;
}

.cta-outline:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

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

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tech-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.client-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    transition: all 0.3s ease;
}

.client-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-logo i {
    color: var(--primary);
}

.client-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.client-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-card-mini:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    color: white;
    gap: 0.8rem;
}

/* HFT Special Card */
.hft-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(15, 20, 25, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.hft-content {
    flex: 1;
}

.hft-visual {
    flex: 0 0 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.hft-visual::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Contact Form */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

.form-submit {
    width: 100%;
    background: #1e40af;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background: #1e3a8a;
}

/* Footer */
footer {
    background: #0a0d11;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
    opacity: 1;
    visibility: visible;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

footer .reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Responsive Design */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
    header {
        padding: 1rem 1.5rem;
    }

    .logo-img {
        height: 100px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .section {
        padding: 6rem 2rem;
    }

    .hft-card {
        gap: 2rem;
    }

    .hft-visual {
        flex: 0 0 250px;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        display: flex;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) a { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) a { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) a { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) a { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) a { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) a { transition-delay: 0.6s; }
    .nav-links.active li:nth-child(7) a { transition-delay: 0.7s; }
    .nav-links.active li:nth-child(8) a { transition-delay: 0.8s; }
    .nav-links.active li:nth-child(9) a { transition-delay: 0.9s; }

    .logo-img {
        height: 80px;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-container {
        padding: 2rem 1.5rem;
    }

    .hft-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .hft-visual {
        width: 100%;
        height: 180px;
        flex: none;
    }

    .glass-card,
    .project-card,
    .service-card,
    .client-card {
        padding: 1.5rem 1rem;
    }

    .client-logo {
        font-size: 1.2rem;
    }

    .client-card h3 {
        font-size: 1rem;
    }

    .client-card p {
        font-size: 0.85rem;
    }
}

@media (min-width: 1025px) {
    .live-coding-content {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .live-coding-content > div {
        flex: 1 1 48%;
        max-width: 48%;
    }

    .live-coding-content .video-description {
        width: 100%;
    }

    .live-coding-content .video-container {
        max-width: none;
    }

    .live-coding-content hr {
        display: none;
    }
}

/* ============================================================================
 * SECTION THEMES - Technological & Disruptive Design
 * ============================================================================ */

/* THEME 1: ABOUT US - "Origin Code" */
#about {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(5, 15, 35, 0.95) 100%);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(34, 197, 94, 0.03) 0px,
            rgba(34, 197, 94, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(34, 197, 94, 0.03) 0px,
            rgba(34, 197, 94, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

#about > .reveal {
    position: relative;
    z-index: 1;
}

#about .section-header h2 {
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#about .tech-item {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#about .tech-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#about .tech-item:hover {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    transform: translateY(-8px);
}

#about .tech-item:hover::before {
    opacity: 1;
}

/* THEME 2: OUR CLIENTS - "Enterprise Matrix" */
#clients {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(30, 15, 50, 0.95) 100%);
}

#clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#clients > .reveal {
    position: relative;
    z-index: 1;
}

#clients .section-header h2 {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#clients .client-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#clients .client-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.6s ease;
}

#clients .client-card:hover::after {
    left: 100%;
}

#clients .client-card:hover {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    transform: translateY(-10px);
}

/* THEME 3: SERVICES - "Innovation Spectrum" */
#services {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(35, 15, 25, 0.95) 100%);
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.05) 0%, transparent 25%),
        linear-gradient(90deg, transparent 25%, rgba(236, 72, 153, 0.05) 50%),
        linear-gradient(90deg, transparent 50%, rgba(99, 102, 241, 0.05) 75%),
        linear-gradient(90deg, transparent 75%, rgba(34, 197, 94, 0.05) 100%);
    background-size: 200% 100%;
    pointer-events: none;
    z-index: 0;
    animation: spectrumShift 8s linear infinite;
}

@keyframes spectrumShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

#services > .reveal {
    position: relative;
    z-index: 1;
}

#services .section-header h2 {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 25%, #6366f1 50%, #22c55e 75%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

#services .service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#services .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #ec4899, #6366f1, #22c55e, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#services .service-card:hover::before {
    transform: scaleX(1);
}

#services .service-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
}

#services .service-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    color: #f97316;
    transition: all 0.3s ease;
}

#services .service-card:hover .service-icon {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    color: white;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* THEME 5: TALK TO A SPECIALIST - "Executive Brief" */
#specialist {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.96) 0%, rgba(10, 20, 35, 0.96) 100%);
}

#specialist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
}

#specialist > .reveal {
    position: relative;
    z-index: 1;
}

#specialist .section-header h2 {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 60%, #ffffff 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.specialist-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: stretch;
}

.specialist-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    height: 100%;
}

.specialist-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.pill-primary {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.10);
}

.pill-secondary {
    border-color: rgba(99, 102, 241, 0.30);
    background: rgba(99, 102, 241, 0.10);
}

.specialist-card h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.specialist-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.specialist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.specialist-notes {
    display: grid;
    gap: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.note-item i {
    color: var(--primary);
    margin-top: 0.1rem;
}

.note-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.note-item a:hover {
    color: #ffffff;
}

.specialist-figure {
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
}

.specialist-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 12%;
    max-height: clamp(340px, 46vh, 560px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    filter: saturate(1.03) contrast(1.02);
}

.specialist-figure figcaption {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* THEME 4: LIVE CODING - "Execution Arena" */
#live-coding {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(20, 30, 15, 0.98) 100%);
}

#live-coding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(34, 197, 94, 0.03) 0px,
            rgba(34, 197, 94, 0.03) 2px,
            transparent 2px,
            transparent 4px
        );
    background-size: 100% 20px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

#live-coding > .reveal {
    position: relative;
    z-index: 1;
}

#live-coding .section-header h2 {
    font-family: 'Courier New', monospace;
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    letter-spacing: 2px;
}

#live-coding .video-container {
    border: 2px solid #22c55e;
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
    background: rgba(0, 0, 0, 0.8);
    position: relative;
}

#live-coding .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, transparent 24%, rgba(34, 197, 94, 0.05) 25%, rgba(34, 197, 94, 0.05) 26%, transparent 27%, transparent 74%, rgba(34, 197, 94, 0.05) 75%, rgba(34, 197, 94, 0.05) 76%, transparent 77%, transparent);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.97; }
}

#live-coding .video-description {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

#live-coding .video-description h3 {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* ============================================================================
 * TYPEWRITER EFFECT - Hacker/Retro Computer Style
 * ============================================================================ */

.typewriter {
  font-family: 'Courier New', Courier, monospace !important;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ffffff;
  text-align: center;
  margin: 0 auto;
  display: inline-block;
  /* Ajuste os dois valores para o número de caracteres da sua frase! */
  width: 58ch;
  animation:
    typewriter 4s steps(58, end) forwards,
    blink .75s step-end infinite;
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 70ch; }
}

@keyframes blink {
  0%, 100% { border-color: transparent }
  50%      { border-color: #fff }
}


/* Mobile typewriter responsiveness */
@media (max-width: 768px) {
    .typewriter {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        border-right: 2px solid #ffffff;
        width: auto;
        max-width: 90vw;
        padding: 0 1rem;
    }
}

/* Mobile responsiveness for Specialist section */
@media (max-width: 768px) {
    .specialist-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .specialist-card {
        padding: 1.75rem 1.25rem;
    }

    .specialist-figure {
        padding: 1rem;
    }

    .specialist-photo {
        max-height: min(420px, 52vh);
        object-position: 50% 10%;
    }
}
