/* ==========================================================================
   TOMAS BLANCO PORTFOLIO - DESIGN SYSTEM & STYLES (2026)
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(23, 37, 84, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(255, 255, 255, 0.18);
    
    /* Glowing Accent Colors */
    --color-cyan: #00f2fe;
    --color-violet: #7f00ff;
    --color-indigo: #4f46e5;
    --color-amber: #f59e0b;
    --color-emerald: #10b981;
    --color-whatsapp: #25d366;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-indigo) 100%);
    --grad-violet: linear-gradient(135deg, #a855f7 0%, var(--color-violet) 100%);
    --grad-glow: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(127, 0, 255, 0.05) 50%, transparent 100%);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Text Selection */
::selection {
    background: rgba(0, 242, 254, 0.25);
    color: var(--text-primary);
}

/* --- Layout Background Overlays --- */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

.radial-glow-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 2;
}

.interactive-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.04) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* --- Common Components (Glassmorphism & Utilities) --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.glass-card:hover {
    border-color: var(--border-glass-active);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--color-cyan) 0%, #a855f7 50%, var(--color-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 8s linear infinite;
}

@keyframes shineText {
    to { background-position: 200% center; }
}

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

.btn-primary {
    background: var(--grad-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, var(--color-cyan) 20%, #7f00ff 100%);
    color: #000;
}

.btn-glow:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-active);
    transform: translateY(-2px);
}

.glass-btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-whatsapp-secondary {
    background: rgba(37, 211, 102, 0.1);
    color: #fff;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-secondary:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-full {
    width: 100%;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition-fast);
}

.btn-text-link:hover {
    color: var(--text-primary);
}

/* --- Navigation Header --- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.sticky-nav.scrolled {
    padding: 10px 0;
    background: rgba(7, 10, 19, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--color-cyan);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-nav-cta:hover {
    background: var(--grad-primary);
    color: #000 !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 24px;
}

/* Mobile dropdown menu */
.mobile-nav-menu {
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    background: rgba(7, 10, 19, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.mobile-link {
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 140px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.07);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 10px var(--color-cyan);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    box-sizing: border-box;
    animation: badgePulse 2s infinite ease-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-cyan);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 580px;
}

/* Terminal typing simulation styling */
.terminal-text {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.terminal-prompt {
    color: var(--color-cyan);
    font-weight: bold;
}

.terminal-command {
    color: var(--text-primary);
}

.typed-highlight {
    color: #a855f7;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.cursor {
    animation: cursorBlink 1s infinite step-end;
    color: var(--color-cyan);
}

@keyframes cursorBlink {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

/* Hero visual / Hologram container styling */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.hologram-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.ring-1 {
    width: 120%;
    height: 120%;
    animation: rotateClockwise 25s linear infinite;
}

.ring-2 {
    width: 140%;
    height: 140%;
    animation: rotateCounterClockwise 35s linear infinite;
    border-color: rgba(0, 242, 254, 0.05);
}

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

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

.glow-sphere {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, rgba(0, 242, 254, 0.05) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(10px);
}

.avatar-card {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
    animation: floatAnimation 6s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.12);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.8);
}

@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Floating Glass tags */
.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 12;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-radius: 12px;
}

.floating-tag i {
    width: 16px;
    height: 16px;
}

.tag-1 {
    top: 5%;
    left: -25%;
    animation: floatingTag1 5s ease-in-out infinite;
}

.tag-2 {
    bottom: 10%;
    right: -25%;
    animation: floatingTag2 6s ease-in-out infinite 0.5s;
}

.tag-3 {
    bottom: -15%;
    left: 10%;
    animation: floatingTag3 7s ease-in-out infinite 1s;
}

@keyframes floatingTag1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatingTag2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes floatingTag3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.icon-violet { color: var(--color-violet); }
.icon-cyan { color: var(--color-cyan); }
.icon-amber { color: var(--color-amber); }

/* Stats Counter design */
.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 35px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

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

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

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

.service-icon-wrapper {
    width: 54px;
    height: 54px;
    background: rgba(0, 242, 254, 0.07);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon {
    width: 26px;
    height: 26px;
    color: var(--color-cyan);
}

.icon-violet-bg {
    background: rgba(127, 0, 255, 0.07);
    border-color: rgba(127, 0, 255, 0.2);
}

.text-violet {
    color: #a855f7;
}

.icon-amber-bg {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.2);
}

.text-amber {
    color: var(--color-amber);
}

.icon-emerald-bg {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.2);
}

.text-emerald {
    color: var(--color-emerald);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

/* --- Projects Section --- */
.projects-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.projects-carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 15px 0; /* padding so cards' shadow doesn't get clipped */
}

.projects-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 32px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.projects-carousel-track .project-card {
    flex: 0 0 calc((100% - (2 * 32px)) / 3);
    width: calc((100% - (2 * 32px)) / 3);
    min-width: 0;
}

@media (max-width: 1024px) {
    .projects-carousel-track .project-card {
        flex: 0 0 calc((100% - (1 * 32px)) / 2);
        width: calc((100% - (1 * 32px)) / 2);
    }
}

@media (max-width: 768px) {
    .projects-carousel-track {
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .projects-carousel-track .project-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
    }
    
    .carousel-btn {
        display: none !important;
    }
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.active {
    background: var(--color-cyan);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 10, 19, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

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

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

.project-links {
    margin-top: auto;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.project-link-btn i {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.project-link-btn:hover {
    color: var(--color-cyan);
}

.project-link-btn:hover i {
    transform: translate(2px, -2px);
}

/* --- Tech Stack Section --- */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.stack-category {
    padding: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.category-icon {
    width: 24px;
    height: 24px;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.tech-progress {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: var(--grad-primary);
    display: block;
}

.stack-category:nth-child(2) .progress-bar {
    background: var(--grad-violet);
}

.stack-category:nth-child(3) .progress-bar {
    background: linear-gradient(135deg, var(--color-amber) 0%, #d97706 100%);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.contact-info-panel .section-title {
    text-align: left;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 35px 0;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon i {
    width: 22px;
    height: 22px;
}

.wa-icon {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: var(--color-whatsapp);
}

.email-icon {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--color-cyan);
}

.contact-card-content h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-action {
    font-size: 12px;
    color: var(--color-whatsapp);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.contact-action i {
    width: 12px;
    height: 12px;
}

.trusted-container {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.trusted-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.trusted-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trusted-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trusted-item i {
    width: 16px;
    height: 16px;
}

/* Contact Form */
.form-container {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.form-group select option {
    background-color: #0b0f19;
    color: #fff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-actions-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

/* Success message overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090d16;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border-radius: 20px;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    width: 32px;
    height: 32px;
    color: var(--color-emerald);
}

.success-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.success-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

#success-wa-btn {
    width: 100%;
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 350px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-social-link i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-domain {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.wa-float-icon {
    width: 30px;
    height: 30px;
}

.whatsapp-floating:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: #0f172a;
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.whatsapp-floating:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 24px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
        width: 100%;
    }
    
    .hero-visual {
        margin-top: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu, .nav-actions {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .form-actions-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Spinner Animation for forms */
.spinning-animation {
    animation: spin 1.2s linear infinite;
}

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

