/* ============ Performance-optimized stylesheet ============
   - Dead code removed
   - Expensive infinite animations (text-shadow pulsing) replaced with static glow
   - All transitions shortened + scoped to specific properties (no `transition: all`)
   - prefers-reduced-motion support
   ========================================================= */

:root {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #020617;
    --surface-light: #1f2937;
    --surface-dark: #111827;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-orange: #ff6b3d;
    --accent-red: #ff4d4d;
    --accent-yellow: #ff7a18;
    --accent-glow: rgba(255, 107, 61, 0.4);
    --accent-glow-strong: rgba(255, 107, 61, 0.7);
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    z-index: -1;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-gradient-end);
}

body {
    background-color: var(--bg-gradient-end);
    background-image: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100dvh;
}

::-webkit-scrollbar {
    width: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Cursor Glow */
.cursor-glow {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 107, 61, .08) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    will-change: transform;
}

/* Scroll-To-Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    box-shadow: 0 4px 20px var(--accent-glow);
    opacity: 0;
    transform: translateY(20px) scale(.8);
    transition: opacity .25s ease, transform .25s cubic-bezier(.23, 1, .32, 1), box-shadow .25s ease;
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    box-shadow: 0 8px 30px var(--accent-glow-strong);
    transform: translateY(-3px) scale(1.08);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(2, 6, 23, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: padding .25s ease, box-shadow .25s ease;
}

.navbar.scrolled {
    padding: .8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-shadow: 0 0 14px var(--accent-glow);
    letter-spacing: -.3px;
    transition: text-shadow .25s ease;
}

.logo:hover {
    text-shadow: 0 0 25px var(--accent-glow-strong);
}

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

.nav-links a {
    font-weight: 500;
    font-size: .9rem;
    padding: .45rem .9rem;
    border-radius: 8px;
    color: var(--text-secondary);
    position: relative;
    transition: color .22s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width .25s ease;
}

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

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links a.active::after {
    width: 70%;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-icon .bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), opacity .3s ease;
}

/* Buttons */
.btn {
    padding: .85rem 2.2rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.23, 1, .32, 1), box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, .15);
    transform: translateX(0) skewX(-20deg);
    transition: transform .35s ease;
}

.btn:hover .btn-shine {
    transform: translateX(400%) skewX(-20deg);
}

.btn-filled {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, .1) inset;
}

.btn-filled:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    box-shadow: 0 8px 30px var(--accent-glow-strong), 0 0 0 2px rgba(255, 107, 61, .3);
    transform: translateY(-3px) scale(1.03);
}

.btn-filled:active {
    transform: translateY(-1px) scale(1.01);
}

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

.btn-outline:hover {
    background: rgba(255, 107, 61, .1);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px var(--accent-glow), 0 0 0 4px rgba(255, 107, 61, .15);
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-orange);
    opacity: 0;
    animation: float-particle 8s infinite ease-in-out;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 20%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; left: 80%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 80%; left: 70%; animation-delay: 4.5s; animation-duration: 8s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 15%; left: 60%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(6) { width: 7px; height: 7px; top: 70%; left: 40%; animation-delay: .5s; animation-duration: 7.5s; }

@keyframes float-particle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(.5); }
    20%, 80% { opacity: .6; }
    50% { opacity: 1; transform: translateY(-80px) scale(1); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal .55s cubic-bezier(.23, 1, .32, 1) forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.08s; }
.hero-reveal:nth-child(2) { animation-delay: 0.16s; }
.hero-reveal:nth-child(3) { animation-delay: 0.24s; }
.hero-reveal:nth-child(4) { animation-delay: 0.32s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

.greeting {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: .3rem;
}

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

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Static glow instead of animated text-shadow (much cheaper to paint) */
.neon-name {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(255, 107, 61, .8), 0 0 24px rgba(255, 107, 61, .4);
}

.typewriter-cursor {
    color: var(--accent-orange);
    font-weight: 300;
    animation: cursorBlink .8s step-end infinite;
    text-shadow: 0 0 10px var(--accent-orange);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.profession {
    font-family: var(--font-body);
    font-size: 1.55rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    min-height: 2.4rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Hero Image Container & Profile Wrapper */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 440px;
}

.profile-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 61, .15);
    pointer-events: none;
    animation: orbitSpin 14s linear infinite;
    will-change: transform;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--accent-orange);
    border-radius: 50%;
    top: -4.5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-orange), 0 0 22px var(--accent-glow);
}

.orbit-ring--1 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    animation-duration: 14s;
}

.orbit-ring--2 {
    width: 460px;
    height: 460px;
    margin: -230px 0 0 -230px;
    animation-duration: 22s;
    animation-direction: reverse;
    border-style: dashed;
}

.orbit-ring--2::before {
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow);
}

.orbit-ring--3 {
    width: 545px;
    height: 545px;
    margin: -272.5px 0 0 -272.5px;
    animation-duration: 32s;
    border-color: rgba(255, 107, 61, .07);
}

.orbit-ring--3::before {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

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

.profile-glow {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(255, 107, 61, .15);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 107, 61, .25);
    position: relative;
    z-index: 2;
    animation: profileFloat 4s ease-in-out infinite alternate;
    transition: box-shadow .3s ease;
    will-change: transform;
}

.profile-glow:hover {
    box-shadow: 0 0 80px var(--accent-glow-strong), 0 0 160px rgba(255, 107, 61, .2);
}

@keyframes profileFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

.profile-placeholder {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.profile-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-shadow: 0 0 20px var(--accent-glow);
}

.profile-initials img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
    -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 45%, transparent 70%);
}

/* Marquee Strips */
.marquee-strip {
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    width: 320px;
    opacity: .18;
}

.marquee-strip--top {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
}

.marquee-strip--bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    opacity: .1;
}

.marquee-track {
    display: inline-block;
    animation: marqueeScroll 22s linear infinite;
    will-change: transform;
}

.marquee-track--reverse {
    animation-direction: reverse;
    animation-duration: 28s;
}

.marquee-track span {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 1.8rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    animation: fadeInUp .6s 2.2s ease forwards;
    z-index: 1;
}

.scroll-indicator span {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
    box-shadow: 0 0 6px var(--accent-orange);
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes fadeInUp {
    to { opacity: 1; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-orange);
    background: rgba(255, 107, 61, .08);
    border: 1px solid rgba(255, 107, 61, .2);
    padding: .4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: .9rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
}

/* Static glow instead of animated pulse */
.neon-text {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(255, 107, 61, .8), 0 0 22px rgba(255, 107, 61, .35);
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.stat-card {
    background: var(--surface-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .05);
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 61, .04), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px var(--accent-glow), 0 0 0 1px rgba(255, 107, 61, .2);
    border-color: rgba(255, 107, 61, .4);
}

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

.stat-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: opacity .3s ease;
}

.stat-card:hover .stat-glow {
    opacity: .3;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: .8rem;
    display: block;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-orange);
    text-shadow: 0 0 20px var(--accent-glow);
    display: inline-block;
    line-height: 1;
    margin-bottom: .3rem;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    vertical-align: top;
    margin-top: .3rem;
    display: inline-block;
}

.stat-card p {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .8rem;
    margin-top: .5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--surface-dark);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .05);
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition-delay: var(--delay, 0s);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 61, .04), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--accent-glow), 0 0 0 1px rgba(255, 107, 61, .2);
    border-color: rgba(255, 107, 61, .4);
}

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

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform .25s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.skill-pill {
    background: var(--surface-light);
    color: var(--text-primary);
    padding: .9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: .5px;
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease, color .3s ease;
    transition-delay: var(--delay, 0s);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 50px;
}

.skill-pill:hover {
    transform: translateY(-8px) scale(1.09);
    border-color: var(--accent-orange);
    box-shadow: 0 14px 32px var(--accent-glow), 0 0 0 3px rgba(255, 107, 61, .1);
    color: #fff;
}

.skill-pill:hover::before {
    opacity: .12;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-dark);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 107, 61, .3), 0 0 40px rgba(255, 107, 61, .1);
    border-color: rgba(255, 107, 61, .35);
}

.card-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: var(--accent-orange);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.project-card:hover .card-glow {
    opacity: .25;
}

.project-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #1a2332, #0f172a);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .35s ease, opacity .3s ease;
    opacity: 0;
    animation: imgFadeIn .4s ease .2s forwards;
}

@keyframes imgFadeIn {
    to { opacity: 1; }
}

.project-card:hover .project-image-placeholder img {
    transform: scale(1.06);
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 61, .05) 0%, transparent 60%);
}

.project-image-placeholder::after {
    content: '</>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 107, 61, .15);
    letter-spacing: -2px;
    transition: color .3s ease, transform .3s ease;
}

.project-card:hover .project-image-placeholder::after {
    color: rgba(255, 107, 61, .4);
    transform: translate(-50%, -50%) scale(1.25);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
}

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

.project-view-btn {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--accent-orange);
    padding: .7rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 25px var(--accent-glow);
    background: rgba(255, 107, 61, .08);
    transform: translateY(15px);
    transition: transform .3s ease;
}

.project-card:hover .project-view-btn {
    transform: translateY(0);
}

.project-info {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: .8rem;
    color: var(--text-primary);
    transition: color .25s ease;
}

.project-card:hover .project-info h3 {
    color: var(--accent-orange);
}

.project-info p {
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: .95rem;
    line-height: 1.7;
}

.view-link {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .25s ease, gap .25s ease;
    align-self: flex-start;
    position: relative;
}

.view-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-orange);
    transition: width .25s ease;
}

.project-card:hover .view-link::after {
    width: 100%;
}

.project-card:hover .view-link {
    color: var(--accent-yellow);
    gap: .7rem;
}

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

.cert-card {
    background: var(--surface-dark);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 107, 61, .3);
    border-color: rgba(255, 107, 61, .35);
}

.cert-card:hover .card-glow {
    opacity: .25;
}

.cert-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332, #0f172a);
}

.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .35s ease;
}

.cert-card:hover .cert-img-wrap img {
    transform: scale(1.04);
}

.cert-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.cert-card:hover .cert-shine {
    transform: translateX(100%);
}

.cert-body {
    padding: 1.5rem 1.6rem 1.8rem;
}

.cert-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    background: rgba(255, 107, 61, .08);
    border: 1px solid rgba(255, 107, 61, .2);
    padding: .25rem .8rem;
    border-radius: 50px;
    margin-bottom: .9rem;
}

.cert-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .7rem;
    transition: color .25s ease;
    line-height: 1.35;
}

.cert-card:hover .cert-title {
    color: var(--accent-orange);
}

.cert-org,
.cert-date {
    font-size: .875rem;
    color: var(--text-secondary);
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-group {
    position: relative;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow));
    border-radius: 1px;
    transition: width .3s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

.form-group:focus-within .form-line {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(17, 24, 39, .8);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 107, 61, .4);
    box-shadow: 0 0 20px rgba(255, 107, 61, .12);
    background: #111827;
}

.contact-form button {
    align-self: flex-start;
    margin-top: .5rem;
}

.form-status {
    font-size: .95rem;
    padding: .75rem 1.2rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, .1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .3);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, .1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .3);
}

.social-panels {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-panel {
    background: var(--surface-dark);
    padding: 1.4rem 1.8rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}

.social-panel:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 35px var(--accent-glow), 0 0 0 1px rgba(255, 107, 61, .25);
    border-color: rgba(255, 107, 61, .3);
}

.social-panel:hover .card-glow {
    opacity: .2;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 107, 61, .1);
    border: 1px solid rgba(255, 107, 61, .2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .8rem;
    color: var(--accent-orange);
    flex-shrink: 0;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.social-panel:hover .social-icon {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.social-info {
    flex: 1;
}

.social-info h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: .15rem;
    transition: color .25s ease;
}

.social-panel:hover .social-info h4 {
    color: var(--accent-orange);
}

.social-info p {
    color: var(--text-secondary);
    font-size: .85rem;
}

.social-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color .22s ease, transform .22s ease;
}

.social-panel:hover .social-arrow {
    color: var(--accent-orange);
    transform: translateX(5px);
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: var(--surface-dark);
    margin-top: 5rem;
}

.footer-text {
    color: var(--text-secondary);
}

/* Scroll Animations */
.hidden-element {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity .5s cubic-bezier(.23, 1, .32, 1), transform .5s cubic-bezier(.23, 1, .32, 1);
}

body[data-scroll="up"] .hidden-element {
    transform: translateY(-55px);
}

.skill-pill.hidden-element {
    transform: scale(.8) translateY(22px);
}

body[data-scroll="up"] .skill-pill.hidden-element {
    transform: scale(.8) translateY(-22px);
}

.stat-card.hidden-element {
    transform: scale(.9) translateY(30px);
}

body[data-scroll="up"] .stat-card.hidden-element {
    transform: scale(.9) translateY(-30px);
}

.show-element {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text h1 {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        min-height: 380px;
    }

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

    .orbit-ring--1 {
        width: 340px;
        height: 340px;
        margin: -170px 0 0 -170px;
    }

    .orbit-ring--2 {
        width: 415px;
        height: 415px;
        margin: -207.5px 0 0 -207.5px;
    }

    .orbit-ring--3 {
        width: 490px;
        height: 490px;
        margin: -245px 0 0 -245px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 65px;
        flex-direction: column;
        align-items: center;
        gap: .8rem;
        padding-top: 2.5rem;
        background: rgba(2, 6, 23, .97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 100%;
        height: calc(100dvh - 65px);
        transition: right .35s cubic-bezier(.23, 1, .32, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .greeting {
        font-size: 2.8rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .profession {
        font-size: 1.2rem;
    }

    .profile-wrapper {
        width: 260px;
        height: 260px;
    }

    .orbit-ring--1 {
        width: 300px;
        height: 300px;
        margin: -150px 0 0 -150px;
    }

    .orbit-ring--2 {
        width: 360px;
        height: 360px;
        margin: -180px 0 0 -180px;
    }

    .orbit-ring--3 {
        width: 420px;
        height: 420px;
        margin: -210px 0 0 -210px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

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

/* Hide cursor glow on touch devices */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
