@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
    /* Colors — Light Mode */
    --bg:             #f7f5f2;
    --bg-card:        #ffffff;
    --bg-nav:         rgba(247, 245, 242, 0.92);
    --text-primary:   #1a1310;
    --text-secondary: #5c4f47;
    --text-muted:     #9a8e88;
    --accent:         #d00000;
    --accent-hover:   #9d0208;
    --accent-warm:    #e85d04;
    --accent-gold:    #f48c06;
    --accent-light:   #fff0eb;
    --border:         rgba(0,0,0,0.08);
    --shadow-sm:      0 2px 12px rgba(0,0,0,0.06);
    --shadow-md:      0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Spacing */
    --nav-h:        80px;
    --section-pad:  6rem;
    --radius-sm:    10px;
    --radius-md:    18px;
    --radius-lg:    28px;
    --radius-pill:  999px;

    /* Transitions */
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast:       0.2s;
    --t-med:        0.4s;
    --t-slow:       0.7s;
}

/* ---- DARK MODE TOKENS ---- */
.dark-theme {
    --bg:             #0f0d0c;
    --bg-card:        #1c1917;
    --bg-nav:         rgba(15, 13, 12, 0.92);
    --text-primary:   #f0ece8;
    --text-secondary: #c4b8b0;
    --text-muted:     #7a6e68;
    --accent:         #ef4444;
    --accent-hover:   #b91c1c;
    --accent-warm:    #f97316;
    --accent-gold:    #fbbf24;
    --accent-light:   #1f1210;
    --border:         rgba(255,255,255,0.08);
    --shadow-sm:      0 2px 12px rgba(0,0,0,0.3);
    --shadow-md:      0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.5);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
    overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius-pill); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; }
p { color: var(--text-secondary); }

/* ---- LAYOUT ---- */
.container { width: 100%; position: relative; }
.wrapper { padding-inline: clamp(1.5rem, 8vw, 10rem); }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-med) var(--ease);
    text-decoration: none;
}
.btn i { font-size: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 0, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---- NAVIGATION ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding-inline: clamp(1.5rem, 7vw, 9rem);
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--t-med) var(--ease);
}

nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    height: 68px;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast) var(--ease);
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle i { font-size: 18px; }

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.nav-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-menu-btn i { font-size: 22px; }

/* ---- HERO SECTION ---- */
.featured-box {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--nav-h);
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(208,0,0,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(208,0,0,0.2);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
}
.badge::before { content: "●"; font-size: 6px; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity: 0.3; } }

.featured-name h1 { color: var(--text-primary); margin-bottom: 0.25rem; }
.name-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-line {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
}

.typedText { color: var(--accent-warm); }
.cursor-blink {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
/* Hide default typed cursor since we have our own */
.typed-cursor { display: none !important; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.featured-text-info p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
}

.featured-text-btn { display: flex; gap: 1rem; flex-wrap: wrap; }

.social-icons { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.icon i { font-size: 18px; }
.icon:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.icon-link { text-decoration: none; color: inherit; display: flex; }
.icon.icon-sm { width: 36px; height: 36px; }
.icon.icon-sm i { font-size: 15px; }

.featured-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.image-ring {
    position: relative;
    width: 420px;
    height: 420px;
}
.image-ring::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50% 44% 56% 44% / 46% 50% 50% 54%;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold), transparent 70%);
    animation: ringRotate 8s linear infinite;
    opacity: 0.5;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.image {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50% 44% 56% 44% / 46% 50% 50% 54%;
    overflow: hidden;
    animation: imgFloat 6s ease-in-out infinite;
}
.image img { width: 100%; height: 100%; object-fit: cover; }
@keyframes imgFloat {
    0%, 100% { border-radius: 50% 44% 56% 44% / 46% 50% 50% 54%; transform: translateY(0); }
    50% { border-radius: 44% 50% 44% 50% / 50% 46% 54% 46%; transform: translateY(-14px); }
}

.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    border: 1px solid var(--border);
    white-space: nowrap;
    animation: tagFloat 4s ease-in-out infinite;
}
.floating-tag i { color: var(--accent); font-size: 14px; }
.tag-1 { bottom: 14%; left: -8%; animation-delay: 0s; }
.tag-2 { top: -14%; right: 8%; animation-delay: 1.5s; }
@keyframes tagFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- SECTION STYLES ---- */
.section { padding-block: var(--section-pad); }

.top-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.top-header h2 { color: var(--text-primary); }
.top-header-sub { color: var(--text-muted); margin-top: 0.5rem; }

.row {
    display: flex;
    gap: 3rem;
    align-items: center;
}
.col { flex: 1; }

/* ---- ABOUT ---- */
.about-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.about-info p { font-size: 0.975rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-info strong { color: var(--accent); }

.about-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.image-about {
    width: 340px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.image-about img { width: 100%; height: 100%; object-fit: cover; }

/* ---- SKILLS ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ---- SKILLS — PILL ICON GRID ---- */
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    cursor: default;
    transition: all var(--t-med) var(--ease);
    position: relative;
    overflow: hidden;
}
.skill-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
    z-index: 0;
}
.skill-pill:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}
.skill-pill:hover::before { opacity: 1; }
.skill-pill:hover .pill-icon { filter: brightness(10); }

.skill-pill > * { position: relative; z-index: 1; }

.pill-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter var(--t-med) var(--ease);
}

.pill-icon-fa {
    font-size: 18px;
    color: var(--accent);
    transition: color var(--t-med) var(--ease);
}
.skill-pill:hover .pill-icon-fa { color: #fff; }


/* ---- PROJECT STATS ---- */
.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.project-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
    cursor: default;
}
.project-box::after {
    content: "";
    position: absolute;
    bottom: -105%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    transition: bottom var(--t-med) var(--ease);
    z-index: 0;
}
.project-box:hover::after { bottom: 0; }
.project-box > * { position: relative; z-index: 1; transition: color var(--t-fast) var(--ease); }
.project-box:hover > * { color: #fff !important; }
.project-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-box i { font-size: 2.5rem; color: var(--accent-gold); }
.project-box h3 { font-size: 1rem; margin: 0; }
.project-box label { font-size: 0.85rem; color: var(--text-muted); cursor: default; }

/* ---- PROJECT CARDS ---- */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.project-card-link:hover .project-card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-carousel {
    position: relative;
    width: 48%;
    min-height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}
.carousel-slide { display: none; width: 100%; height: 100%; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: var(--accent); }
.prev { left: 10px; }
.next { right: 10px; }

.slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.dot.active-dot { width: 18px; border-radius: 3px; background: #fff; }

.project-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.project-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
}

.project-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.project-info p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.25rem;
    transition: gap var(--t-fast) var(--ease);
}
.project-card-link:hover .project-link-hint { gap: 10px; }
.project-link-hint i { font-size: 15px; }

/* ---- CONTACT ---- */
.contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 320px;
}
.contact-info::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.contact-info > h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-info > p { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.contact-info p i { font-size: 17px; color: rgba(255,255,255,0.7); }
.contact-socials { display: flex; gap: 0.65rem; margin-top: 1rem; }
.contact-socials .icon { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; }
.contact-socials .icon:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #fff; }

.form-control { display: flex; flex-direction: column; gap: 1rem; }
.form-inputs { display: flex; gap: 1rem; }
.input-group { flex: 1; }

.input-field, textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input-field { height: 52px; }
textarea { height: 200px; resize: none; }
.input-field:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(208,0,0,0.08);
}
.input-field::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ---- SCROLL BUTTON ---- */
.scroll-icon-box { display: flex; justify-content: center; margin-top: 4rem; }
.scroll-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-size: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all var(--t-fast) var(--ease);
}
.scroll-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.scroll-btn i { font-size: 18px; }

/* ---- FOOTER ---- */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding-block: 3.5rem;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); }
.footer-menu { display: flex; list-style: none; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
.footer-menu-list a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast) var(--ease);
}
.footer-menu-list a:hover { color: var(--accent); }
.footer-social-icons { display: flex; gap: 0.65rem; }
.bottom-footer { font-size: 0.8rem; color: var(--text-muted); }
.bottom-footer a { color: var(--accent); text-decoration: none; }
.bottom-footer a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .image, .image img { width: 320px; height: 320px; }
    .image-ring { width: 320px; height: 320px; }
    .tag-1, .tag-2 { display: none; }
}

@media (max-width: 900px) {
    .nav-actions .btn-outline { display: none; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        transform: translateY(-100vh);
        opacity: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        height: calc(100vh - var(--nav-h));
        transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
        border-top: 1px solid var(--border);
    }
    .nav-menu.responsive {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-menu-list { flex-direction: column; align-items: center; gap: 0.5rem; }
    .nav-link { font-size: 1.25rem; padding: 12px 30px; }
    .nav-menu-btn { display: flex; }

    .featured-box { flex-direction: column; justify-content: center; gap: 2rem; padding-top: calc(var(--nav-h) + 2rem); min-height: 100svh; }
    .featured-text { align-items: center; text-align: center; order: 2; }
    .featured-text-info p { text-align: center; }
    .featured-image { order: 1; }
    .image, .image img { width: 220px; height: 220px; }
    .image-ring { width: 220px; height: 220px; }
    .social-icons { justify-content: center; }
    .featured-text-btn { justify-content: center; }

    .row { flex-direction: column; }
    .col { width: 100%; }
    .about-image { width: 100%; justify-content: center; }
    .image-about { width: 100%; height: 300px; }

    .skills-grid { grid-template-columns: 1fr; }
    .project-stats { grid-template-columns: 1fr; }
    .project-card { flex-direction: column; }
    .project-carousel { width: 100%; min-height: 260px; }
    .project-info { padding: 1.75rem; }

    .form-inputs { flex-direction: column; }
}

@media (max-width: 540px) {
    :root { --section-pad: 4rem; }
    .featured-name h1 { font-size: 2.2rem; }
    .floating-tag { display: none; }
}
