/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Dark Theme Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 35, 0.6);
    --bg-card-solid: #14142380;

    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    /* Accent Colors */
    --accent: #8B5CF6;
    --accent-dark: #7C3AED;
    --accent-light: #A78BFA;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-subtle: rgba(139, 92, 246, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8B5CF6, #06B6D4);
    --gradient-bg: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.08));
    --gradient-card: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.05));

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(139, 92, 246, 0.3);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing & Sizing */
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* WhatsApp */
    --whatsapp: #25D366;
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-primary);
    /* cursor: none; Uncomment if using custom cursor */
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ===== CANVAS PARTICLE ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s;
    display: none;
}
#cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-glow);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    #cursor-dot, #cursor-outline { display: block; }
    /* body { cursor: none; } */
}

/* ===== UTILITY CLASSES ===== */
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--accent); transition: all 0.3s ease; }
a:hover { color: var(--accent-light); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

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

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

/* ===== SECTION HEADERS ===== */
.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
}
.btn-outline:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HEADER ===== */
#main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    height: 64px;
}

#main-header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s;
    letter-spacing: -0.5px;
}
.logo:hover { color: #fff; transform: scale(1.02); }
.logo .accent { font-size: 2rem; }

/* Nav Links */
.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.3s;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}
.nav-link.cta-nav {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.5rem 1.2rem;
    margin-left: 0.5rem;
}
.nav-link.cta-nav:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

/* Active nav link */
.nav-link.active {
    color: var(--accent);
}

/* ===== HAMBURGER ===== */
#hamburger-btn {
    display: block;
    width: 28px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
#hamburger-btn .bar {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#hamburger-btn .bar:nth-child(1) { top: 0; width: 100%; }
#hamburger-btn .bar:nth-child(2) { top: 9px; width: 70%; }
#hamburger-btn .bar:nth-child(3) { top: 18px; width: 100%; }

#main-header.menu-open #hamburger-btn .bar:nth-child(1) { top: 9px; transform: rotate(45deg); }
#main-header.menu-open #hamburger-btn .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
#main-header.menu-open #hamburger-btn .bar:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ===== MOBILE MENU ===== */
#mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#mobile-menu.active { transform: translateX(0); }
#mobile-menu ul { text-align: center; }
#mobile-menu li { margin-bottom: 1.5rem; }
#mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 1rem;
}
#mobile-menu a:hover { color: var(--accent); }
#mobile-menu .cta-button.primary {
    background: var(--gradient-primary);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: badge-pulse 3s ease-in-out infinite;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: dot-blink 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
    50% { box-shadow: 0 0 20px rgba(139,92,246,0.15); }
}
@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Trust Indicator */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.trust-avatars {
    display: flex;
}
.trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-primary);
    margin-right: -8px;
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Code Window */
.hero-visual {
    display: none;
}

.hero-code-window {
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(139,92,246,0.1);
    backdrop-filter: blur(10px);
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.red { background: #FF5F57; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #28CA41; }
.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.code-body {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}
.code-keyword { color: #C792EA; }
.code-string { color: #C3E88D; }
.code-func { color: #82AAFF; }
.code-comment { color: #546E7A; font-style: italic; }

/* ===== STATS ===== */
#stats {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}
#stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.stat-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    display: inline;
}
.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== ABOUT ===== */
#about {
    overflow: visible;
}

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

.about-image-col {
    display: flex;
    justify-content: center;
}

.about-photo-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
}
.about-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: photo-pulse 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes photo-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

.about-photo, #photo-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-secondary);
}
#photo-placeholder {
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--text-secondary);
}

.about-float-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 5;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}
.about-float-card i {
    color: var(--accent);
    font-size: 0.9rem;
}
.card-top { top: 10px; right: -20px; animation-delay: 0s; }
.card-bottom { bottom: 20px; left: -20px; animation-delay: 3s; }

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

.about-text-col .section-title { text-align: left; }
.about-text-col .section-label { text-align: left; }
.about-text-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.highlight-item i {
    color: #10B981;
    font-size: 0.85rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(139,92,246,0.15);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
    border-color: var(--border-accent);
    background: rgba(139, 92, 246, 0.08);
}
.service-card.featured::before { opacity: 1; }

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s;
}
.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    text-align: left;
    margin-bottom: 1.5rem;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
}
.service-features li i {
    color: #10B981;
    font-size: 0.7rem;
}

.service-price {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}
.price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

/* ===== PROCESS ===== */
#process {
    background: var(--gradient-bg);
}

.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}
.process-step:hover {
    border-color: var(--border-accent);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(139,92,246,0.1);
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 50px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}
.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-left: auto;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

/* ===== SKILLS ===== */
.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-bar-item .skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.skill-bar-item .skill-info span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}
.skill-percent {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.skill-tag {
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    color: var(--accent-light);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.3s;
}
.skill-tag:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

/* ===== PROJECTS ===== */
#project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#project-loader {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
}
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.error-msg { color: #ff6b6b; text-align: center; }

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(139,92,246,0.15);
}

.project-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.project-card .folder-icon {
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.7;
}
.project-card .project-links {
    display: flex;
    gap: 0.75rem;
}
.project-card .project-links a {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    padding: 0.25rem;
}
.project-card .project-links a:hover { color: var(--accent); }

.project-card .project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.project-card .project-title a { color: #fff; }
.project-card:hover .project-title a { color: var(--accent-light); }

.project-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}
.project-language {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.project-language i { font-size: 0.6rem; }
.project-stats {
    display: flex;
    gap: 0.75rem;
}
.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-sizing: border-box;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}
.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.testimonial-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.8rem;
}
.testimonial-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}
.testimonial-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ===== CONTACT ===== */
#contact {
    background: var(--gradient-bg);
}

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

.contact-info .section-title { text-align: left; }
.contact-info .section-label { text-align: left; }
.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-item a, .contact-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s;
}
.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-3px);
}

/* Form */
.contact-form-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
    background: rgba(139,92,246,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.form-note i { color: #10B981; }

/* Form submit states */
#submit-btn {
    position: relative;
    overflow: hidden;
}
#submit-btn.sending {
    pointer-events: none;
    opacity: 0.7;
}
#submit-btn.sent {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* ===== WHATSAPP FAB ===== */
#whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    background: var(--whatsapp);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s;
}
#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
    color: #fff;
}
#whatsapp-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--whatsapp);
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== SCROLL TO TOP ===== */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scroll-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 280px;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}
.footer-links a:hover { color: var(--accent-light); transform: translateX(3px); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.delay-1 { transition-delay: 150ms; }
.reveal.delay-2 { transition-delay: 300ms; }
.reveal.delay-3 { transition-delay: 450ms; }

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

/* ===== RESPONSIVE ===== */

/* ≥ 480px */
@media (min-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr 1fr; }
}

/* ≥ 768px */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    #hamburger-btn { display: none; }

    .hero-container { grid-template-columns: 1fr 1fr; text-align: left; }
    .hero-content { text-align: left; }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-description { margin: 0 0 2rem 0; }
    .hero-buttons { justify-content: flex-start; }
    .hero-trust { justify-content: flex-start; }
    .hero-visual { display: block; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-number { font-size: 2.8rem; }

    .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }

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

    .skills-container { grid-template-columns: 1fr 1fr; }

    #project-grid { grid-template-columns: 1fr 1fr; }

    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-wrapper { padding: 2.5rem; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

    #whatsapp-btn { width: 64px; height: 64px; font-size: 1.8rem; bottom: 25px; left: 25px; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
    .hero-content h1 { font-size: 3.8rem; }
    .section-title { font-size: 2.8rem; }

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

    #project-grid { grid-template-columns: 1fr 1fr 1fr; }

    .stats-grid { gap: 2rem; }

    .container { padding: 0 2rem; }
}

/* ≥ 1200px */
@media (min-width: 1200px) {
    .container { max-width: 1200px; }
    .hero-content h1 { font-size: 4.2rem; }
}

/* ≤ 380px */
@media (max-width: 380px) {
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .service-card { padding: 1.5rem 1rem; }
    .process-step { flex-direction: column; gap: 1rem; }
    .step-icon { margin-left: 0; }
}

/* ===== PREMIUM CONTACT CARD ===== */
.premium-contact-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.premium-contact-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.premium-contact-card .glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.premium-contact-card:hover .glow-bg {
    opacity: 1;
}

.premium-contact-card .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.premium-contact-card .icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    box-shadow: inset 0 0 20px var(--accent-subtle), 0 0 20px rgba(139, 92, 246, 0.2);
    position: relative;
}

.premium-contact-card .icon-ring::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px dashed var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 10s linear infinite;
}

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

.premium-contact-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.premium-contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--accent-glow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
    color: #fff;
}

.btn-premium .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-premium:hover .btn-icon {
    transform: translateX(5px);
}

.premium-contact-card .form-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.premium-contact-card .form-note i {
    color: #10B981;
}
