/* ==============================
   ROOT / DESIGN TOKENS
   ============================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --accent: #10B981;        /* Emerald Green */
    --accent-light: #34D399;
    --accent-glow: rgba(16, 185, 129, 0.35);
    --accent-subtle: rgba(16, 185, 129, 0.08);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    scroll-padding-top: 80px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.nav__logo span {
    color: var(--text-primary);
    font-weight: 400;
}

.nav__menu {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 4% 4rem;
    overflow: hidden;
}

/* Glow Effects (background blobs) */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 5%;
    right: 15%;
    opacity: 0.6;
}

.hero__glow--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    opacity: 0.5;
}

/* Decorative SVG Ornaments */
.deco-circle,
.deco-curve {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco-circle--top-right {
    top: 12%;
    right: 8%;
    animation: spinSlow 25s linear infinite;
}

.deco-curve--left {
    bottom: 20%;
    left: 3%;
    animation: floatVertical 6s ease-in-out infinite;
}

.deco-curve--bottom {
    bottom: 8%;
    right: 30%;
    animation: floatHorizontal 7s ease-in-out infinite;
}

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

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

@keyframes floatHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Hero Layout */
.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: center;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__content {
    position: relative;
}

.hero__name {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.hero__role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}


.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.hero__stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero__stat--projects {
    position: absolute;
    top: -10px;
    right: -30px;
}

.hero__description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Platform Buttons */
.hero__platforms {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: var(--font);
}

.platform-btn i {
    font-size: 1.1rem;
    color: var(--accent);
}

.platform-btn:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Photo */
.hero__photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero__photo-bg {
    position: absolute;
    bottom: 0;
    width: 85%;
    height: 95%;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.15) 40%, rgba(16, 185, 129, 0.25) 100%);
    border-radius: 200px 200px 20px 20px;
    z-index: 0;
}

.hero__photo {
    position: relative;
    z-index: 1;
    width: 320px;
    height: 400px;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 200px 200px 20px 20px;
    filter: brightness(1.1) contrast(1.05);
}

/* Hero Right Column */
.hero__right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Contact Me Button (single button that opens modal) */
.contact-me-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.contact-me-btn i {
    transition: transform 0.3s ease;
}

.contact-me-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 20px var(--accent-glow);
}

.contact-me-btn:hover i {
    transform: translateX(5px);
}

/* ==============================
   CONTACT MODAL SHEET
   ============================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-sheet__header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-sheet__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-sheet__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.modal-sheet__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-sheet__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.modal-option:hover {
    transform: translateX(5px);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.modal-option > i:first-child {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.modal-option div {
    flex-grow: 1;
}

.modal-option h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.modal-option span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-option__arrow {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-option:hover .modal-option__arrow {
    color: var(--text-primary);
    transform: translateX(3px);
}

/* Colors per platform */
.modal-option--wa > i:first-child { color: #25D366; }
.modal-option--wa:hover { border-color: rgba(37, 211, 102, 0.3); }

.modal-option--msg > i:first-child { color: #0084FF; }
.modal-option--msg:hover { border-color: rgba(0, 132, 255, 0.3); }

.modal-option--tele > i:first-child { color: #0088cc; }
.modal-option--tele:hover { border-color: rgba(0, 136, 204, 0.3); }

/* ==============================
   SECTIONS (Generic)
   ============================== */
.section {
    padding: 6rem 4%;
}

.section--dark {
    background: var(--bg-secondary);
}

.section__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section__title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==============================
   SERVICES
   ============================== */
.services__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: -6px 0 25px var(--accent-glow);
}

.service-card__icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 14px;
    flex-shrink: 0;
}

.service-card__icon i {
    font-size: 1.6rem;
    color: var(--accent);
}

.service-card__info {
    flex-grow: 1;
}

.service-card__info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.service-card__info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-card__arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.service-card:hover .service-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==============================
   PROJECTS
   ============================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.project-card__img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card__img img {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.btn-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    transform: scale(0.7) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.project-card:hover .btn-circle {
    transform: scale(1) translateY(0);
}

.project-card__body {
    padding: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.project-card__body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card__body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==============================
   SKILLS & TECH STACK
   ============================== */
.skills-category {
    margin-bottom: 2.5rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category__title {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: inline-block;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
    padding-bottom: 0.5rem;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.skill-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
}

.skill-card__icon.html { background: rgba(227, 79, 38, 0.12); color: #E34F26; }
.skill-card__icon.css  { background: rgba(21, 114, 182, 0.12); color: #1572B6; }
.skill-card__icon.js   { background: rgba(247, 223, 30, 0.12); color: #F7DF1E; }
.skill-card__icon.php  { background: rgba(119, 123, 180, 0.12); color: #777BB4; }
.skill-card__icon.flutter { background: rgba(0, 150, 214, 0.12); color: #0096D6; }
.skill-card__icon.kotlin { background: rgba(127, 82, 255, 0.12); color: #7F52FF; }
.skill-card__icon.java { background: rgba(244, 128, 36, 0.12); color: #F48024; }
.skill-card__icon.react { background: rgba(97, 218, 251, 0.12); color: #61DAFB; }
.skill-card__icon.node { background: rgba(51, 153, 51, 0.12); color: #339933; }
.skill-card__icon.mysql { background: rgba(68, 121, 161, 0.12); color: #4479A1; }
.skill-card__icon.firebase { background: rgba(255, 202, 40, 0.12); color: #FFCA28; }
.skill-card__icon.tailwind { background: rgba(56, 178, 172, 0.12); color: #38B2AC; }
.skill-card__icon.git { background: rgba(240, 80, 50, 0.12); color: #F05032; }
.skill-card__icon.vscode { background: rgba(0, 122, 204, 0.12); color: #007ACC; }
.skill-card__icon.android { background: rgba(61, 220, 132, 0.12); color: #3DDC84; }
.skill-card__icon.postman { background: rgba(255, 108, 55, 0.12); color: #FF6C37; }
.skill-card__icon.figma { background: rgba(242, 78, 30, 0.12); color: #F24E1E; }
.skill-card__icon.supabase { background: rgba(62, 207, 142, 0.12); color: #3ECF8E; }
.skill-card__icon.spreadsheet { background: rgba(15, 157, 88, 0.12); color: #0F9D58; }

.skill-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.skill-card__bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.skill-card__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   COMMUNITY
   ============================== */
.community__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.4s ease;
}

.community-card--wa::before { background: #25D366; }
.community-card--tele::before { background: #0088cc; }

.community-card:hover::before {
    height: 6px;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.community-card--wa:hover { border-color: #25D366; }
.community-card--tele:hover { border-color: #0088cc; }

.community-card > i {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.community-card--wa > i { color: #25D366; text-shadow: 0 0 20px rgba(37, 211, 102, 0.4); }
.community-card--tele > i { color: #0088cc; text-shadow: 0 0 20px rgba(0, 136, 204, 0.4); }

.community-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.community-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.community-card__join {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.community-card:hover .community-card__join {
    gap: 0.75rem;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 4%;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.footer__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}
.footer__logo span {
    color: var(--text-primary);
    font-weight: 400;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer__socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-3px);
}

.footer__address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    max-width: 600px;
    line-height: 1.5;
    text-align: center;
}

.footer__address i {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 1.1rem;
}

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

.footer__copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

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

/* Tablet */
@media screen and (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero__right {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        gap: 2rem;
    }

    .hero__stat--projects {
        position: relative;
        top: 0;
        right: 0;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        min-height: auto;
        padding: 8rem 5% 4rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        order: 2;
    }

    .hero__photo-wrapper {
        order: 1;
    }

    .hero__right {
        position: relative;
        order: 3;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    .hero__stat--projects {
        position: relative;
        top: 0;
        right: 0;
    }

    .hero__name {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero__role {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
    }

    .hero__stat {
        align-items: center;
        text-align: center;
        min-width: unset;
        flex: 1;
    }

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

    .hero__description {
        max-width: 100%;
    }

    .hero__platforms {
        justify-content: center;
    }

    .hero__photo {
        width: 60vw;
        max-width: 250px;
        height: auto;
        aspect-ratio: 250 / 320;
    }

    .skill-card {
        padding: 0.75rem 0.5rem;
        display: grid;
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.75rem;
        row-gap: 0.2rem;
        align-items: center;
        text-align: left;
    }

    .skill-card__icon {
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .skill-card h4 {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.9rem;
        margin-bottom: 0;
        align-self: end;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .skill-card p {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.7rem;
        margin-bottom: 0;
        align-self: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .skill-card__bar {
        display: none; /* Hide progress bar on mobile to save space */
    }

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

    .section__header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .deco-circle,
    .deco-curve {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero__stat-number {
        font-size: 2.2rem;
    }
}
