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

:root {
    --cream: #f0ede6;
    --ink: #1a1a18;
    --muted: #4F4C42;
    --green: #16A34A;
    --white: #FFFFFF;
    --border: rgba(26, 26, 24, 0.12);
    --code-bg: #ebe8e0;
    --footer-bg: #e8e4dc;
    --border-footer: rgba(26, 26, 24, 0.10);
    --wa-green: #25D366;
    --wa-dark: #1DA851;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 100px;
    cursor: none;
    overflow-x: hidden;
    padding: 0 24px;
}


/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.5;
}

/* =====================
   LAYOUT
   ===================== */
.hero, .about, .services, .projects, .testimonials, .contact, .projects-page, .contact-page, .contact-form-section{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.about, .services, .projects, .testimonials, .contact, .projects-page, .contact-page, .contact-form-section { max-width: 1200px; }
.services, .projects,  .hero-contact { text-align: center; align-items: center; }

/* =====================
   CURSOR
   ===================== */
.cursor, .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}
.cursor {
    width: 10px; height: 10px;
    background: var(--ink);
    z-index: 9999;
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--ink);
    z-index: 9998;
    transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, border-color 0.2s ease;
}
body.cursor-hover .cursor { width: 6px; height: 6px; background: var(--green); }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: var(--green); }

/* =====================
   NAV
   ===================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 52px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    /* background: var(--cream); */

    background: rgba(240, 237, 230, 0.72);  /* --cream at 72% opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);    /* Safari */
    border-bottom: 1px solid rgba(26,26,24,0.06);
}
.logo {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.1s forwards;
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
}
.nav-links a {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* =====================
   HAMBURGER
   ===================== */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    position: relative;
}
.menu-btn span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(.23,1,.32,1), opacity 0.2s ease, width 0.3s ease;
}
.menu-btn span:nth-child(2) { width: 65%; margin-left: auto; }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================
   MOBILE DRAWER
   ===================== */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 9;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 32px 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mobile-drawer ul li { overflow: hidden; }
.mobile-drawer ul li a {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.6rem, 10vw, 4rem);
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(.23,1,.32,1), color 0.2s;
}
.mobile-drawer.open ul li a { transform: translateY(0); }
.mobile-drawer ul li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-drawer ul li:nth-child(2) a { transition-delay: 0.1s; }
.mobile-drawer ul li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-drawer ul li a:hover { color: var(--muted); }
.drawer-footer {
    margin-top: auto;
    display: flex;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}
.mobile-drawer.open .drawer-footer { opacity: 1; }
.drawer-footer a {
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.drawer-footer a:hover { color: var(--ink); }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 24px;
}
h1 { font-size: clamp(4rem, 9vw, 7.5rem); margin-bottom: 24px; text-align: center;}
h1 .italic { font-style: italic; color: var(--muted); }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }

.hero h1, .hero h2, .hero .status{
    opacity: 0;
    animation: fadeUp 0.7s ease 0.45s forwards;
}
.hero-contact h2{
    width: 600px;
}


/* =====================
   STATUS DOT
   ===================== */
.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.status-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* =====================
   HERO
   ===================== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 52px 80px;
    max-width: 860px;
}
.tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.02em;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.6s forwards;
}
.divider {
    height: 1px;
    width: 100%;
    background: var(--border);
    margin-bottom: 28px;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandLine 0.7s ease 0.75s forwards;
}
.stack {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.9s forwards;
}
.stack-item {
    font-size: 0.875rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.stack-item:hover { color: var(--ink); }
.stack-item + .stack-item::before { content: '·'; color: var(--muted); margin: 0 2px; }
.actions {
    display: flex;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.6s ease 1.05s forwards;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    cursor: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,26,24,0.18); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,26,24,0.08); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.magnetic { display: inline-flex; }

/* =====================
   CTA (shared)
   ===================== */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,26,24,0.2); }
.cta:active { transform: translateY(0); }
.cta-arrow { transition: transform 0.2s ease; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* =====================
   ABOUT
   ===================== */
.about{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}
.left { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.photo-frame { position: relative; width: 100%; max-width: 340px; }
.photo-card {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #c8c4bc;
    position: relative;
    box-shadow: 0 20px 60px rgba(26,26,24,0.12), 0 4px 16px rgba(26,26,24,0.06);
    transition: transform 0.4s cubic-bezier(.23,1,.32,1), box-shadow 0.4s ease;
}
.photo-card:hover { transform: translateY(-4px) rotate(0.5deg); box-shadow: 0 32px 80px rgba(26,26,24,0.16), 0 8px 24px rgba(26,26,24,0.08); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(100%); transition: filter 0.5s ease; }
.photo-card:hover img { filter: grayscale(10%); }
.photo-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,0.2); pointer-events: none; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge {
    padding: 9px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    cursor: default;
}
.badge:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.right { display: flex; flex-direction: column; }
.bio { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.bio p { font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.75; letter-spacing: 0.01em; }

/* Code block */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.code-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--muted), transparent);
    border-radius: 12px 12px 0 0;
}
.code-line { font-family: 'DM Mono', monospace; font-size: 0.875rem; line-height: 1.9; letter-spacing: 0.02em; }
.code-line .kw { color: #5b8dd9; }
.code-line .fn { color: var(--ink); font-weight: 500; }
.code-line .str { color: #e07b4a; }
.code-line .val { color: var(--green); }
.code-line .dim { color: var(--muted); }
.code-indent { padding-left: 20px; }

/* Tech stack */
.tech-stack { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: default; transition: transform 0.2s ease; }
.tech-item:hover { transform: translateY(-3px); }
.tech-icon {
    width: 36px; height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--code-bg);
    transition: border-color 0.2s, background 0.2s;
}
.tech-item:hover .tech-icon { border-color: var(--ink); background: var(--cream); }
.tech-icon i { font-size: 1.3rem; }
.tech-divider { font-size: 0.65rem; color: var(--muted); align-self: flex-start; margin-top: 10px; }
.tech-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.04em; }

/* Cursor blink */
.cursor-blink {
    display: inline-block;
    width: 2px; height: 0.85em;
    background: var(--ink);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* =====================
   REVEAL ANIMATIONS
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.23,1,.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.23,1,.32,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* =====================
   SECTION HEADER (shared)
   ===================== */
.section-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.subtitle { font-size: 0.78rem; font-weight: 300; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 16px;}

/* =====================
   CARDS (shared base)
   ===================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 24px 0;
}
.card {
    text-align: left;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(.23,1,.32,1), box-shadow 0.35s ease;
}
.card:hover { border-color: rgba(26,24,18,0.35); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(26,26,24,0.08); }
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(.23,1,.32,1);
    border-radius: 18px 18px 0 0;
}
.card:hover::before { transform: scaleX(1); }
.card-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.card-desc { font-size: 0.75rem; font-weight: 300; color: var(--muted); line-height: 1.8; letter-spacing: 0.01em; flex: 1; }
.card-tag { display: inline-flex; align-self: flex-start; padding: 4px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.card-year { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.04em; }
.card-link { font-size: 0.68rem; color: var(--ink); text-decoration: none; letter-spacing: 0.03em; display: flex; align-items: center; gap: 5px; transition: gap 0.2s ease; }
.card-link:hover { gap: 8px; }
.card-link svg { transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(2px); }

/* =====================
   SERVICES — unique
   ===================== */
.service-card { padding: 36px 28px 28px; gap: 16px; }
.card-icon { font-size: 1.6rem; color: var(--ink); height: 44px; display: flex; align-items: center; }
.card-divider { height: 1px; background: var(--border); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-tags span, .info-value { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }
.card-tags .dot { color: var(--border); font-size: 0.8rem; }

/* =====================
   PROJECTS — unique
   ===================== */
.projects .cards { grid-template-columns: repeat(4, 1fr); }
.project-card-preview { aspect-ratio: 16/10; border-bottom: 1px solid var(--border); }
.project-card-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.23,1,.32,1); }
.card:hover .project-card-preview img { transform: scale(1.04); }
.project-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card-body .card-title { font-size: 1.05rem; }


/* =====================
   TESTIMONIALS — unique
   ===================== */
.testimonials { align-items: center; }

.testimonials .cards {
    margin: 0;
    grid-template-columns: repeat(6, minmax(300px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hide scrollbar Firefox */
    overflow-y: visible;
 
    
}
.testimonials .cards::-webkit-scrollbar { display: none; } /* hide scrollbar Chrome */

/* fade out right edge to hint more content */
.testimonials {
    position: relative;
}
.testimonials::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--cream));
    pointer-events: none;
}

.testimonial-card {
    scroll-snap-align: start;

    position: relative;
    z-index: 99999;
    margin: 24px 0;

}

.testimonial-card {
    padding: 28px;
    gap: 20px;
}

.quote-icon {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--muted);
    line-height: 1;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.8;
    letter-spacing: 0.01em;
    flex: 1;
}

.testimonial-divider {
    height: 1px;
    background: var(--border);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--muted);
    flex-shrink: 0;
}

.author-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.author-role {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Star rating */
.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.stars {
    display: flex;
    gap: 6px;
    font-size: 1.3rem;
    color: var(--muted);
    opacity: 0.6;
}

.rating-label {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}


/* =====================
   CONTACT — unique
   ===================== */
.contact, .contact-form-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 80px;
    align-items: start;
    width: 100%;
}

.contact h2, .contact-form-section h2 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: 16px;
    animation: none;
    opacity: 1;
}

.contact-desc, .contact-left-desc {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
}

.contact-info, .contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.contact-info-item, .contact-info-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.contact-info-item i {
    font-size: 0.9rem;
    color: var(--ink);
    width: 16px;
}

.social-icons, .follow-icons {
    display: flex;
    gap: 10px;
}

.social-icon, .follow-icon {
    width: 40px; height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.social-icon:hover, .follow-icon:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,26,24,0.08);
}

/* Form */
.contact-form-wrap, .form-card {
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-wrap h3, .form-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: border-color 0.2s;
}
.form-field:focus-within { border-color: var(--ink); }

.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.02em;
    width: 100%;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.form-field textarea { min-height: 100px; padding-top: 4px; }

.send-btn {
    margin-top: 28px;
    width: 100%;
    padding: 16px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,26,24,0.2); }
.send-btn:active { transform: translateY(0); }
.send-arrow { transition: transform 0.2s ease; }
.send-btn:hover .send-arrow { transform: translateX(4px); }

/* flash messages */
.flash-messages{
    margin: 10px 0;
    text-align: center;
}
.alert-success{
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.alert-danger{
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}


/* ---------------------- projects page ---------------  */
 /* =====================
       FILTER TABS
       ===================== */
    
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 32px 0 48px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
 }
.filter-btn.active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

    /* =====================
       PROJECTS GRID
       ===================== */
.hero-project, .hero-contact{
    padding-bottom: 0;
    max-width: 1200px;
}

.projects-grid, .info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* card hide/show for filter */
.project-item {
    display: flex;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-item.hidden {
    display: none;
}

/* =====================
    LOAD MORE
===================== */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 52px;
}
.project-item.load-hidden{
    display: none !important;
}

/* ---------------------- contact page ---------------  */
/* KEEP — not in base .card */
.info-card {
    padding: 32px 24px 28px;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.info-label {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.info-value {
    font-size: 0.72em;
    letter-spacing: 0.03em;
    font-weight: 300;
}

.info-badge{
    gap: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    margin-top: 4px;
    text-transform: none;
}


.contact-form-section{
    align-items: start;
}
.contact-info-list{
    border-top: 1px solid var(--border);
    gap: 0;
}
.contact-info-list-item{
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-list-item i {
    font-size: 0.85rem;
    color: var(--ink);
    width: 18px;
    text-align: center;
}
.follow-label {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}


.form-card{
    position: relative;
    background: var(--cream);
    gap: none;
    box-shadow: none !important;
    transform: none !important;
}
/* two col row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.form-field-contact{
    margin-bottom: 6px;
}
.form-field-contact.textarea-field{
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
    transition: border-color 0.25s;
}
.form-field-contact.textarea-field:focus-within { border-color: var(--ink); }

/* response note */
.response-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-top: 14px;
}


    /* =====================
       FOOTER
       ===================== */

footer{
    background: var(--footer-bg);
    margin-top: 80px;
    margin-left: -24px;
    margin-right: -24px;
}

.footer-main{
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 52px;
}

.footer-brand-name{
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.footer-brand-desc{
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.footer-socials {display: flex; gap: 8px;}
.footer-social-icon{
    width: 38px; height: 38px;
    border: 1.5px solid var(--border-footer);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    transition: border-color 0.2s, transform 02s;
}
.footer-social-icon:hover{ border-color: var(--ink); transform: translateY(-2px); }

/* COL labels */
.footer-col-label{
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}
/* Nav & Services links */
.footer-links{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-links a{
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s, letter-spacing 0.2s;
}
.footer-links a:hover{ color: var(--muted); letter-spacing: 0.04em; }

/* COL 4 - Contact list */
.footer-contact-list{
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}
.footer-contact-item {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.02em;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-footer);
}
.footer-contact-item:first-child { border-top: 1px solid var(--border-footer); }

/* Hire Me button */
.hire-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    font-size: 0.68rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hire-btn:hover{
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 26, 24, 0.18);
}
.hire-arrow {transition: transform 0.2s;}
.hire-btn:hover .hire-arrow { transform: translateX(3px); }

 /* =====================
       BOTTOM BAR
       ===================== */

.footer-bottom{
    border-top: 1px solid var(--border-footer);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy, .footer-tagline { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.03em; font-weight: 300; }
.footer-legal { display: flex; align-items: center; gap: 6px; }
.footer-legal a{
    font-size: 0.6rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.footer-legal a:hover{ color: var(--ink); }
.footer-legal span { color: var(--muted); opacity: 0.5; font-size: 0.6rem; }




/* =====================
   KEYFRAMES
   ===================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes expandLine { to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,106,0.4); } 50% { box-shadow: 0 0 0 6px rgba(76,175,106,0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.shimmer{
    background: linear-gradient(
        90deg,
        #111 0%,
        #111 40%,
        #d8d8d8 50%,
        #111 60%,
        #111 100%
    );
    /* background: linear-gradient(
        90deg,
        #111111 0%,
        #111111 42%,
        #ffffff 50%,
        #111111 58%,
        #111111 100%
    ); */

    background-size:200% 100%;
    background-position:0% 0;

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;

    animation:shimmer 2.8s linear infinite;
}

@keyframes shimmer{
    from{
        background-position:0% 0;
    }

    to{
        background-position:200% 0;
    }
}



/* ── WHATSAPP WIDGET WRAPPER ── */
  .wa-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    /* Fix: allow clicks/hovers to pass through empty widget area */
    pointer-events: none;
  }
 
  /* Re-enable pointer events only on actual interactive children */
  .wa-widget .wa-card,
  .wa-widget .wa-btn,
  .wa-widget .wa-tooltip-wrap {
    pointer-events: auto;
  }
 
  /* Card is non-interactive when closed */
  .wa-widget .wa-card {
    pointer-events: none;
  }
 
  .wa-widget .wa-card.open {
    pointer-events: auto;
  }
 
  /* ── CHAT CARD ── */
  .wa-card {
    width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: bottom right;
  }
 
  .wa-card.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }
 
  /* Card Header */
  .wa-card-header {
    background: var(--code-bg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }
 
  .wa-avatar {
    width: 36px;
    height: 36px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
  }
 
  .wa-header-info {
    flex: 1;
  }
 
  .wa-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.01em;
  }
 
  .wa-status {
    font-size: 11px;
    color: var(--wa-green);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
  }
 
  .wa-status-dot {
    width: 6px;
    height: 6px;
    background: var(--wa-green);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
  }
 
  .wa-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
  }
 
  .wa-close:hover { color: var(--ink); }
 
  /* Card Body */
  .wa-card-body {
    padding: 16px;
    background: var(--white);
  }
 
  .wa-bubble {
    background: var(--code-bg);
    border-radius: 12px 12px 12px 4px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
  }
 
  .wa-timestamp {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.03em;
    padding-left: 4px;
  }
 
  /* Card Footer */
  .wa-card-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
  }
 
  .wa-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--wa-green);
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 10px;
  }
 
  .wa-chat-btn:hover {
    background: var(--wa-dark);
    transform: translateY(-1px);
  }
 
  .wa-chat-btn i {
    font-size: 15px;
  }
 
  .wa-reply-time {
    text-align: center;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.03em;
  }
 
  /* ── TOOLTIP ── */
  .wa-tooltip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 11.5px;
    color: var(--ink);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
 
  .wa-tooltip-dot {
    width: 6px;
    height: 6px;
    background: var(--wa-green);
    border-radius: 50%;
    flex-shrink: 0;
  }
 
  .wa-widget:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(0);
  }
 
.wa-card.open ~ .wa-tooltip-wrap .wa-tooltip {
    opacity: 0 !important;
    pointer-events: none;
}
 
  /* ── MAIN BUTTON ── */
  .wa-btn {
    width: 56px;
    height: 56px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: background 0.2s, transform 0.2s;
    position: relative;
    flex-shrink: 0;
  }
 
  .wa-btn:hover {
    background: var(--wa-dark);
    transform: scale(1.05);
  }
 
  .wa-btn i {
    font-size: 24px;
    color: var(--white);
  }
 
  /* Pulse ring */
  .wa-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--wa-green);
    opacity: 0.5;
    animation: pulse-ring 2s ease-out infinite;
  }
 
  /* ── ANIMATIONS ── */
  @keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.5; }
    70%  { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
  }
 
  @keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
  }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .mobile-drawer { display: flex; }
    .cursor, .cursor-ring { display: none; }
    body { cursor: auto;}
    .hero { 
        padding: 110px 0 0;
    }
    .actions {flex-direction: column; gap:10px; width: 100%; }
    .stack, .tech-stack{
        justify-content: center;
        gap: 22px;
        row-gap: 10px;
    }
    .service-card{
        padding: 24px 20px 20px;
    }
    .projects .cards, .projects-grid, .info-cards { grid-template-columns: 1fr; }

    .btn { cursor: pointer; justify-content: center; width: 100%; padding: 15px 24px; }
    
    .about { grid-template-columns: 1fr; gap: 40px; }

    .contact-form-wrap, .form-card{
        padding: 28px 24px;
    }


    .hero-project, .hero-contact{
        text-align: center;
    }
    .hero-contact h2{
        width: 100%;
    }


    footer{ margin-left: -24px; margin-right: -24px; }
    .footer-main { grid-template-columns: 1fr; padding: 40px 24px; }
    .footer-bottom { padding: 16px 24px; flex-direction: column; align-items: flex-start; gap: 6px; }
    
   .wa-widget {
      bottom: 20px;
      right: 20px;
    }
 
    .wa-card {
      width: calc(100vw - 40px);
      max-width: 300px;
    }
    .wa-tooltip-wrap{
        height: 0;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .projects .cards, .projects-grid, .info-card {
        grid-template-columns: 2fr 2fr;
    }
    /* body { padding: 0 24px; } */
    footer { margin-left: -24px; margin-right: -24px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 48px 32px 40px; }
    .footer-bottom{ padding: 16px 32px; flex-wrap: wrap; gap: 10px; }
    
}

@media (max-width: 380px){
    body{
        padding: 0 15px;
    }
    .cards{
        grid-template-columns: 1fr
    }
    .service-card{
        padding: 20px 16px 16px;
    }
    .contact{
        overflow-wrap: anywhere;
    }
    .contact, .contact-form-section{
        grid-template-columns: auto;
    }
    .contact-form-wrap, .form-card{
        padding: 20px 16px;
    }

    footer { margin-left: -15px; margin-right: -15px; }

    .wa-widget {
      bottom: 16px;
      right: 16px;
    }
 
    .wa-card {
      width: calc(100vw - 32px);
    }

    .email, .hero h2, .contact-left h2{
        overflow-wrap: anywhere;
    }
}