/* ============================================
   Iann Hernández - Dark Mode Pro
   Animaciones y efectos premium
   ============================================ */

/* === Variables === */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1f;
    --bg-card: #0d0d25;
    --bg-card-hover: #111138;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --cyan: #00f0ff;
    --violet: #8b5cf6;
    --pink: #f472b6;
    --green: #22d3ee;
    --gradient-main: linear-gradient(135deg, #00f0ff, #8b5cf6);
    --gradient-alt: linear-gradient(135deg, #f472b6, #8b5cf6);
    --gradient-moving: linear-gradient(270deg, #00f0ff, #8b5cf6, #f472b6, #00f0ff);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-strong: 0 0 40px rgba(0, 240, 255, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
    --border-glow: 1px solid rgba(0, 240, 255, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s;
}

/* === Scroll Progress Bar === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-main);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* === Aurora Background === */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: auroraFloat 20s infinite ease-in-out;
}

.aurora-blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--cyan);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.aurora-blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: var(--violet);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.aurora-blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: var(--pink);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes auroraFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-50px, 100px) scale(0.9);
    }

    75% {
        transform: translate(-100px, -50px) scale(1.05);
    }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
}

.navbar-logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: gradientShift 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.nav-links a:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--cyan);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--cyan);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 240, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0, 240, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.hero-badge .pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-title .gradient-name {
    background: var(--gradient-moving);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.hero-title .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--cyan);
    margin-left: 4px;
    animation: cursorBlink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-role {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-role .role-line {
    width: 40px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero visual - 3D card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-card-3d {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hero-card-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-moving);
    background-size: 300% 100%;
    border-radius: 21px;
    z-index: -1;
    animation: gradientText 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.hero-card-3d:hover::before {
    opacity: 1;
}

.hero-card-3d .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-dots span:nth-child(1) {
    background: #ef4444;
}

.card-dots span:nth-child(2) {
    background: #eab308;
}

.card-dots span:nth-child(3) {
    background: #22c55e;
}

.card-filename {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
    font-family: 'Fira Code', monospace;
}

.card-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.9;
}

.card-code .code-line {
    display: block;
    opacity: 0;
    transform: translateX(-15px);
    animation: codeLineIn 0.5s forwards;
}

.card-code .code-line:nth-child(1) {
    animation-delay: 0.5s;
}

.card-code .code-line:nth-child(2) {
    animation-delay: 0.9s;
}

.card-code .code-line:nth-child(3) {
    animation-delay: 1.3s;
}

.card-code .code-line:nth-child(4) {
    animation-delay: 1.7s;
}

.card-code .code-line:nth-child(5) {
    animation-delay: 2.1s;
}

.card-code .code-line:nth-child(6) {
    animation-delay: 2.5s;
}

.card-code .code-line:nth-child(7) {
    animation-delay: 2.9s;
}

@keyframes codeLineIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cl-tag {
    color: var(--pink);
}

.cl-attr {
    color: var(--cyan);
}

.cl-str {
    color: #a5f3a1;
}

.cl-punc {
    color: var(--violet);
}

.cl-comment {
    color: var(--text-muted);
}

/* === Sections === */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 14px;
    position: relative;
    padding: 0 20px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gradient-main);
}

.section-tag::before {
    left: -20px;
}

.section-tag::after {
    right: -20px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title .glow-word {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* === Animated border grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.04), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.3rem;
    color: var(--cyan);
    transition: var(--transition);
}

.service-card:hover .svc-icon {
    background: var(--gradient-main);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* === Ideas === */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.idea-card {
    background: rgba(13, 13, 37, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.idea-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}

.idea-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: var(--gradient-moving);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientText 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.idea-card:hover::after {
    opacity: 1;
}

.idea-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.idea-img {
    position: relative;
    height: 696px;
    overflow: hidden;
}

/* Browser Preview */
.browser-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    opacity: 0.85;
    transition: opacity 0.4s;
}

.idea-card:hover .browser-preview {
    opacity: 1;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.bp-dots {
    display: flex;
    gap: 4px;
}

.bp-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
}

.bp-dots i:nth-child(1) {
    background: #ef4444;
}

.bp-dots i:nth-child(2) {
    background: #eab308;
}

.bp-dots i:nth-child(3) {
    background: #22c55e;
}

.bp-url {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 12px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.browser-preview iframe {
    width: 1000px;
    height: 650px;
    border: none;
    transform: scale(0.56);
    transform-origin: top left;
    pointer-events: none;
    background: #fff;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.idea-card:hover .browser-preview iframe {
    transform: scale(0.58);
}

.idea-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(13, 13, 37, 0.6) 70%, var(--bg-card));
}

.idea-live {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.idea-live .live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
    position: relative;
}

.idea-live .live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: pulseRing 2s infinite;
}

.idea-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 89px;
    background: linear-gradient(to top, rgba(13, 13, 37, 0.95) 0%, rgba(13, 13, 37, 0.85) 60%, transparent 100%);
    z-index: 3;
}

.idea-body h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.idea-body .idea-text {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.idea-tags span {
    padding: 2px 8px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 50px;
    font-size: 0.68rem;
    color: var(--cyan);
    font-weight: 500;
}

.idea-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.idea-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.idea-flow .flow-step {
    display: flex;
    align-items: center;
    gap: 4px;
}

.idea-flow .flow-step i {
    color: var(--cyan);
    font-size: 0.65rem;
}

.idea-flow .flow-arrow {
    color: var(--violet);
}

.idea-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.idea-visit:hover {
    gap: 12px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* === About === */
.about-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-img-area {
    flex: 0 0 340px;
    position: relative;
}

.about-frame {
    width: 340px;
    height: 400px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.about-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-moving);
    background-size: 300% 100%;
    border-radius: 25px;
    z-index: -1;
    animation: gradientText 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.about-frame:hover::before {
    opacity: 1;
}

.about-frame .user-icon {
    font-size: 5rem;
    color: var(--violet);
    animation: floatIcon 4s ease-in-out infinite;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    transition: transform 0.5s ease;
}

.about-frame:hover .about-photo {
    transform: scale(1.05);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.about-stats-float {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    display: flex;
    gap: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.about-stat {
    text-align: center;
}

.about-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text {
    flex: 1;
}

.about-text .section-tag {
    padding: 0;
}

.about-text .section-tag::before,
.about-text .section-tag::after {
    display: none;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 32px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.check-item i {
    color: var(--cyan);
    font-size: 0.8rem;
}

.about-socials {
    display: flex !important;
    gap: 28px !important;
    margin-top: 32px !important;
    justify-content: flex-start !important;
}

.social-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 20px !important;
    background: var(--bg-card) !important;
    border: 2px solid rgba(0, 240, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted) !important;
    font-size: 1.6rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.social-icon:hover {
    background: var(--gradient-main) !important;
    border-color: transparent !important;
    color: var(--bg-primary) !important;
    transform: translateY(-8px) rotate(8deg) !important;
    box-shadow: var(--glow-cyan) !important;
}

/* === Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-info>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.c-item:hover .c-icon {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: var(--glow-cyan);
}

.c-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.c-text span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

/* Form */
.form-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-moving);
    background-size: 300% 100%;
    animation: gradientText 4s linear infinite;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: rgba(10, 10, 31, 0.8);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 240, 255, 0.35);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.form-msg {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    display: none;
}

.form-msg.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    display: block;
}

.form-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: block;
}

/* === Footer === */
.footer {
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 2;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === 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.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.1s;
}

.reveal-d2 {
    transition-delay: 0.2s;
}

.reveal-d3 {
    transition-delay: 0.3s;
}

.reveal-d4 {
    transition-delay: 0.4s;
}

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* === WhatsApp === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7rem;
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition);
    animation: waFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes waFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--violet);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* === Mobile Overlay === */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* === Responsive === */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-role {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-card-3d {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        flex-direction: column;
        text-align: center;
    }

    .about-img-area {
        flex: none;
    }

    .about-checks {
        justify-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid rgba(0, 240, 255, 0.08);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .ideas-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-frame {
        width: 280px;
        height: 340px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .form-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .section {
        padding: 72px 0;
    }

    .about-frame {
        width: 240px;
        height: 290px;
    }

    .about-checks {
        grid-template-columns: 1fr;
    }
}

/* === Fade In Up === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}