:root {
    --primary-blue: #1565AD;
    --secondary-blue: #2196F3;
    --accent-blue: #1976D2;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: #cccccc;
    --shadow-primary: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.3);
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Selection styling */
::selection {
    background: var(--secondary-blue);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--secondary-blue);
    color: var(--text-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 700;
}

/* Modern tech-inspired typography */
.tech-text {
    font-family: 'JetBrains Mono', monospace;
}

.modern-text {
    font-family: 'Space Grotesk', sans-serif;
}

/* Dynamic Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, #1565AD 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, #2196F3 0%, transparent 25%),
        radial-gradient(circle at 75% 25%, #0D47A1 0%, transparent 25%),
        radial-gradient(circle at 25% 75%, #1976D2 0%, transparent 25%);
    animation: bgFloat 30s ease-in-out infinite;
    opacity: 0.15;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(21, 101, 173, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(33, 150, 243, 0.05) 50%, transparent 70%);
    animation: bgShift 20s ease-in-out infinite reverse;
}

/* Particle System */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: 3s; animation-duration: 30s; }
.particle:nth-child(3) { left: 30%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 9s; animation-duration: 28s; }
.particle:nth-child(5) { left: 50%; animation-delay: 12s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; animation-delay: 15s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; animation-delay: 18s; animation-duration: 32s; }
.particle:nth-child(8) { left: 80%; animation-delay: 21s; animation-duration: 27s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

@keyframes bgFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    33% {
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        transform: rotate(240deg) scale(0.9);
    }
}

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

/* Modern Glass Header - sempre escuro */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo {
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
}

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

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #2196F3;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #1565AD, #2196F3);
    transition: width 0.3s ease;
}

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

/* Dynamic Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(21, 101, 173, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #2196F3 50%, #1565AD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(33, 150, 243, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #1565AD 0%, #2196F3 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(21, 101, 173, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button::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.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(21, 101, 173, 0.4),
        0 0 0 1px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Portfolio Section */
.portfolio {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(21, 101, 173, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #2196F3 50%, #1565AD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1565AD, #2196F3);
    border-radius: 2px;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card, .service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 101, 173, 0.1) 0%, rgba(33, 150, 243, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 24px;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1565AD, #2196F3, #1565AD);
    border-radius: 26px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    opacity: 0.6;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1565AD 0%, #2196F3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(21, 101, 173, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 40px rgba(21, 101, 173, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover h3 {
    color: #2196F3;
}

.product-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(21, 101, 173, 0.3));
    color: #2196F3;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(21, 101, 173, 0.4));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.product-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.product-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: #1565AD;
    transform: translateX(5px);
}

.product-link:hover::after {
    transform: translateX(5px);
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 43, 71, 0.8) 100%);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2196F3, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

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

.copyright {
    color: #888888;
    font-size: 0.9rem;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .products-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .product-card, .service-card {
        padding: 2rem 1.5rem;
    }

    .section-title h2 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .portfolio, .services, .about, .contact {
        padding: 4rem 1.5rem;
    }

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

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* About Section - Modern Design */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #11223a 0%, rgba(26, 43, 71, 0.8) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(21, 101, 173, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(33, 150, 243, 0.1) 0%, transparent 30%);
    animation: aboutBg 25s linear infinite;
}

@keyframes aboutBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1em;
    text-align: justify;
    color: #e0e0e0 !important;
    background: transparent !important;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-size: 1.8em;
    width: 100%;
    background: transparent !important;
}

/* social-links - BOTÕES REFORMULADOS */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaçamento entre os botões */
    flex-wrap: wrap; /* Garante que quebrem a linha em telas pequenas */
    

}

/* Estilo base para todos os botões de redes sociais */
.social-links a {
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 20px; /* Aumenta o preenchimento interno */
    border-radius: 8px; /* Cantos mais arredondados */
    transition: all 0.3s ease; /* Transição suave para hover */
    display: flex; /* Para alinhar ícone e texto */
    align-items: center;
    gap: 10px; /* Espaçamento entre ícone e texto */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil para profundidade */
    font-weight: 600; /* Deixa o texto um pouco mais forte */
    height: 80px;
}

.social-links a i {
    font-size: 1.5em; /* Aumenta o tamanho dos ícones */
}

/* Estilos específicos para o LinkedIn */
.social-links a[aria-label="LinkedIn"] {
    background-color: #0077B5; /* Azul do LinkedIn */
    color: #ffffff; /* Texto branco */
}

.social-links a[aria-label="LinkedIn"]:hover {
    background-color: #005f91; /* Azul mais escuro no hover */
    transform: translateY(-3px); /* Efeito de elevação */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra mais forte no hover */
}

/* Estilos específicos para o Instagram */
.social-links a[aria-label="Instagram"] {
    /* Gradiente do Instagram - um pouco mais complexo, mas muito legal */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border: none; /* Não precisa de borda com o gradiente */
}

.social-links a[aria-label="Instagram"]:hover {
    /* Pequena variação no gradiente no hover */
    background: linear-gradient(45deg, #f3a04f 0%, #eb7952 25%, #e03c58 50%, #d43477 75%, #c52994 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos específicos para o Facebook */
.social-links a[aria-label="Facebook"] {
    background-color: #1877F2; /* Azul do Facebook */
    color: #ffffff;
}

.social-links a[aria-label="Facebook"]:hover {
    background-color: #145cb3; /* Azul mais escuro no hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Contact Section - Enhanced */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a2b47 0%, rgba(21, 101, 173, 0.2) 100%);
    text-align: left;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

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

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content p {
    margin-bottom: 10px;
}

.contact-content a {
    color: #1565AD;
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* Estilos para a Página de Detalhes do Projeto */
.project-detail {
    padding: 20px 0px;
    /* background: #0a0a0a; Fundo escuro como nas outras seções */
    color: #ffffff;
}

.project-detail .container {
    max-width: 960px; /* Largura máxima para o conteúdo do projeto */
    margin: 0 auto; /* Centraliza */
    padding: 30px;
    background-color: #1a2b47; /* Cor de fundo para o card de detalhes */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.project-detail-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #1565AD; /* Cor de destaque do SENAI */
    text-align: center;
    line-height: 1.2;
}

.project-detail-description {
    font-size: 1.3em;
    color: #cccccc;
    text-align: center;
    margin-bottom: 50px;
}

.project-content {
    line-height: 1.9;
    font-size: 1.15em;
    text-align: justify; /* Justifica o texto para melhor leitura */
    color: #e0e0e0;
}

/* Estilos para elementos Markdown dentro do .project-content */
.project-content h1,
.project-content h2,
.project-content h3,
.project-content h4,
.project-content h5,
.project-content h6 {
    color: #1565AD; /* Cor de destaque para os títulos do conteúdo */
    margin-top: 35px;
    margin-bottom: 18px;
    text-align: left;
}

.project-content h1 { font-size: 2.2em; }
.project-content h2 { font-size: 1.8em; }
.project-content h3 { font-size: 1.5em; }

.project-content p {
    margin-bottom: 18px;
}

.project-content img {
    max-width: 100%; /* Imagens responsivas */
    height: auto;
    display: block; /* Garante que a imagem ocupe sua própria linha */
    margin: 30px auto; /* Centraliza a imagem e adiciona margem */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.project-content ul,
.project-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
    list-style-type: disc; /* ou circle, square para ul; decimal para ol */
}

.project-content li {
    margin-bottom: 10px;
}

.project-content a {
    color: #66ccff; /* Cor de link para o conteúdo */
    text-decoration: underline;
}

.project-content a:hover {
    text-decoration: none;
}

/* Estilos para blocos de código */
.project-content pre {
    background-color: #0d1117; /* Fundo escuro para blocos de código */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* Adiciona scroll horizontal se o código for muito longo */
    margin-bottom: 20px;
    font-family: 'Fira Code', 'Cascadia Code', monospace; /* Fonte monoespaçada */
    font-size: 0.95em;
}

.project-content code {
    color: #c9d1d9;
}

/* Estilos para tabelas */
.project-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.project-content th,
.project-content td {
    border: 1px solid #30363d;
    padding: 10px;
    text-align: left;
}

.project-content th {
    background-color: #1565AD;
    color: #ffffff;
}

/* Botão voltar ao portfólio */
.back-to-portfolio {
    text-align: center;
    margin-top: 50px;
}

.back-to-portfolio .cta-button {
    width: 100%;
    display: inline-block;
    padding: 15px 30px;
    background-color: #1565AD;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
}

.back-to-portfolio .cta-button:hover {
    background-color: #0d4b8a;
    transform: translateY(-3px);
}


/* Garante que o corpo da página principal não role quando o overlay estiver ativo */
body.overlay-active {
    overflow: hidden;
}


/* Modern Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2196F3;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

body.dark-theme .filter-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 101, 173, 0.3), rgba(33, 150, 243, 0.3));
    transition: left 0.4s ease;
    border-radius: 50px;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    border-color: #2196F3;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1565AD, #2196F3);
    color: #ffffff;
    border-color: #1565AD;
    box-shadow: 
        0 8px 25px rgba(21, 101, 173, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    display: none;
}


/* --- Estilos para a Seção de Serviços --- */

.services {
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 43, 71, 0.3) 100%);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(21, 101, 173, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 101, 173, 0.05) 0%, rgba(33, 150, 243, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 24px;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(33, 150, 243, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 0 30px rgba(33, 150, 243, 0.6),
        0 8px 32px rgba(21, 101, 173, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1565AD 0%, #2196F3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 8px 32px rgba(21, 101, 173, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1565AD, #2196F3, #1565AD);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 0.7;
}

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

.service-card p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Estilos para Vídeos Responsivos (YouTube, Vimeo, etc.) --- */
.video-responsive {
    position: relative;
    overflow: hidden;
    
    /* MUDANÇA PRINCIPAL AQUI: */
    /* Define uma largura máxima para o vídeo, permitindo que ele seja centralizado */
    max-width: 720px; 
    width: 100%;      /* Mantém a responsividade em telas menores que 720px */
    
    padding-top: 56.25%; /* Proporção 16:9 */
    margin: 30px auto; /* O 'auto' agora consegue centralizar o bloco */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove a borda padrão do iframe */
}

/* --- Estilos para o Rodapé (Adicionando o Logo) --- */
.footer-logo {
    max-width: 180px; /* Define a largura máxima do logo */
    margin: 0 auto 2rem; /* Centraliza o logo e adiciona um espaço abaixo dele */
}

.footer-logo img {
    width: 100%; /* Garante que o logo seja responsivo dentro do container */
    height: auto;
}


/* =================================================================== */
/* =================== BARRA DE ROLAGEM CUSTOMIZADA ================== */
/* =================================================================== */

/* Para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #2196F3 #0a101d; /* Cor do "polegar" e do "trilho" */
}

/* Para browsers WebKit (Chrome, Safari, Edge, etc.) */
::-webkit-scrollbar {
  width: 12px; /* Largura da barra de rolagem */
}

::-webkit-scrollbar-track {
  background: #0a101d; /* Cor do fundo (trilho), um tom escuro do seu tema */
}

::-webkit-scrollbar-thumb {
  background-color: #1565AD; /* Cor do indicador de rolagem (polegar) */
  border-radius: 10px; /* Bordas arredondadas */
  border: 3px solid #0a101d; /* Cria um espaçamento em volta do polegar */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #2196F3; /* Cor ao passar o mouse */
}

/* =================================================================== */
/* ============= LAYOUT DETALHES DO PROJETO (VERSÃO CORRIGIDA 2) ============ */
/* =================================================================== */

/* PASSO 1: Estilos base do overlay e wrapper (mantidos) */
.project-detail-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000; overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.project-detail-overlay.active {
    opacity: 1; visibility: visible;
    transition: opacity 0.4s ease;
}
/* O wrapper agora é um container flexível de tela cheia que centraliza seu conteúdo */
.project-detail-content-wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center; /* Alinha verticalmente no centro */
    justify-content: center; /* Alinha horizontalmente no centro */
    padding: 4rem 1rem; /* Espaçamento vertical e um pouco nas laterais */

    /* Animação de entrada/saída (mantida) */
    opacity: 0;
    transform: scale(0.97);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.project-detail-overlay.active .project-detail-content-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* O card principal agora tem a largura máxima e margem automática para centralizar */
.project-detail-reimagined {
    max-width: 1200px; /* Largura máxima do card */
    width: 100%; /* Ocupa 100% do espaço até o máximo */
    display: flex;
    background: #1a2b47;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    padding: 2.5rem;
}

.project-detail-reimagined .back-to-portfolio {
    margin-bottom: 2rem;
    text-align: left;
    width: 100%; /* Garante que o botão "Voltar" ocupe a largura total em telas menores */
}

.project-detail-grid {
    display: flex; /* Mantemos flexbox aqui também para melhor controle */
    gap: 3rem;
    width: 100%; /* O grid ocupa toda a largura do card */
}

.project-info-sidebar {
    width: 300px;
    flex-shrink: 0; /* Impede que a sidebar encolha */
    position: sticky;
    top: 60px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.info-sticky-content .info-icon {
    font-size: 2.5rem;
    color: #2196F3;
    margin-bottom: 1rem;
}

.info-sticky-content .info-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.info-meta {
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.info-item strong {
    color: #cccccc;
    font-weight: 500;
}

.info-item span {
    color: #ffffff;
    text-align: right;
    max-width: 60%;
}

.info-tags {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}
.info-tags strong {
    display: block;
    color: #cccccc;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.info-tags .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-cta-button {
    border-radius: 10px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #2196F3;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.info-cta-button i {
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.info-cta-button:hover {
    color: #ffffff;
    background: #2196F3;
}

.project-main-content {
    flex-grow: 1; /* A coluna principal ocupa o espaço restante */
    padding-bottom: 2rem; /* Adiciona um pouco de espaço abaixo do conteúdo principal */
}

.project-main-content p {
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.5rem; /* Espaçamento entre parágrafos */
}

.project-main-content h1,
.project-main-content h2,
.project-main-content h3,
.project-main-content h4,
.project-main-content h5,
.project-main-content h6 {
    color: #2196F3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-main-content img {
    max-width: 100%; /* Imagens responsivas */
    height: auto;
    display: block;
    margin: 2rem auto; /* Espaço acima e abaixo das imagens */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-main-content ul,
.project-main-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.project-main-content li {
    margin-bottom: 0.5rem;
}

.project-main-content pre {
    background-color: #0d1117;
    color: #c9d1d9;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.9rem;
}

.project-main-content code {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.project-main-content blockquote {
    border-left: 3px solid #2196F3;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #cccccc;
    font-style: italic;
}

/* Ajustes para telas menores */
@media (max-width: 900px) {
    .project-detail-reimagined {
        padding: 1.5rem;
    }
    .project-detail-grid {
        flex-direction: column; /* Empilha as colunas em telas menores */
        gap: 2rem;
    }
    .project-info-sidebar {
        position: static;
        width: 100%;
    }
    .project-main-content {
        padding-bottom: 1rem;
    }
    .project-main-content .project-lead-description {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        font-size: 1.2rem;
    }
}

/* =================================================================== */
/* ============= NAVEGAÇÃO ENTRE PROJETOS NO OVERLAY ================ */
/* =================================================================== */

.project-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001; /* Garante que fique acima do fundo do overlay */
    
    /* Começam invisíveis e não-clicáveis */
    opacity: 0;
    pointer-events: none;
}

/* Mostra as setas apenas quando o overlay está ativo */
.project-detail-overlay.active .project-nav-arrow {
    opacity: 1;
    pointer-events: auto;
}

.project-nav-arrow.prev {
    left: 40px;
}

.project-nav-arrow.next {
    right: 40px;
}

.project-nav-arrow:hover {
    background: #2196F3;
    transform: translateY(-50%) scale(1.1);
}

/* Estilo para quando um botão está desativado (primeiro/último projeto) */
.project-nav-arrow.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .project-nav-arrow.prev {
        left: 10px;
    }
    .project-nav-arrow.next {
        right: 10px;
    }
}

/* =================================================================== */
/* ============= SEÇÃO TRABALHE CONOSCO (CARREIRAS) ================== */
/* =================================================================== */

.careers-section {
    padding: 5rem 2rem;
    background: #11223a; /* Usando o mesmo fundo da seção "Sobre" para consistência */
}

.careers-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.careers-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

.careers-content .cta-button {
    margin-bottom: 1rem;
}

.careers-content .cta-button i {
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.disclaimer-text {
    font-size: 0.9rem;
    color: #888888;
    font-style: italic;
}

.careers-social {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.careers-social h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2rem;
}

.fiesc-info-link {
    margin-top: 4rem;
    color: #cccccc;
    font-size: 1rem;
}

.fiesc-info-link a {
    color: #2196F3;
    text-decoration: underline;
    font-weight: 500;
}

/* Enhanced "See All" Container */
.see-all-container {
    text-align: center;
    margin-top: 4rem;
    position: relative;
}

.see-all-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: seeAllGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes seeAllGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}

/* --- Estilo para o Botão "Voltar" na página de portfólio --- */
.back-to-home-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Ajustamos o padding para se alinhar melhor com o título */
    padding: 0 2rem 3rem; 
}

main.full-portfolio-page {
    /* Adiciona um espaçamento no topo igual à altura aproximada do header, mais uma folga. */
    padding-top: 50px;
}

.back-to-home-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Ajustamos o padding para se alinhar melhor com o título */
    padding: 0 2rem 3rem; 
}

.back-to-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: #555555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.dark-theme .back-to-home-link {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.back-to-home-link:hover {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Modern Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(135deg, #ffffff, #2196F3);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    transform-origin: center;
}

/* Enhanced hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
    background: linear-gradient(135deg, #2196F3, #1565AD);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
    background: linear-gradient(135deg, #2196F3, #1565AD);
}

/* Media Queries */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 43, 71, 0.95) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 30% 30%, rgba(21, 101, 173, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
        animation: menuBg 20s linear infinite;
    }

    @keyframes menuBg {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

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

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: 0.3s ease-in-out;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

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

    .nav-links a {
        font-size: 1.8rem;
        padding: 20px 40px;
        border-radius: 15px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(21, 101, 173, 0.3), rgba(33, 150, 243, 0.3));
        transition: left 0.4s ease;
        z-index: -1;
        border-radius: 15px;
    }

    .nav-links a:hover::before {
        left: 0;
    }

    .nav-links a:hover {
        transform: scale(1.05) translateY(-2px);
        color: #ffffff;
        text-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
    }

    .nav-links a::after {
        display: none;
    }

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

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

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

    /* Previne scroll quando menu está aberto */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===================================================================== */
/* =================== NEW DYNAMIC STRUCTURES ======================= */
/* ===================================================================== */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(33, 150, 243, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(33, 150, 243, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
}

.badge-icon {
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title-tech {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-title-accent {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
}

.cursor-blink {
    font-family: 'JetBrains Mono', monospace;
    color: var(--secondary-blue);
    animation: blink 1.5s infinite;
    font-weight: 400;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-blue);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Modern Code Terminal */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-terminal {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.terminal-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #888;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: center;
}

.line-number {
    color: #666;
    width: 30px;
    text-align: right;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.function { color: #50fa7b; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; }

.typing {
    animation: typewriter 3s steps(20) infinite;
}

.cursor {
    color: var(--secondary-blue);
    animation: blink 1s infinite;
}

@keyframes typewriter {
    0%, 90% { opacity: 1; }
    95%, 100% { opacity: 0.7; }
}

/* Floating Tech Badges */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.tech-badge {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tech-badge i {
    color: var(--secondary-blue);
    font-size: 1.2rem;
}

.badge-1 { top: 8%; left: 5%; animation-delay: 0s; }
.badge-2 { top: 12%; right: 10%; animation-delay: 1s; }
.badge-3 { top: 35%; left: 2%; animation-delay: 2s; }
.badge-4 { top: 55%; right: 5%; animation-delay: 3s; }
.badge-5 { bottom: 30%; left: 8%; animation-delay: 4s; }
.badge-6 { bottom: 11%; right: 10%; animation-delay: 5s; }
.badge-7 { bottom: 8%; left: 20%; animation-delay: 6s; }
.badge-8 { top: 25%; right: 35%; animation-delay: 7s; }
.badge-9 { top: 65%; left: 35%; animation-delay: 8s; }
.badge-10 { bottom: 50%; right: 25%; animation-delay: 9s; }
.badge-11 { top: 45%; left: 25%; animation-delay: 10s; }

/* Portfolio Header */
.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.highlight {
    color: var(--secondary-blue);
}



/* Services Showcase */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(21, 101, 173, 0.1), rgba(33, 150, 243, 0.05));
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-badge {
    background: var(--secondary-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    background: rgba(33, 150, 243, 0.2);
    color: var(--secondary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* About Grid */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Visual Grid */
.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.visual-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-blue);
}

.visual-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        height: 350px;
        order: -1;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .portfolio-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .services-grid .service-card.featured {
        grid-column: span 1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .visual-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}
/* ===================================================================== */
/* =================== CONTACT & CAREERS SECTIONS =================== */
/* ===================================================================== */

/* Contact Section */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-methods {
    margin-top: 3rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-blue);
}

.method-icon {
    width: 50px;
    height: 50px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-content a,
.method-content span {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-content a:hover {
    color: var(--secondary-blue);
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 101, 173, 0.05), rgba(33, 150, 243, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-card:hover::before {
    opacity: 1;
}

.cta-icon,
.rocket-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0px -20px 285px;
    font-size: 2rem;
    color: white;
    animation: pulse 3s infinite;
    position: relative;
    z-index: 2;
}

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

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Careers Section */
.careers-container {
    max-width: 1400px;
    margin: 0 auto;
}

.careers-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.careers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.careers-benefits {
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-blue);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.benefit-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.careers-cta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.social-follow {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.social-follow h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}



.disclaimer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* Mobile Responsiveness for Contact & Careers */
@media (max-width: 768px) {
    .contact-grid,
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-method,
    .benefit-item {
        padding: 1rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .social-links-modern {
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.8rem;
    }
}
/* ===================================================================== */
/* =================== ENHANCED DYNAMIC ELEMENTS ==================== */
/* ===================================================================== */

/* Portfolio Showcase Background */
.portfolio-showcase {
    position: relative;
    overflow: hidden;
}

.showcase-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-element {
    position: absolute;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 12s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, -30px) scale(1.2); opacity: 0.1; }
}

.products-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Services Background Code Snippets */
.services-showcase {
    position: relative;
    overflow: hidden;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.code-snippet {
    position: absolute;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: codeFloat 15s ease-in-out infinite;
    opacity: 0.6;
}

.snippet-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.snippet-2 {
    top: 50%;
    right: 8%;
    animation-delay: 5s;
}

.snippet-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes codeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4; 
    }
    25% { 
        transform: translateY(-20px) rotate(1deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-10px) rotate(0deg); 
        opacity: 0.5; 
    }
    75% { 
        transform: translateY(-30px) rotate(-1deg); 
        opacity: 0.6; 
    }
}

.services-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card .service-features {
    margin-top: auto;
}

/* Enhanced Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.product-card:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

@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; }
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.8s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Mobile Responsiveness for Enhanced Elements */
@media (max-width: 768px) {
    .code-terminal {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .tech-badge {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .tech-badge {
        position: relative;
        margin: 0.5rem;
        display: inline-flex;
    }
    
    .floating-elements {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .badge-1, .badge-2, .badge-3, .badge-4,
    .badge-5, .badge-6, .badge-7, .badge-8,
    .badge-9, .badge-10, .badge-11 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .code-terminal {
        max-width: 90%;
    }
    
    .terminal-body {
        font-size: 0.7rem;
    }
    
    .code-snippet {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .bg-element {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero-visual {
        height: 400px;
    }
}
/* ===================================================================== */
/* =================== STARRY SKY BACKGROUND ========================= */
/* ===================================================================== */

.starry-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
}

.star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
}

/* Star sizes and positions */
.star-1 { width: 2px; height: 2px; top: 10%; left: 15%; animation-delay: 0s; }
.star-2 { width: 1px; height: 1px; top: 20%; left: 80%; animation-delay: 0.5s; }
.star-3 { width: 3px; height: 3px; top: 15%; left: 60%; animation-delay: 1s; }
.star-4 { width: 1px; height: 1px; top: 30%; left: 25%; animation-delay: 1.5s; }
.star-5 { width: 2px; height: 2px; top: 5%; left: 40%; animation-delay: 2s; }
.star-6 { width: 1px; height: 1px; top: 40%; left: 70%; animation-delay: 2.5s; }
.star-7 { width: 2px; height: 2px; top: 25%; left: 10%; animation-delay: 3s; }
.star-8 { width: 1px; height: 1px; top: 35%; left: 90%; animation-delay: 0.3s; }
.star-9 { width: 3px; height: 3px; top: 8%; left: 75%; animation-delay: 1.8s; }
.star-10 { width: 1px; height: 1px; top: 45%; left: 35%; animation-delay: 2.3s; }
.star-11 { width: 2px; height: 2px; top: 12%; left: 50%; animation-delay: 0.8s; }
.star-12 { width: 1px; height: 1px; top: 50%; left: 15%; animation-delay: 1.3s; }
.star-13 { width: 2px; height: 2px; top: 18%; left: 85%; animation-delay: 2.8s; }
.star-14 { width: 1px; height: 1px; top: 55%; left: 65%; animation-delay: 0.1s; }
.star-15 { width: 3px; height: 3px; top: 3%; left: 30%; animation-delay: 1.1s; }
.star-16 { width: 1px; height: 1px; top: 60%; left: 45%; animation-delay: 2.1s; }
.star-17 { width: 2px; height: 2px; top: 22%; left: 5%; animation-delay: 0.6s; }
.star-18 { width: 1px; height: 1px; top: 65%; left: 80%; animation-delay: 1.6s; }
.star-19 { width: 2px; height: 2px; top: 28%; left: 95%; animation-delay: 2.6s; }
.star-20 { width: 1px; height: 1px; top: 70%; left: 20%; animation-delay: 0.9s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* Hero section adjustments */
.hero {
    position: relative;
}

.hero-grid {
    position: relative;
    z-index: 1;
}
/* ===================================================================== */
/* =================== THEME TOGGLE & LIGHT THEME =================== */
/* ===================================================================== */

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Light Theme Variables */
body.light-theme {
    --dark-bg: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #555555;
    --shadow-primary: 0 25px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.2);
}

/* Light Theme Styles */
body.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-links a {
    color: var(--text-primary);
}

body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

body.light-theme .hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

body.light-theme .hero-title-tech {
    color: var(--text-primary);
}

body.light-theme .hero-description {
    color: var(--text-secondary);
}

body.light-theme .stat-label {
    color: var(--text-muted);
}

body.light-theme .section-title p {
    color: var(--text-secondary);
}

body.light-theme .product-card p,
body.light-theme .service-card p {
    color: var(--text-secondary);
}

body.light-theme .product-card h3,
body.light-theme .service-card h3 {
    color: var(--text-primary);
}

body.light-theme .about-text p {
    color: var(--text-secondary);
}

body.light-theme .feature-content p,
body.light-theme .benefit-content p {
    color: var(--text-muted);
}

body.light-theme .contact-text p,
body.light-theme .careers-text p {
    color: var(--text-secondary);
}

body.light-theme .method-content span,
body.light-theme .method-content a {
    color: var(--text-muted);
}

body.light-theme .method-content h4,
body.light-theme .benefit-content h4,
body.light-theme .feature-content h4 {
    color: var(--text-primary);
}

body.light-theme .footer-links a {
    color: var(--text-muted);
}

body.light-theme .copyright p {
    color: var(--text-muted);
}

body.light-theme .star {
    background: var(--secondary-blue);
    opacity: 0.6;
}

body.light-theme .star::before,
body.light-theme .star::after {
    background: var(--secondary-blue);
}

body.light-theme .particle {
    background: var(--secondary-blue);
    opacity: 0.4;
}

body.light-theme .tech-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .tech-badge i {
    color: var(--secondary-blue);
}

body.light-theme .product-card,
body.light-theme .service-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.light-theme .product-card:hover,
body.light-theme .service-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

body.light-theme .tag,
body.light-theme .feature-tag {
    background: rgba(21, 101, 173, 0.1);
    color: var(--primary-blue);
    border-color: rgba(21, 101, 173, 0.2);
}

body.light-theme .about,
body.light-theme .contact,
body.light-theme .careers-section {
    background: rgba(248, 249, 250, 0.8);
}

body.light-theme .services {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme footer {
    background: rgba(248, 249, 250, 0.9);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .contact-method,
body.light-theme .benefit-item,
body.light-theme .feature-item {
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .visual-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

body.light-theme .cta-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Default modal styles (dark theme) */
.project-detail-reimagined {
    background: #1a2b47;
    color: #ffffff;
}

.project-info-sidebar {
    background: rgba(0, 0, 0, 0.2);
}

.info-sticky-content .info-title {
    color: #ffffff;
}

.info-item strong {
    color: #cccccc;
}

.info-item span {
    color: #ffffff;
}

.info-tags strong {
    color: #cccccc;
}

.project-main-content p {
    color: #e0e0e0;
}

.project-main-content h1,
.project-main-content h2,
.project-main-content h3,
.project-main-content h4,
.project-main-content h5,
.project-main-content h6 {
    color: #2196F3;
}

.project-main-content ul,
.project-main-content ol {
    color: #e0e0e0;
}

.project-main-content blockquote {
    color: #cccccc;
}

/* Light theme modal styles */
body.light-theme .project-detail-reimagined {
    background: #ffffff;
    color: #1a1a1a;
}

body.light-theme .project-info-sidebar {
    background: rgba(248, 249, 250, 0.8);
}

body.light-theme .info-sticky-content .info-title {
    color: #1a1a1a;
}

body.light-theme .info-item strong {
    color: #555555;
}

body.light-theme .info-item span {
    color: #1a1a1a;
}

body.light-theme .info-tags strong {
    color: #555555;
}

body.light-theme .project-main-content p {
    color: #333333;
}

body.light-theme .project-main-content h1,
body.light-theme .project-main-content h2,
body.light-theme .project-main-content h3,
body.light-theme .project-main-content h4,
body.light-theme .project-main-content h5,
body.light-theme .project-main-content h6 {
    color: #1565AD;
}

body.light-theme .project-main-content ul,
body.light-theme .project-main-content ol {
    color: #333333;
}

body.light-theme .project-main-content blockquote {
    color: #555555;
}

/* Mobile theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        order: -1;
        margin-right: 1rem;
    }
}