
    
    *,
    *::before,
    *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    }

    :root {
    --black: #050507;
    --deep: #0a0a0e;
    --card: #101015;
    --card2: #16161d;
    --white: #f5f5f7;
    --muted: #6b6b7b;
    --muted2: #a1a1b3;
    --red: #ff334b;
    --red2: #c7001e;
    --red-dark: #800010;
    --accent: #ff4d61;
    --border: rgba(255, 51, 75, 0.14);
    --border2: rgba(255, 51, 75, 0.28);
    --glow: rgba(255, 51, 75, 0.22);
    }

    html {
    scroll-behavior: smooth;
    }

    body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
    }

    /* GRID BG */
    body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(rgba(255, 51, 75, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 51, 75, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
    z-index: 0;
    }

    @keyframes gridMove {
    from {
    background-position: 0 0;
    }
    to {
    background-position: 64px 64px;
    }
    }

    /* orbes */
    .orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    }

    .orb-1 {
    width: 550px;
    height: 550px;
    background: rgba(255, 51, 75, 0.08);
    top: -150px;
    left: -150px;
    animation: orbPulse 10s ease-in-out infinite;
    }

    .orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(199, 0, 30, 0.06);
    bottom: -100px;
    right: -100px;
    animation: orbPulse 10s ease-in-out 5s infinite;
    }

    @keyframes orbPulse {
    0%, 100% {
    transform: scale(1);
    opacity: 0.6;
    }
    50% {
    transform: scale(1.15);
    opacity: 0.9;
    }
    }

    /* floating code */
    .float-code {
    position: fixed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(255, 51, 75, 0.12);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    animation: floatUp 18s linear infinite;
    user-select: none;
    }

    .float-code:nth-child(1) { left: 4%; animation-delay: 0s; }
    .float-code:nth-child(2) { left: 22%; animation-delay: 6s; }
    .float-code:nth-child(3) { right: 8%; animation-delay: 12s; }

    @keyframes floatUp {
    from {
    transform: translateY(110vh);
    opacity: 0;
    }
    8% { opacity: 1; }
    92% { opacity: 1; }
    to {
    transform: translateY(-10vh);
    opacity: 0;
    }
    }

    /* navbar */
    nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 0.9rem 0;
    transition: background 0.3s;
    }

    .nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

    .nav-logo,
.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span,
.footer-brand span {
    color: var(--red);
    background: none;
    -webkit-text-fill-color: var(--red);
}

    nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    }

    nav a {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted2);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
    font-family: 'DM Sans', sans-serif;
    }

    nav a:hover {
    color: var(--red);
    background: rgba(255, 51, 75, 0.08);
    }

    .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--red), var(--red2));
    color: #fff !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 14px rgba(255, 51, 75, 0.3);
    }

    .nav-cta:hover {
    background: linear-gradient(135deg, #ff5c6f, var(--red)) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 51, 75, 0.5) !important;
    }

    /* hero */
    header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
    }

    .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(255, 51, 75, 0.08);
    border: 1px solid rgba(255, 51, 75, 0.25);
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: riseIn 0.7s ease both;
    }

    .blink-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
    }

    @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
    }

    .hero-logo-wrapper {
    position: relative;
    width: 160px; 
    height: 160px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: riseIn 0.7s ease 0.1s both;
    }

    .hero-logo-wrapper::before {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(255, 51, 75, 0.25) 0%, transparent 65%);
    filter: blur(15px);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
    }

    .hero-logo-wrapper img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    }

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

    @keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    }

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

    .profile-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--black);
    }

    .hero-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 0.8rem;
    animation: riseIn 0.7s ease 0.15s both;
    }

    .hero-name .grad {
    background: linear-gradient(90deg, var(--white) 40%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .hero-role {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--red);
    background: rgba(255, 51, 75, 0.08);
    border: 1px solid rgba(255, 51, 75, 0.22);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.8rem;
    animation: riseIn 0.7s ease 0.2s both;
    }

    .hero-tagline {
    font-size: 1.1rem;
    color: var(--muted2);
    max-width: 560px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.75;
    animation: riseIn 0.7s ease 0.25s both;
    }

    .hero-tagline strong {
    color: var(--white);
    font-weight: 500;
    }

    .hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: riseIn 0.7s ease 0.3s both;
    }

    .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--red), var(--red2));
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 51, 75, 0.3);
    }

    .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 51, 75, 0.5);
    }

    .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--muted2);
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border2);
    transition: all 0.3s;
    }

    .btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(255, 51, 75, 0.05);
    }

    /* scroll hint */
    .scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    animation: riseIn 0.7s ease 0.5s both;
    }

    .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--red));
    animation: scrollDown 1.8s ease-in-out infinite;
    }

    @keyframes scrollDown {
    0% {
    transform: scaleY(0);
    transform-origin: top;
    }
    50% {
    transform: scaleY(1);
    transform-origin: top;
    }
    51% {
    transform: scaleY(1);
    transform-origin: bottom;
    }
    100% {
    transform: scaleY(0);
        transform-origin: bottom;
    }
    }

    @keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

    /* layout */
    .container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    }

    section {
    padding: 7rem 0;
    }

    .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    }

    .section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--red);
    }

    .section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 1rem;
    }

    .section-title .accent {
    background: linear-gradient(90deg, var(--red), #ff7588);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .section-sub {
    font-size: 1rem;
    color: var(--muted2);
    font-weight: 300;
    max-width: 540px;
    line-height: 1.75;
    }

    /* reveal */
    .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* sobre mi */
    #sobre-mi {
    background: var(--black);
    }

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

    .about-text {
    font-size: 1.05rem;
    color: var(--muted2);
    line-height: 1.85;
    font-weight: 300;
    }

    .about-text strong {
    color: var(--white);
    font-weight: 500;
    }

    .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    }

    .a-stat {
    background: var(--card);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.3s;
    }

    .a-stat:hover {
    background: var(--card2);
    }

    .a-stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, var(--red), #ff7588);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .a-stat-lbl {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
    }

    /* habilidades */
    #habilidades {
    background: var(--deep);
    }

    .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 3rem;
    }

    .skill-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
    }

    .skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--red), #ff7588);
    transform: scaleX(0);
    transition: transform 0.3s;
    }

    .skill-item:hover {
    border-color: var(--border2);
    background: rgba(255, 51, 75, 0.06);
    transform: translateY(-4px);
    }

    .skill-item:hover::before {
    transform: scaleX(1);
    }

    .skill-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: block;
    }

    .skill-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted2);
    letter-spacing: 0.03em;
    }

    #proyectos {
    background: var(--black);
    }

    .projects-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
    }

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

    .project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    }

    .project-card:hover {
    border-color: var(--border2);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--glow);
    }

    .project-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    }

    .project-card.featured .card-img-wrap {
    width: 45%;
    flex-shrink: 0;
    height: auto;
    }

    .project-card.featured .card-body {
    flex: 1;
    }

    .card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--deep);
    }

    .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(16, 16, 21, 0.95) 100%);
    }

    .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    }

    .badge-live {
    background: rgba(255, 51, 75, 0.12);
    color: var(--red);
    border: 1px solid rgba(255, 51, 75, 0.3);
    }

    .badge-demo {
    background: rgba(255, 255, 255, 0.06);
    color: #ff94a2;
    border: 1px solid rgba(255, 51, 75, 0.2);
    }

    .card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    }

    .card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    }

    .card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.3px;
    }

    .card-desc {
    font-size: 0.88rem;
    color: var(--muted2);
    line-height: 1.65;
    font-weight: 300;
    flex: 1;
    }

    .card-features {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    }

    .card-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted2);
    }

    .card-feature::before {
    content: '▸';
    color: var(--red);
    font-size: 0.7rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    }

    .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
    }

    .card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    }

    .card-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    }

    .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    background: rgba(255, 51, 75, 0.08);
    border: 1px solid rgba(255, 51, 75, 0.22);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    }

    .card-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    }

    .card-link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    }

    
    #contacto {
    background: var(--deep);
    }

    .contact-wrap {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    }

    .contact-box {
background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 24px;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    }

    .contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    }

    .contact-box::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 51, 75, 0.1) 0%, transparent 70%);
    pointer-events: none;
    }

    .contact-box h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    }

    .contact-box p {
    font-size: 1rem;
    color: var(--muted2);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    }

    .contact-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    }

    
    footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
    }

    .footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    }

    .footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    }

    .footer-brand span {
    background: linear-gradient(90deg, var(--red), #ff7588);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    }

    .footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    }

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

    .footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    }

    .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
    }

    /* hamburger */
    .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    cursor: pointer;
    z-index: 300;
    transition: border-color 0.2s;
    }

    .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--muted2);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    }

    .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--red);
    }

    .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    }

    .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--red);
    }

    /* Mobile menu */
    .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.98);
    backdrop-filter: blur(20px);
    z-index: 250;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    }

    .mobile-menu a {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--muted2);
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-radius: 12px;
    letter-spacing: -0.5px;
    transition: all 0.2s;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
    color: var(--red);
    }

    .mobile-menu .menu-cta {
    margin-top: 1.5rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--red), var(--red2));
    color: #fff !important;
    padding: 0.9rem 2.5rem !important;
    box-shadow: 0 4px 20px rgba(255, 51, 75, 0.4);
    }

    /* responsive */
    @media (max-width: 768px) {
    .float-code { display: none; }
    .hamburger { display: flex; }
    nav ul, .nav-cta { display: none; }
    .nav-inner { padding: 0 1rem; }

    header { padding: 7rem 1.2rem 5rem; }
    .hero-badge { font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.35rem 0.85rem; margin-bottom: 1.5rem; }
    .profile-ring { width: 110px; height: 110px; margin-bottom: 1.5rem; }
    .hero-name { font-size: clamp(2.4rem, 10vw, 3.5rem); letter-spacing: -1px; }
    .hero-role { font-size: 0.72rem; padding: 0.35rem 0.85rem; margin-bottom: 1.2rem; }
    .hero-tagline { font-size: 0.95rem; margin-bottom: 2rem; padding: 0 0.5rem; }

    .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 0.9rem 1.5rem; }
    .scroll-hint { display: none; }

    section { padding: 4rem 0; }
    .container { padding: 0 1.2rem; }
    .section-title { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.5px; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .a-stat { padding: 1.4rem 1rem; }
    .a-stat-num { font-size: 2rem; }
    .about-text { font-size: 0.95rem; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 2rem; }
    .skill-item { padding: 1rem 0.8rem; }
    .skill-icon { font-size: 1.4rem; }
    .skill-name { font-size: 0.7rem; }

    .projects-intro { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.2rem; }

    .project-card.featured { flex-direction: column; grid-column: auto; }
    .project-card.featured .card-img-wrap { width: 100%; height: 200px; }
    .card-img-wrap { height: 190px; }
    .card-body { padding: 1.2rem; gap: 0.7rem; }
    .card-title { font-size: 1.05rem; }
    .card-desc { font-size: 0.83rem; }
    .card-feature { font-size: 0.78rem; }

    .card-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .card-actions { width: 100%; }
    .card-link { width: 100%; justify-content: center; }

    .contact-box { padding: 2.5rem 1.2rem; border-radius: 18px; }
    .contact-box h3 { font-size: 1.5rem; }
    .contact-box p { font-size: 0.92rem; margin-bottom: 1.8rem; }
    .contact-ctas { flex-direction: column; align-items: stretch; }
    .contact-ctas .btn-primary, .contact-ctas .btn-ghost { justify-content: center; }

    footer { padding: 2rem 1.2rem; }
    .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
    }

    @media (max-width: 400px) {
    .hero-name { font-size: 2.2rem; }
    .hero-role { font-size: 0.65rem; }
    .a-stat-num { font-size: 1.7rem; }
    }
