/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 (Backup) */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --accent-primary: #38bdf8;
    /* Sky 400 */
    --accent-secondary: #818cf8;
    /* Indigo 400 */
    --gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Glassmorphism Variables */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Prevent fixed header from covering anchor targets */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;

    /* Ambient Background Effect */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- 2. LAYOUT UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-code);
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* --- 3. HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* Glass Effect for Header */
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(56, 189, 248, 0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.nav-cta {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-switch:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    background: none;
    border: none;
}

/* --- 4. HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Optional: subtle grid pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Floating Blobs for Hero */
#hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
}

.typing-text {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.typing-text .typed {
    display: inline-block;
    color: var(--text-main);
}

.typing-text .typed::after {
    content: '|';
    animation: blink 1s infinite;
}

@media (max-width: 550px) {
    .typing-text .typed {
        display: block;
    }
}

.hero-sub {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* Button Effects */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    /* Modern rounded pill */
    font-weight: 600;
    margin: 0 10px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
}

/* --- 5. ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.about-img picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stat-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(56, 189, 248, 0.1);
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--accent-secondary);
}

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

/* --- 5b. EXPERIENCE TIMELINE --- */
.section-alt {
    background-color: rgba(255, 255, 255, 0.02);
}

.timeline {
    list-style: none;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 22px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.timeline-edu::before {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.6);
}

.timeline-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 24px;
    transition: var(--transition);
}

/* Desktop: meta on the left, bullets on the right to keep cards short */
@media (min-width: 900px) {
    .timeline-card {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 28px;
        align-items: start;
    }

    .timeline-card .timeline-company {
        margin-bottom: 0;
    }
}

.timeline-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.timeline-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 2px 0;
}

.timeline-company {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.timeline-card ul {
    list-style: none;
    color: var(--text-muted);
}

.timeline-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.timeline-card li:last-child {
    margin-bottom: 0;
}

.timeline-card li::before {
    content: '\25B9';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.timeline-edu li {
    padding-left: 0;
}

.timeline-edu li::before {
    content: none;
}

.timeline-edu .fa-award {
    color: #fbbf24;
    margin-right: 6px;
}

/* --- 5c. PROJECTS --- */
.project-list {
    display: grid;
    /* 2x2 on desktop for 4 items, single column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-metric {
    align-self: flex-start;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    padding: 4px 12px;
}

.project-card h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card h3 i {
    color: var(--accent-secondary);
}

.project-card p {
    color: var(--text-muted);
    flex: 1;
}

/* --- 6. SKILLS SECTION --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    /* Glass Effect */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    overflow: hidden;
}

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



.skill-card h3 {
    font-family: var(--font-code);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-card:hover .tag {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--text-main);
}

/* --- 7. SERVICES / EXPERIENCE --- */
.service-list {
    display: grid;
    /* 2x2 on desktop for 4 items, single column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 30px;
}

.service-item {
    /* Glass Effect */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

.icon-primary {
    color: var(--accent-primary);
}

.icon-secondary {
    color: var(--accent-secondary);
}

.icon-pink {
    color: #f472b6;
}

/* --- Cursor Glow (skill-card, service-item, project-card, contact-box, support-box) --- */
.skill-card,
.service-item,
.project-card,
.contact-box,
.support-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    aspect-ratio: 5 / 4;
    border-radius: 50%;
    background: radial-gradient(closest-side,
            rgba(var(--glow-rgb, 56, 189, 248), 0.4),
            rgba(var(--glow-rgb, 56, 189, 248), 0.15) 50%,
            rgba(var(--glow-rgb, 56, 189, 248), 0));
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

.card-glow.is-active {
    opacity: 1;
}

/* --- 8. CONTACT --- */
#contact {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-box {
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.12);
}

.contact-box h2 {
    font-family: var(--font-code);
    margin-bottom: 20px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-email {
    margin: 30px 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-box .contact-meta {
    font-size: 0.95rem;
}

/* Support / donate card */
.support-box {
    position: relative;
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.07), transparent 60%),
        var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

/* Yellow cursor glow to match the coffee theme */
.support-box {
    --glow-rgb: 251, 191, 36;
}

.support-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.support-box h2 {
    font-family: var(--font-code);
    font-size: 1.2rem;
}

.support-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.coffee-btn {
    margin-top: 4px;
    background: #FFDD00;
    color: #000;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    background: #ffea00;
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.35);
}

/* --- 9. FOOTER --- */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.95);
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 20px;
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* --- ANIMATIONS --- */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 30px;
        border-bottom: 1px solid var(--glass-border);
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        /* Reduced to fit small screens */
    }

    .section-title {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 35px;
    }

    /* minmax(0, 1fr) lets the column shrink below its content's min width */
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .about-img {
        height: 250px;
    }

    .stat-grid {
        gap: 10px;
    }

    .stat-item {
        min-width: 0;
        padding: 14px 6px;
    }

    .stat-item strong {
        font-size: 1.35rem;
    }

    .stat-item span {
        display: block;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .btn {
        display: block;
        margin: 15px auto;
        width: 80%;
    }

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

    .contact-box {
        padding: 35px 20px;
    }

    .support-box {
        padding: 35px 20px;
    }

    .timeline-card {
        padding: 20px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

.stroke-gradient {
    background: rgba(226, 232, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stroke-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 8%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0.6) 92%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    z-index: -1;
}

.stroke-gradient::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 32px;
    background: #078FFF;
    filter: blur(12px);
    z-index: -1;
}

/* --- 10. MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

.modal-title {
    margin-bottom: 10px;
    color: var(--accent-primary);
}

.modal-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bank-name {
    margin-bottom: 5px;
}

.copy-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: inherit;
    font: inherit;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

.copy-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

#bank-acc {
    font-family: var(--font-code);
    color: var(--accent-secondary);
}

.bank-owner {
    font-size: 0.9rem;
}

.close-modal {
    background: none;
    border: none;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.qr-container {
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qr-code {
    display: block;
    width: 200px;
    height: 200px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* --- SMALL PHONES (≤480px): tighter spacing & type --- */
@media (max-width: 480px) {
    /* Scales every rem-based size down a notch */
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 28px;
    }

    /* Hero */
    .typing-text {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-sub {
        margin-bottom: 28px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 11px 24px;
        margin: 10px auto;
    }

    /* About */
    .about-grid {
        gap: 24px;
    }

    .about-img {
        height: 220px;
    }

    .about-text p {
        margin-bottom: 14px;
    }

    .stat-grid {
        margin-top: 20px;
    }

    /* Shared card grids */
    .skills-wrapper,
    .project-list,
    .service-list,
    .contact-grid {
        gap: 16px;
    }

    .skill-card,
    .service-item,
    .project-card {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .skill-card h3 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .tech-tags {
        gap: 6px;
    }

    .tag {
        font-size: 0.78rem;
        padding: 4px 9px;
    }

    .project-card {
        gap: 10px;
    }

    .project-card h3,
    .service-item h3 {
        font-size: 1.1rem;
    }

    .service-item h3 {
        margin-bottom: 8px;
    }

    .project-card p,
    .service-item p {
        font-size: 0.93rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        margin-bottom: 12px;
    }

    .timeline-item::before {
        left: -24px;
        top: 20px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-card {
        padding: 16px;
        border-radius: 14px;
    }

    .timeline-card h3 {
        font-size: 1.05rem;
    }

    .timeline-company {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }

    .timeline-card li {
        font-size: 0.88rem;
        padding-left: 16px;
    }

    /* Contact & support */
    .contact-box,
    .support-box {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .contact-box h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .contact-box p {
        font-size: 0.95rem;
    }

    .contact-email {
        margin: 20px auto 14px;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 36px 0;
    }

    .social-links {
        margin-bottom: 18px;
    }

    .social-links a {
        font-size: 1.5rem;
        margin: 0 12px;
    }
}
