/* =========================================
   DESIGN TOKENS & VARIABLES (MINIMALIST)
   ========================================= */
:root {
    /* Color Palette - Minimalist Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Very light gray/blue */
    --bg-surface: #ffffff;

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */

    /* Lama IT Solutions Brand Colors */
    --accent-primary: #2563eb;
    /* Royal Blue */
    --accent-secondary: #dc2626;
    /* Deep Red */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius & Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   LOADER & CURSOR
   ========================================= */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-img {
    height: 110px;
    width: auto;
    margin-bottom: 2.5rem;
    animation: pulse-soft 2s infinite ease-in-out;
}

.loader-progress-container {
    width: 220px;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

body.dark-theme .loader-progress-container {
    background-color: #334155;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 4px;
    animation: load-progress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-text {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-heading);
    animation: fade-in-up 0.6s ease forwards 0.2s;
    opacity: 0;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.2));
    }
}

@keyframes load-progress {
    0% {
        width: 0%;
    }

    40% {
        width: 70%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: #e6e6e6;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================
   RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar & Selection */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}
body.dark-theme ::selection {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

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

/* Scroll Reveal Utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.highlight {
    color: var(--accent-primary);
}

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

.gradient-text {
    color: var(--accent-primary);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    /* Rojo */
    color: #ffffff;
    border-color: transparent;
}

.btn-secondary:hover {
    background-color: #b91c1c;
    /* Rojo oscuro al hacer hover */
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.logo {
    margin-right: auto;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary):not(.btn-secondary) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn-primary):not(.btn-secondary):hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
}

.theme-toggle:hover {
    color: var(--accent-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: var(--bg-primary);
}

/* Esconder blobs para mantener el minimalismo */
.blob {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

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

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.about-content .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item h4 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.stat-item:nth-child(2) h4 {
    color: var(--accent-secondary);
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    border: 1px solid #333;
    font-family: 'Courier New', Courier, monospace;
}

body.dark-theme .terminal-window {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border-color: #404040;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #111;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 25px 20px;
    font-size: 0.95rem;
    color: #e6e6e6;
    line-height: 1.6;
    text-align: left;
}

.code-line {
    margin-bottom: 4px;
}

.indent {
    padding-left: 20px;
}

.indent-2 {
    padding-left: 40px;
}

.keyword {
    color: #c678dd;
}

/* Purple */
.variable {
    color: #e06c75;
}

/* Red */
.string {
    color: #98c379;
}

/* Green */
.function {
    color: #61afef;
}

/* Blue */
.comment {
    color: #7f848e;
    font-style: italic;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-visual {
        min-height: 300px;
    }
}

/* =========================================
   TECH STACK CAROUSEL
   ========================================= */
.tech-stack {
    width: 100%;
    overflow: hidden;
    padding: 3.5rem 0;
    background: transparent;
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .tech-stack {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scroll-tech 35s linear infinite;
    align-items: center;
}

.tech-stack-track:hover {
    animation-play-state: paused;
}

.tech-stack-track i,
.tech-stack-track .tech-text {
    font-size: 3.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.tech-stack-track .tech-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

.tech-stack-track i:hover,
.tech-stack-track .tech-text:hover {
    color: var(--accent-primary);
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(59, 130, 246, 0.3));
}

@keyframes scroll-tech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: var(--transition-fast);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* =========================================
   PORTFOLIO
   ========================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    /* Rojo como subrayado */
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img {
    height: 200px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-img i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.4s ease, color 0.4s ease;
}

.portfolio-item:hover .portfolio-img i {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 0.9);
}

.grad-torneo {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.grad-netlearn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.grad-soulnet {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.grad-epo {
    background: linear-gradient(135deg, #10b981, #047857);
}

.grad-romantica {
    background: linear-gradient(135deg, #f43f5e, #be123c);
}

.grad-cuki {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

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

.tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.view-project:hover {
    color: var(--accent-secondary);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method i {
    width: 36px;
    height: 36px;
    background: transparent;
    color: var(--accent-secondary);
    /* Icono Rojo */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    /* Ajustado un poco más grande ya que no hay fondo cuadrado */
}

.method span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form {
    background: transparent;
    padding: 0;
}

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

input,
textarea,
select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.phone-group {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix {
    width: auto;
    min-width: 110px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0.8rem 0.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23475569%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}

/* =========================================
   CONTACT TERMINAL FORM
   ========================================= */
.form-terminal {
    width: 100%;
}

.form-terminal .terminal-body {
    padding: 20px 25px;
}

.form-terminal .terminal-line {
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.form-terminal .prompt {
    color: #98c379; /* Green */
}

.form-terminal .keyword {
    color: #61afef; /* Blue */
}

.form-terminal .command {
    color: #e5c07b; /* Yellow */
}

.form-terminal .terminal-input-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-family: 'Courier New', Courier, monospace;
}

.form-terminal .prompt-arrow {
    color: #c678dd; /* Purple */
    font-weight: bold;
    margin-top: 10px;
}

.form-terminal input, 
.form-terminal textarea, 
.form-terminal select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    color: #e6e6e6;
    padding: 10px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    box-shadow: none !important;
}

body.dark-theme .form-terminal input, 
body.dark-theme .form-terminal textarea, 
body.dark-theme .form-terminal select {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.form-terminal input::placeholder, 
.form-terminal textarea::placeholder {
    color: #5c6370;
}

.form-terminal input:focus, 
.form-terminal textarea:focus, 
.form-terminal select:focus {
    outline: none;
    border-bottom: 1px solid #61afef;
}

.form-terminal .phone-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-terminal .phone-prefix {
    width: auto;
    color: #e6e6e6;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e6e6e6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    padding-bottom: 10px;
}

.form-terminal .phone-prefix option {
    background-color: #1e1e1e;
    color: #fff;
}

.form-terminal .terminal-btn {
    background-color: transparent;
    border: 1px solid #98c379;
    color: #98c379;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    border-radius: var(--radius-sm);
}

.form-terminal .terminal-btn:hover {
    background-color: rgba(152, 195, 121, 0.1);
    box-shadow: 0 0 15px rgba(152, 195, 121, 0.2);
    transform: translateY(-2px);
}

.terminal-title {
    color: #7f848e;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    margin-left: 10px;
    opacity: 0.7;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid #e2e8f0;
    padding: var(--spacing-md) 0;
    background: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-form {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    padding: 1rem 1.25rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-success {
    border-left-color: #10b981;
    /* Emerald Green */
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left-color: var(--accent-secondary);
    /* Red */
}

.toast-error .toast-icon {
    color: var(--accent-secondary);
}

.toast-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }
}

/* =========================================
   DARK THEME OVERRIDES
   ========================================= */
body.dark-theme {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-surface: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
}

body.dark-theme .navbar {
    background-color: rgba(5, 5, 5, 0.95);
}

body.dark-theme .navbar.scrolled {
    border-bottom-color: #262626;
}

body.dark-theme .theme-toggle {
    background-color: #262626;
    color: #f1f5f9;
}

body.dark-theme .loader-img,
body.dark-theme .logo-img,
body.dark-theme .footer-logo-img {
    filter: brightness(0) invert(1);
}

body.dark-theme .service-card,
body.dark-theme .portfolio-item,
body.dark-theme .about-shape,
body.dark-theme .toast-notification {
    border-color: #262626;
    background: var(--bg-surface);
}

body.dark-theme .service-card:hover,
body.dark-theme .portfolio-item:hover {
    border-color: #404040;
}

body.dark-theme .portfolio-img {
    border-bottom-color: #262626;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .phone-prefix {
    background: var(--bg-surface);
    border-color: #262626;
    color: var(--text-primary);
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    border-color: var(--accent-primary);
}

body.dark-theme footer {
    border-top-color: #262626;
    background: var(--bg-primary);
}

body.dark-theme .about-stats {
    border-top-color: #262626;
}

body.dark-theme .tags span {
    background: #262626;
    color: #ffffff;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20b858;
    transform: scale(1.1) translateY(-5px);
    color: white;
    box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}