/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Share+Tech+Mono&display=swap');

/* CSS Variables */
:root {
    --bg-dark: #07070f;
    --bg-darker: #030308;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-pink: #ff006e;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.2);
    --glow-purple: 0 0 20px rgba(112, 0, 255, 0.5), 0 0 60px rgba(112, 0, 255, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom Cursor ── */
#cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.07) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s;
}

#cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: var(--glow-cyan);
    transition: transform 0.1s;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 240, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* ── Canvas Particles ── */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ── Background ── */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at 80% 20%, #14003a 0%, var(--bg-dark) 55%),
                radial-gradient(ellipse at 10% 80%, #001a30 0%, transparent 50%);
}

/* Floating orbs */
.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 12s ease-in-out infinite;
}
.bg-animation::before {
    width: 500px; height: 500px;
    background: rgba(112, 0, 255, 0.12);
    top: -100px; right: -100px;
}
.bg-animation::after {
    width: 400px; height: 400px;
    background: rgba(0, 240, 255, 0.08);
    bottom: -80px; left: -80px;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.97); }
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }

.highlight {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0.8rem auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

/* ── Glassmorphism ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.6s ease;
}

.glass-card:hover::before { left: 150%; }

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.12), var(--glass-shadow);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover::after { opacity: 1; }

.primary-btn {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}
.primary-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-3px) scale(1.03);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: inset 0 0 0 0 var(--accent-primary);
}
.secondary-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--glow-cyan);
}

/* ── Layout ── */
.section {
    padding: 6rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.5rem 10%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 7, 15, 0.88);
    backdrop-filter: blur(20px);
    padding: 1rem 10%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}
.logo:hover { text-shadow: var(--glow-cyan); }

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

.nav-links { list-style: none; display: flex; gap: 2rem; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    cursor: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.35s ease;
    box-shadow: var(--glow-cyan);
}

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

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

.hamburger { display: none; font-size: 1.5rem; cursor: none; color: var(--text-primary); }

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 5rem;
    flex-direction: row;
    min-height: 100vh;
    gap: 2rem;
    overflow: hidden;
}

.hero-content { flex: 1; max-width: 52%; }

.greeting {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    animation: fadeSlideDown 0.8s ease 0.2s both;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeSlideDown 0.8s ease 0.4s both;
    text-shadow: 0 0 40px rgba(0,240,255,0.15);
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.8s ease 0.6s both;
}

.typing-text {
    color: var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink { 0%, 100% { border-color: transparent; } 50% { border-color: var(--accent-primary); } }

.summary {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 90%;
    animation: fadeSlideDown 0.8s ease 0.8s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeSlideDown 0.8s ease 1s both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero image */
.hero-image-container {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100vh;
    margin-right: -3%;
    animation: fadeIn 1.2s ease 0.5s both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.image-wrapper {
    width: 100%; height: 100%;
    border-radius: 0;
    background: transparent;
    position: relative;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Push profile image lower on narrower screens */
@media (max-width: 1024px) {
    .hero-image-container {
        margin-top: 2.5rem;
        justify-content: center;
    }
}

/* Glowing rings around image area */
.image-wrapper::before,
.image-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    border-radius: 50%;
    pointer-events: none;
}
.image-wrapper::before {
    width: 420px; height: 420px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    top: 50%; transform: translateY(-50%);
    animation: ringPulse 4s ease-in-out infinite;
}
.image-wrapper::after {
    width: 340px; height: 340px;
    border: 1px solid rgba(112, 0, 255, 0.15);
    top: 50%; transform: translateY(-50%);
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateY(-50%) scale(1.04); }
}

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

.profile-img {
    width: auto;
    height: 90vh;
    max-height: 750px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    border: none;
    display: block;
    filter: drop-shadow(-15px 0 50px rgba(0, 240, 255, 0.18)) drop-shadow(15px 0 30px rgba(112, 0, 255, 0.1));
    transition: filter 0.4s ease;
}
.profile-img:hover {
    filter: drop-shadow(-15px 0 70px rgba(0, 240, 255, 0.35)) drop-shadow(15px 0 40px rgba(112, 0, 255, 0.2));
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateY(-50%) scale(1.04); }
}

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

/* ── About ── */
.about-content { display: flex; gap: 3rem; align-items: center; }
.about-text { flex: 2; }
.about-text p { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 1.1rem; }

.personal-info {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}
.personal-info ul { list-style: none; }
.personal-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}
.personal-info li:hover { color: var(--accent-primary); padding-left: 5px; }
.personal-info i { color: var(--accent-primary); font-size: 1.2rem; width: 24px; text-align: center; }

/* ── Timeline ── */
.timeline-container { display: flex; gap: 4rem; }
.timeline-column { flex: 1; }

.column-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.column-title i { color: var(--accent-primary); }

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 0;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height 1.5s ease;
    box-shadow: var(--glow-cyan);
}
.timeline.animated::before { height: 100%; }

.timeline-item { position: relative; margin-bottom: 2.5rem; padding: 1.5rem; }

.timeline-dot {
    position: absolute;
    left: -2.6rem; top: 1.5rem;
    width: 16px; height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary), 0 0 30px rgba(0,240,255,0.4);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-primary); }
    50% { box-shadow: 0 0 25px var(--accent-primary), 0 0 50px rgba(0,240,255,0.5); }
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.timeline-item h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.timeline-item h4 { color: var(--text-secondary); font-weight: 400; margin-bottom: 1rem; font-size: 1rem; }
.timeline-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    display: inline-block;
}
.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0,240,255,0.6));
}

.skill-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.skill-card .level { display: block; font-size: 0.8rem; color: var(--accent-secondary); margin-top: 0.3rem; }
.skill-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }

/* Skill progress bar */
.skill-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-top: 0.8rem;
}
.skill-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 10px rgba(0,240,255,0.5);
    transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Certifications ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.cert-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}
.cert-item:hover .cert-icon { animation: spin360 0.5s ease; }

@keyframes spin360 { to { transform: rotate(360deg); } }

.cert-icon { font-size: 2rem; color: var(--accent-secondary); transition: var(--transition); }
.cert-item h3 { font-size: 1.1rem; font-weight: 600; }

/* ── Detailed Cert Card ── */
.detailed-cert {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    border-color: rgba(0, 240, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.detailed-cert:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.15), var(--glass-shadow);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}
.cert-badge .cert-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}
.detailed-cert:hover .cert-badge .cert-icon {
    animation: spin360 0.5s ease;
}

.cert-issuer-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.detailed-cert h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cert-meta {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cert-meta i { color: var(--accent-primary); font-size: 0.85rem; }

.prof-dev { margin-top: 3rem; text-align: center; padding: 2rem; }
.prof-dev h3 { margin-bottom: 1rem; color: var(--accent-primary); }
.prof-dev p { color: var(--text-secondary); }

/* ── Contact ── */
.contact-container { display: flex; gap: 4rem; }
.contact-info { flex: 1; }
.contact-info h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.info-item:hover { transform: translateX(5px); }

.icon-box {
    width: 50px; height: 50px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    border: 1px solid rgba(0,240,255,0.2);
    transition: var(--transition);
    flex-shrink: 0;
}
.info-item:hover .icon-box {
    background: rgba(0, 240, 255, 0.18);
    box-shadow: var(--glow-cyan);
}

.info-item h4 { margin-bottom: 0.2rem; }
.info-item p { color: var(--text-secondary); }

.contact-form { flex: 1.5; }
.contact-form h3 { margin-bottom: 2rem; font-size: 1.5rem; }

.input-group { margin-bottom: 1.5rem; position: relative; }

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    cursor: none;
}
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0,240,255,0.1);
}

.submit-btn { width: 100%; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }

/* ── Footer ── */
footer {
    padding: 2rem 10%;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-content p { color: var(--text-secondary); }

.social-links { display: flex; gap: 1.5rem; }

.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}
.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .section { padding: 4rem 6%; min-height: auto; }
    .timeline-container, .contact-container { flex-direction: column; gap: 3rem; }
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 3rem; 
        padding: 5rem 6% 3rem 6%; 
        min-height: auto;
        justify-content: center;
    }
    .hero-content { max-width: 100%; width: 100%; order: 2; }
    .summary { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-image-container {
        width: 100%;
        height: auto;
        flex: none;
        margin: 1.5rem 0 0 0;
        justify-content: center;
        align-items: center;
        position: static;
        order: 1;
    }
    .image-wrapper {
        width: 260px;
        height: 320px;
        max-width: 90%;
        margin: 0 auto;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .image-wrapper::before {
        width: 320px; height: 320px;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }
    .image-wrapper::after {
        width: 260px; height: 260px;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }
    .profile-img {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 24px;
        object-fit: cover;
    }
    .cta-buttons { justify-content: center; }
    .about-content { flex-direction: column; gap: 2rem; }
    .about-text { width: 100%; }
    .personal-info { width: 100%; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .navbar.scrolled { padding: 0.8rem 5%; }
    .logo { font-size: 1.4rem; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: rgba(5, 5, 12, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
        gap: 2.5rem;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; z-index: 1001; }
    .name { font-size: 2.8rem; }
    .title { font-size: 1.6rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
        padding: 6rem 5% 4rem 5%;
        min-height: auto;
    }
    .hero-content { width: 100%; max-width: 100%; }
    .hero-image-container {
        width: 100%;
        height: auto;
        flex: none;
        margin: 1.5rem auto 0;
        justify-content: center;
        position: static;
    }
    .image-wrapper { width: 260px; height: 330px; margin: 0 auto; }
    .image-wrapper::before { width: 300px; height: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%); right: auto; }
    .image-wrapper::after { width: 240px; height: 240px; left: 50%; top: 50%; transform: translate(-50%, -50%); right: auto; }
    .summary { margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
    .about-content { flex-direction: column; gap: 2rem; }
    .about-text { width: 100%; }
    .personal-info { width: 100%; }
    body, .btn, .nav-links a, input, textarea { cursor: default; }
    #cursor-glow, #cursor-dot, #cursor-ring { display: none; }
    .footer-content { flex-direction: column; text-align: center; gap: 1.2rem; }
    .social-links { justify-content: center; }
    .timeline { padding-left: 1.5rem; }
    .timeline-dot { left: -2.1rem; }
    .cert-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 480px) {
    .section { padding: 3.5rem 4%; }
    .name { font-size: 2.2rem; }
    .title { font-size: 1.3rem; }
    .hero { padding-top: 5rem; }
    .hero-image-container {
        width: 100%;
        margin: 1.5rem auto 0;
        height: auto;
    }
    .image-wrapper { width: 220px; height: 280px; }
    .image-wrapper::before { width: 250px; height: 250px; }
    .image-wrapper::after { width: 200px; height: 200px; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 1rem; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 260px; text-align: center; }
    .personal-info { padding: 1.5rem 1rem; }
    .timeline-item { padding: 1.2rem 1rem; }
    .cert-item { flex-direction: column; align-items: flex-start; }
    .footer-content { gap: 1rem; }
}

/* ── Admin Panel ─────────────────────────────────────────────────────────── */
#admin-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#admin-panel.open {
    opacity: 1;
    pointer-events: all;
}

.admin-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.admin-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(145deg, #0d0d1f, #0a0a18);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#admin-panel.open .admin-modal {
    transform: scale(1);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0, 240, 255, 0.04);
    flex-shrink: 0;
}
.admin-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-title > i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.admin-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.admin-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.admin-close:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff5050;
}

/* Stats row */
.admin-stats {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.stat-card {
    flex: 1;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    text-align: center;
}
.stat-card span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scrollable table area */
.admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.3) transparent;
}
.admin-body::-webkit-scrollbar { width: 5px; }
.admin-body::-webkit-scrollbar-track { background: transparent; }
.admin-body::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.3); border-radius: 3px; }

.admin-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}
.admin-empty i {
    font-size: 3.5rem;
    color: rgba(0,240,255,0.2);
    margin-bottom: 1rem;
    display: block;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.admin-table thead tr {
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
}
.admin-table th {
    padding: 0.75rem 0.8rem;
    text-align: left;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
}
.admin-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}
.admin-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.04);
}
.admin-table td {
    padding: 0.85rem 0.8rem;
    color: var(--text-primary);
    vertical-align: top;
}
.row-num {
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 30px;
}
.admin-email {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.88rem;
}
.admin-email:hover { text-decoration: underline; }

.msg-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: help;
}
.date-cell {
    color: var(--text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.del-btn {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    color: #ff6b6b;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.del-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.5);
    transform: scale(1.1);
}

/* Footer buttons */
.admin-footer {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    justify-content: flex-end;
    flex-shrink: 0;
}
.admin-clear-btn,
.admin-export-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem;
    transition: var(--transition);
}
.admin-clear-btn {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.25);
    color: #ff6b6b;
}
.admin-clear-btn:hover {
    background: rgba(255, 80, 80, 0.22);
    transform: translateY(-1px);
}
.admin-export-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-primary);
}
.admin-export-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .admin-stats { flex-direction: column; }
    .admin-modal { border-radius: 16px; }
    .admin-header, .admin-body, .admin-footer { padding-left: 1rem; padding-right: 1rem; }
    .msg-cell { max-width: 100px; }
}