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

:root {
    --accent: #6c63ff;
    --accent2: #f7556b;
    --accent-light: #ede9ff;
    --bg: #f8f9fc;
    --white: #ffffff;
    --sidebar-w: 260px;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e8eaf0;
    --shadow: 0 4px 24px rgba(108, 99, 255, 0.07);
    --shadow-hover: 0 8px 32px rgba(108, 99, 255, 0.16);
    --font: 'Plus Jakarta Sans', sans-serif;
    --mono: 'Fira Code', monospace;
    --radius: 16px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar-open-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 200;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s;
}

.sidebar-open-btn:hover {
    background: var(--accent);
    color: white;
}

body.sidebar-collapsed .sidebar-open-btn {
    display: flex;
}

.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(108, 99, 255, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed main {
    margin-left: 0;
}

.sidebar-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-close-btn:hover {
    background: #ffecef;
    color: var(--accent2);
    border-color: var(--accent2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.sidebar-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.sidebar-role {
    font-size: 0.7rem;
    color: var(--accent);
    text-align: center;
    font-weight: 500;
    background: var(--accent-light);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.sidebar-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    width: 100%;
}

nav ul li {
    margin-bottom: 4px;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

nav ul li a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--accent-light);
    color: var(--accent);
}

nav ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.67rem;
    color: var(--text-light);
    text-align: center;
}

main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

section {
    min-height: 100vh;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.home-blob {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-blob2 {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 85, 107, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.home-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.home-left {
    flex: 1;
    min-width: 0;
}

.home-greeting {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-greeting::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.home-name {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.home-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-title .sep {
    color: var(--border);
}

.home-desc {
    font-size: 0.91rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.home-desc strong {
    color: var(--text);
    font-weight: 600;
}

.home-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.btn-filled {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.btn-filled:hover {
    background: #5851e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.btn-rocket {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-rocket:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.home-right {
    flex-shrink: 0;
    position: relative;
    min-width: 0;
}

.photo-frame {
    width: 300px;
    height: 340px;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    background: linear-gradient(145deg, var(--accent-light), #fce4ec);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphing 8s ease-in-out infinite;
    box-shadow: var(--shadow-hover);
    position: relative;
}

@keyframes morphing {
    0%, 100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
    25%       { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
    50%       { border-radius: 50% 50% 60% 40% / 60% 40% 50% 50%; }
    75%       { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
}

.photo-inner {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.float-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.float-badge i {
    color: var(--accent);
    font-size: 0.95rem;
}

.badge-1 { bottom: 30px; left: -35px; }
.badge-2 {top: 30px; right: -25px; }

.sec-header {
    margin-bottom: 3rem;
}

.sec-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-tag::before {
    content: '//';
    opacity: 0.5;
}

.sec-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
}

.sec-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    line-height: 1.7;
}

/*   ABOUT SECTION */

#about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.about-text p strong {
    color: var(--text);
    font-weight: 600;
}

.edu-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.edu-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(var(--accent), var(--accent2));
}

.edu-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.edu-degree {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-school {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.edu-year {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 6px;
    font-family: var(--mono);
}

.about-interests {
    margin-top: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.interests-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--text);
}

.interests-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.chip:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.chip i {
    font-size: 0.85rem;
    color: var(--accent);
}

/*skill*/
#skills {
    background: var(--white);
}

.skills-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.2rem;
    width: 100%;
    max-width: 800px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 1.5rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s;
    cursor: default;
}

.skill-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.skill-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    
}

.skill-item:hover .skill-name { color: var(--accent); }

.ic-html    { background: #fff4ee; color: #e34f26; }
.ic-css     { background: #eef4ff; color: #264de4; }
.ic-js      { background: #fffbe6; color: #b8860b; }
.ic-react   { background: #e6f9ff; color: #087ea4; }
.ic-java    { background: #fff1ee; color: #ea2d2e; }
.ic-spring  { background: #edfaee; color: #6db33f; }
.ic-node    { background: #edfaee; color: #3c873a; }
.ic-python  { background: #eef4ff; color: #3572a5; }
.ic-php     { background: #f0eeff; color: #777bb4; }
.ic-mysql   { background: #fff4ee; color: #00758f; }
.ic-git     { background: #fff4ee; color: #f05032; }
.ic-gh      { background: #f0f0f0; color: #24292e; }
.ic-apis    { background: #fffbe6; color: #b8860b; }
.ic-postman { background: #fff4ee; color: #ef5b25; }

#projects {
    background: var(--bg);
}

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

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.project-desc {
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 20px;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 7px 16px;
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    transition: all 0.2s;
}

.proj-link:hover {
    background: var(--accent);
    color: white;
}

.proj-link i { font-size: 0.8rem; }

/* ══════════════════════════════════════════
    CONTACT — COLUMN LAYOUT
    Form on top, Social cards below
══════════════════════════════════════════ */

#contact {
    background: var(--accent-light);
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single column wrapper */
.contact-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 860px;
    width: 100%;
}

/* Form card — two-column inner grid for fields */
.contact-form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Inner 2-column grid for Name + Email side by side */
.contact-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Full-width fields (textarea + button) */
.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
 
.form-group textarea {
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.25);
}
 
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}
 
/* Social / Connect section */
.contact-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
 
.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
 
.contact-info > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
 
/* Social cards — 2-column grid */
.social-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}
 
.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s;
    word-break: break-all;

}
 
.social-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
    border-color: var(--accent);
    color: var(--accent);
}
 
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
 
.si-email     { background: #fff1ee; color: #ea4335; }
.si-github    { background: #f0f0f0; color: #24292e; }
.si-linkedin  { background: #e8f4ff; color: #0077b5; }
.si-instagram { background: #fce4ff; color: #c13584; }
 
.social-card small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-light);
    font-weight: 400;
}
 
.thank-you {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(247, 85, 107, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
 
.thank-you span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}
 
.thank-you p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
 
/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* RESPONSIVE */

@media (max-width: 1200px) {
    section {
        padding: 5rem 3rem;
    }
 
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    .about-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 960px) {

    /* On mobile, sidebar starts hidden */
    .sidebar {
        transform: translateX(-100%);
    }

    /* When opened on mobile via button */
    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-open-btn {
        display: flex !important;
    }

    /* Hide open button when sidebar is open */
    .sidebar.mobile-open ~ * .sidebar-open-btn,
    body:has(.sidebar.mobile-open) .sidebar-open-btn {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
    }
 
    section {
        padding: 5rem 1.5rem 4rem;
        min-height: auto;
    }
 
    .home-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
        padding-top: 1rem;
    }
 
    .home-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .home-greeting::before { display: none; }

    .home-desc {
        max-width: 100%;
    }

    .home-btns {
        justify-content: center;
    }

    .photo-frame {
        width: 220px;
        height: 250px;
    }
 
    .photo-inner {
        width: 170px;
        height: 170px;
        font-size: 3.5rem;
    }
 
    .badge-1, .badge-2 { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
 
    /* Contact already column, just make social cards single-col */
    .social-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-inner {
        grid-template-columns: 1fr;
    }

    .sec-header {
        margin-bottom: 2rem;
    }
}

/* ── Small Mobile: up to 480px ── */
@media (max-width: 480px) {
 
    section {
        padding: 4.5rem 1rem 3rem;
    }
 
    .home-name {
        font-size: 2rem;
    }
 
    .home-title {
        font-size: 0.88rem;
        justify-content: center;
    }
 
    .home-desc {
        font-size: 0.85rem;
    }
 
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
 
    .photo-frame {
        width: 180px;
        height: 200px;
    }
 
    .photo-inner {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }
 
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
 
    .skill-item {
        padding: 1rem 0.5rem;
    }
 
    .skill-icon {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
 
    .project-card {
        padding: 1.5rem;
    }
 
    .contact-form-card,
    .contact-info {
        padding: 1.5rem;
    }
 
    .social-card {
        font-size: 0.82rem;
        padding: 12px 14px;
        gap: 10px;
    }
 
    /* Sec title smaller */
    .sec-title {
        font-size: 1.6rem;
    }
 
    .edu-card {
        padding: 1.2rem;
    }
 
    .about-interests {
        padding: 1.2rem;
    }
}
 
/* ── Very Small Mobile: up to 360px ── */
@media (max-width: 360px) {
 
    section {
        padding: 4rem 0.8rem 2.5rem;
    }
 
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    .home-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
 
    .btn {
        width: 100%;
        justify-content: center;
    }
 
    .social-card {
        word-break: break-word;
    }
}
 