/* Variables CSS */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: #191120;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
    border: 3px solid var(--dark-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilidades */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(25, 17, 32, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--light-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    /* Aumentamos la altura para dar espacio al scroll interno y la tarjeta */
    min-height: 190vh; 
    background-color: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}

#circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo-wrapper {
    height: 100vh; /* Ocupa la primera pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky; /* La magia sucede aquí */
    top: 0;
    z-index: 3;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: var(--light-color);
    text-shadow: 0 0 15px rgba(6, 181, 212, 0.268), 0 0 30px rgba(99, 102, 241, 0.4);
    transition: all 0.5s ease-in-out;
    animation: logo-pulse 4s infinite ease-in-out;
}

.hero-logo i {
    font-size: 6rem;
    color: var(--primary-color);
    animation: icon-pulse 4s infinite ease-in-out;
}

@keyframes logo-pulse {
    0%, 100% { text-shadow: 0 0 15px rgba(6, 181, 212, 0.299), 0 0 30px rgba(99, 102, 241, 0.4); }
    50% { text-shadow: 0 0 25px rgba(6, 181, 212, 0.434), 0 0 45px rgba(99, 102, 241, 0.6); }
}

@keyframes icon-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.8)); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro Card Section */
.intro-card-container {
    /* Hacemos que ocupe casi toda la pantalla para crear una sección dedicada */
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.intro-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: rgba(25, 17, 32, 0.9);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(30, 41, 59, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.accordion-header i:first-child {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.accordion-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    flex-grow: 1;
}

.accordion-header .fa-chevron-down {
    transition: transform 0.4s ease;
}

.accordion-item.active .accordion-header .fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-content p {
    color: var(--text-secondary);
    padding-bottom: 1.5rem;
}

.accordion-content ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
}

.accordion-content li {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Technologies Section */
.technologies {
    padding: 6rem 0;
    background: rgba(25, 17, 32, 0.9);
}

.tech-carousel-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.tech-showcase {
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(30, 41, 59, 0.8);
    color: var(--light-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
    background-color: var(--primary-color);
}
.tech-category {
    background: rgba(30, 41, 59, 0.7);
    flex: 0 0 300px;
    margin: 0 1rem;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tags span {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tags span:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(25, 17, 32, 0.9);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about .section-title {
    color: white;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
}
.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-item {
    background: rgba(30, 41, 59, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: rgba(25, 17, 32, 0.9);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.project-image i {
    position: relative;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content .btn-primary {
    margin-top: auto;
}

.project-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-features span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tech span {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.projects-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    padding: 1.75rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite;
    animation-delay: 2s;
}

.projects-cta p {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light-color);
    margin: 0;
}

.projects-cta .btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.projects-cta .btn-secondary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: rgba(25, 17, 32, 0.9);
}

.team-carousel-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.team-grid {
    /* position: relative; */
    position: relative;
}

.team-member {
    background: rgba(30, 41, 59, 0.7);
    flex: 0 0 300px;
    margin: 0 1rem;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 3rem;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: white;
}

.contact .section-title {
    color: white;
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact .section-subtitle {
    color: #cbd5e1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info, .contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--light-color);
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
    flex-grow: 1;
}

.form-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    padding-left: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group textarea {
    padding-top: 1.25rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.footer-section .social-links a:hover {
    background: var(--accent-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Pixel Heart Animation */
.pixel-heart {
    display: inline-block;
    position: relative;
    width: 4px;
    height: 4px;
    margin: 0 5px;
    vertical-align: middle;
    animation: pixel-heart-beat 1.2s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

.pixel-heart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff4757;
    box-shadow: 
        -4px -4px 0 #ff4757, 4px -4px 0 #ff4757, /* Top two pixels */
        -8px 0 0 #ff4757, 8px 0 0 #ff4757,     /* Middle sides */
        -4px 4px 0 #ff4757, 4px 4px 0 #ff4757,   /* Lower middle */
        0 8px 0 #ff4757;                      /* Bottom pixel */
}

@keyframes pixel-heart-beat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.2); }
    20% { transform: scale(1); }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Additional Enhancements */
.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-category:hover .tech-icon {
    transform: scale(1.1) rotate(10deg);
}

.team-member:hover .member-avatar {
    transform: scale(1.05);
}

/* Enhanced floating cards animation */
.floating-card {
    cursor: pointer;
}

.floating-card:hover {
    animation-play-state: paused;
    transform: scale(1.2) !important;
    z-index: 10;
}

/* Pulse effect for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* Adjust based on header height */
        background: rgba(25, 17, 32, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-logo {
        font-size: 2.5rem;
        gap: 1rem;
    }

    .intro-buttons {
        flex-direction: column;
        align-items: center;
    }

    .projects-cta {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }
}
