/* ==========================================
   BLUEWIRE MODERN DESIGN SYSTEM
   Inspired by Globant & EPAM
   ========================================== */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #4D94FF;
    --primary-rgb: 0, 102, 255;

    /* Secondary Colors */
    --secondary: #00D4AA;
    --secondary-dark: #00B894;
    --secondary-light: #4DFFDB;

    /* Accent Colors */
    --accent: #7C3AED;
    --accent-light: #A78BFA;

    /* Neutral Colors */
    --dark: #0A0A0B;
    --dark-light: #1A1A1D;
    --dark-lighter: #2D2D32;
    --gray-900: #18181B;
    --gray-800: #27272A;
    --gray-700: #3F3F46;
    --gray-600: #52525B;
    --gray-500: #71717A;
    --gray-400: #A1A1AA;
    --gray-300: #D4D4D8;
    --gray-200: #E4E4E7;
    --gray-100: #F4F4F5;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.5);
    color: var(--white);
}

.btn-primary i {
    transition: transform var(--transition-base);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--white);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* Navigation */
.navbar {
    padding: 20px 0;
    background: transparent;
    transition: all var(--transition-base);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-800);
}

.navbar-brand img {
    height: 40px;
    transition: all var(--transition-base);
}

.logo-dark {
    display: none;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
}

.toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
}

.toggler-icon::before,
.toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
}

.toggler-icon::before {
    top: -7px;
}

.toggler-icon::after {
    bottom: -7px;
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: var(--gray-300) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: var(--gray-800);
}

.nav-cta {
    margin-left: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 50%;
    left: 50%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(50px, -50px); }
    50% { transform: translate(-30px, 30px); }
    75% { transform: translate(30px, 50px); }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--gray-400);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-subtitle .highlight {
    color: var(--white);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-700);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-base);
}

.hero-scroll a:hover {
    color: var(--white);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-600);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* Clients Section */
.clients-section {
    padding: 60px 0;
    background: var(--dark-light);
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
}

.clients-header {
    margin-bottom: 40px;
}

.clients-header p {
    color: var(--gray-500);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark-light) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--dark-light) 0%, transparent 100%);
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    padding: 0 40px;
    opacity: 0.5;
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.client-logo span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

/* Services Section */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--dark);
}

.section-header {
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    padding: 40px;
    background: var(--dark-light);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gray-700);
    box-shadow: var(--shadow-xl);
}

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

.service-card.featured {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1) 0%, var(--dark-light) 100%);
    border-color: rgba(var(--primary-rgb), 0.3);
}

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

.service-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 28px;
    color: var(--primary);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-description {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--gray-300);
    font-size: 14px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.service-footer {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap var(--transition-base);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

/* Approach Section */
.approach-section {
    padding: var(--section-padding) 0;
    background: var(--dark-light);
}

.approach-content {
    padding-right: 60px;
}

@media (max-width: 991px) {
    .approach-content {
        padding-right: 0;
        margin-bottom: 60px;
    }
}

.approach-text {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 48px;
    line-height: 1.8;
}

.approach-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.approach-feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.6;
}

.approach-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.code-window {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }

.window-content {
    padding: 24px;
    overflow-x: auto;
}

.window-content pre {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.window-content code {
    color: var(--gray-300);
}

.window-content .keyword { color: #C678DD; }
.window-content .variable { color: #E5C07B; }
.window-content .property { color: #61AFEF; }
.window-content .string { color: #98C379; }
.window-content .function { color: #61AFEF; }
.window-content .parameter { color: #E06C75; }

/* Portfolio Section */
.portfolio-section {
    padding: var(--section-padding) 0;
    background: var(--dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-item.large {
    grid-row: span 2;
}

.portfolio-item.wide {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .portfolio-item.large,
    .portfolio-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-description {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: gap var(--transition-base);
}

.portfolio-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

.portfolio-cta {
    padding-top: 40px;
}

.portfolio-cta p {
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--dark-light);
}

.contact-wrapper {
    background: var(--dark);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    padding: 80px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .contact-wrapper {
        padding: 40px;
    }
}

.contact-content {
    padding-right: 40px;
}

@media (max-width: 991px) {
    .contact-content {
        padding-right: 0;
        margin-bottom: 60px;
    }
}

.contact-text {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: var(--primary);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

a.info-value:hover {
    color: var(--primary);
}

.contact-card {
    background: var(--dark-light);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-card > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-btn:hover {
    background: var(--gray-700);
    border-color: var(--gray-600);
    transform: translateX(8px);
}

.contact-btn i {
    font-size: 24px;
    color: var(--primary);
}

.contact-btn span {
    display: flex;
    flex-direction: column;
}

.contact-btn strong {
    color: var(--white);
    font-weight: 600;
}

.contact-btn small {
    color: var(--gray-500);
    font-size: 13px;
}

.contact-btn.whatsapp i { color: #25D366; }
.contact-btn.project i { color: var(--accent); }
.contact-btn.support i { color: var(--secondary); }

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--dark);
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-md);
    color: var(--white);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .contact-wrapper {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ==========================================
   PORTFOLIO PAGE STYLES
   ========================================== */

/* Page Hero - Mini version for internal pages */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Navbar pre-scrolled state for internal pages */
.navbar.navbar-scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-800);
}

/* ==========================================
   GIT TIMELINE STYLES
   ========================================== */

.git-timeline-section {
    padding: 80px 0 var(--section-padding);
    background: var(--dark);
}

.git-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Main trunk line */
.git-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .git-timeline::before {
        left: 24px;
        transform: none;
    }
}

/* Year marker */
.git-year-marker {
    position: relative;
    text-align: center;
    padding: 20px 0;
    z-index: 2;
}

.git-year-marker .year-label {
    display: inline-block;
    padding: 12px 24px;
    background: var(--dark);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.git-year-marker.founding .year-label {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
}

.git-year-marker.founding .year-label::after {
    content: ' - Inicio de Bluewire';
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .git-year-marker {
        text-align: left;
        padding-left: 60px;
    }
}

/* Git Commit Item */
.git-commit {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 0 20px;
}

.git-commit:nth-child(odd) {
    flex-direction: row-reverse;
}

.git-commit:nth-child(odd) .git-commit-content {
    margin-right: auto;
    margin-left: 60px;
}

.git-commit:nth-child(even) .git-commit-content {
    margin-left: auto;
    margin-right: 60px;
}

@media (max-width: 768px) {
    .git-commit,
    .git-commit:nth-child(odd) {
        flex-direction: row;
    }

    .git-commit:nth-child(odd) .git-commit-content,
    .git-commit:nth-child(even) .git-commit-content {
        margin-left: 60px;
        margin-right: 0;
    }
}

/* Commit dot (node) */
.git-commit-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--dark);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 3;
    transition: all var(--transition-base);
}

.git-commit:hover .git-commit-dot {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
    transform: translateX(-50%) scale(1.2);
}

@media (max-width: 768px) {
    .git-commit-dot {
        left: 24px;
        transform: translateX(-50%);
    }

    .git-commit:hover .git-commit-dot {
        transform: translateX(-50%) scale(1.2);
    }
}

/* Branch line */
.git-commit-branch {
    position: absolute;
    top: 10px;
    height: 2px;
    background: var(--gray-700);
    width: calc(50% - 60px);
    z-index: 1;
}

.git-commit:nth-child(odd) .git-commit-branch {
    right: 50%;
    margin-right: 10px;
}

.git-commit:nth-child(even) .git-commit-branch {
    left: 50%;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .git-commit-branch {
        display: none;
    }
}

/* Commit content card */
.git-commit-content {
    width: calc(50% - 60px);
    background: var(--dark-light);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.git-commit-content:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .git-commit-content {
        width: calc(100% - 60px);
    }
}

/* Commit header */
.git-commit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.git-commit-hash {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-800);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.git-commit-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Commit message (title) */
.git-commit-message {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

/* Commit description */
.git-commit-description {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Commit tags (technologies) */
.git-commit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.git-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-300);
}

.git-tag i {
    font-size: 10px;
    color: var(--secondary);
}

/* Commit footer */
.git-commit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-800);
}

.git-commit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: gap var(--transition-base);
}

.git-commit-link:hover {
    gap: 10px;
    color: var(--primary-light);
}

.git-commit-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==========================================
   PROJECT MODAL STYLES
   ========================================== */

#projectModal .modal-content {
    background: var(--dark);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

#projectModal .modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--gray-800);
    background: var(--dark-light);
}

#projectModal .modal-header-content {
    flex: 1;
}

#projectModal .modal-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

#projectModal .modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

#projectModal .btn-close {
    background: var(--gray-800);
    border-radius: var(--radius-md);
    padding: 12px;
    opacity: 1;
    filter: invert(1);
    transition: all var(--transition-base);
}

#projectModal .btn-close:hover {
    background: var(--gray-700);
}

#projectModal .modal-body {
    padding: 32px;
}

.modal-project-image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--gray-800);
}

.modal-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-description {
    font-size: 16px;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.modal-detail-item {
    display: flex;
    gap: 16px;
}

.modal-detail-item .detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.modal-detail-item .detail-icon i {
    font-size: 18px;
    color: var(--primary);
}

.modal-detail-item .detail-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.modal-detail-item .detail-content p {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0;
    line-height: 1.5;
}

.modal-technologies h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.modal-technologies .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-technologies .tech-tag {
    padding: 8px 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-300);
}

#projectModal .modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--gray-800);
    background: var(--dark-light);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* ==========================================
   PORTFOLIO CTA SECTION
   ========================================== */

.portfolio-cta-section {
    padding: var(--section-padding) 0;
    background: var(--dark-light);
}

.portfolio-cta-section .cta-wrapper {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.portfolio-cta-section .cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='rgba(255,255,255,0.1)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.portfolio-cta-section .cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.portfolio-cta-section .cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.portfolio-cta-section .btn {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--primary);
}

.portfolio-cta-section .btn:hover {
    background: var(--dark);
    color: var(--white);
}
