* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* Color + type tokens */
:root {
    --background: #0a0e1a;
    --card: #131a2c;
    --card-soft: rgba(19, 26, 44, 0.82);
    --foreground: #f8fafc;
    --muted: #92a1b6;
    --cyan: #00C2FF;
    --orange: #FB4B28;
    --violet: #7c5cfc;
    --border: rgba(146, 161, 182, 0.18);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
}

/* Cursor glow — soft light that trails the pointer for a bit of atmosphere */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    margin-top: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.10) 0%, rgba(124, 92, 252, 0.05) 45%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    transform: translate(var(--gx, 50vw), var(--gy, 50vh));
    transition: transform 0.12s ease-out, opacity 0.4s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

@media (max-width: 768px), (hover: none) {
    .cursor-glow { display: none; }
}

/* Header / nav */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    pointer-events: none;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(19, 26, 44, 0.72);
    backdrop-filter: blur(14px);
    padding: 0.7rem 0.7rem 0.7rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: fit-content;
    margin: 0 auto;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.brand span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger — removed everywhere; nav links are always shown inline */
.hamburger {
    display: none;
}

/* Dimmed backdrop behind the (now-removed) mobile menu — kept hidden */
.nav-backdrop {
    display: none;
}

/* Section base */
.section {
    min-height: 100vh;
    width: 100vw;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1400px;
}

#home.section,
#about,
#skills,
#projects.section {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(0, 194, 255, 0.08), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(251, 75, 40, 0.07), transparent 45%),
        var(--background);
    background-attachment: fixed;
    position: relative;
    color: #e2e8f0;
}

/* ===== Floating 3D shapes ===== */
.shape-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape-drift {
    position: absolute;
    animation-name: drift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-26px); }
}

.cube, .pyramid, .diamond {
    position: relative;
    transform-style: preserve-3d;
    animation-name: spin3d;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes spin3d {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

.cube {
    width: 46px;
    height: 46px;
}

.cube--small { width: 28px; height: 28px; }

.cube-face {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 194, 255, 0.45);
    background: rgba(0, 194, 255, 0.06);
}

.cube--small .cube-face { width: 28px; height: 28px; }
.cube--orange .cube-face { border-color: rgba(251, 75, 40, 0.5); background: rgba(251, 75, 40, 0.07); }

.cube-face.front  { transform: translateZ(23px); }
.cube-face.back   { transform: translateZ(-23px) rotateY(180deg); }
.cube-face.right  { transform: rotateY(90deg) translateZ(23px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(23px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(23px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(23px); }

.cube--small .cube-face.front  { transform: translateZ(14px); }
.cube--small .cube-face.back   { transform: translateZ(-14px) rotateY(180deg); }
.cube--small .cube-face.right  { transform: rotateY(90deg) translateZ(14px); }
.cube--small .cube-face.left   { transform: rotateY(-90deg) translateZ(14px); }
.cube--small .cube-face.top    { transform: rotateX(90deg) translateZ(14px); }
.cube--small .cube-face.bottom { transform: rotateX(-90deg) translateZ(14px); }

.pyramid {
    width: 44px;
    height: 44px;
}

.pyramid-face {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 40px solid rgba(251, 75, 40, 0.12);
    transform-origin: bottom center;
}

.pyramid-face.f1 { transform: rotateY(0deg) rotateX(12deg); border-bottom-color: rgba(251, 75, 40, 0.16); }
.pyramid-face.f2 { transform: rotateY(90deg) rotateX(12deg); border-bottom-color: rgba(251, 75, 40, 0.1); }
.pyramid-face.f3 { transform: rotateY(180deg) rotateX(12deg); border-bottom-color: rgba(251, 75, 40, 0.16); }
.pyramid-face.f4 { transform: rotateY(270deg) rotateX(12deg); border-bottom-color: rgba(251, 75, 40, 0.1); }

.diamond {
    width: 34px;
    height: 34px;
}

.diamond--small { width: 22px; height: 22px; }

.diamond-face {
    position: absolute;
    width: 34px;
    height: 34px;
    background: rgba(124, 92, 252, 0.14);
    border: 1px solid rgba(124, 92, 252, 0.4);
}

.diamond--small .diamond-face { width: 22px; height: 22px; }

.diamond-face.d1 { transform: rotateY(0deg) translateZ(17px); }
.diamond-face.d2 { transform: rotateY(90deg) translateZ(17px); }
.diamond-face.d3 { transform: rotateY(180deg) translateZ(17px); }
.diamond-face.d4 { transform: rotateY(270deg) translateZ(17px); }

.diamond--small .diamond-face.d1 { transform: rotateY(0deg) translateZ(11px); }
.diamond--small .diamond-face.d2 { transform: rotateY(90deg) translateZ(11px); }
.diamond--small .diamond-face.d3 { transform: rotateY(180deg) translateZ(11px); }
.diamond--small .diamond-face.d4 { transform: rotateY(270deg) translateZ(11px); }

/* ===== Tilt utility — JS sets --rx / --ry / --tz per element ===== */
.tilt-el {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) scale(var(--ts, 1));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    will-change: transform;
}

/* Main content */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.text-content {
    flex: 1;
    max-width: 450px;
}

.text-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--cyan);
    letter-spacing: -0.01em;
}

.text-content .name {
    color: var(--orange);
}

.text-content .subtitle {
    font-size: 1.3rem;
    color: #F5F5F5;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.cursor-blink {
    color: var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.text-content .description {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 400px;
    border-left: 2px solid var(--orange);
    padding-left: 1rem;
}

.contact-info {
    margin-top: 1.5rem;
    text-align: left;
}

.email-text {
    color: #e2e8f0;
    font-size: 1rem;
}

.email-link {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #F5F5F5;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 194, 255, 0.1);
    border: 2px solid rgba(0, 194, 255, 0.3);
    border-radius: 50%;
    color: var(--cyan);
    text-decoration: none;
    font-size: 1.4rem;
}

.social-link:hover {
    background: var(--cyan);
    color: #0a0e1a;
    box-shadow: 0 12px 24px rgba(0, 194, 255, 0.35);
}

/* Profile image */
.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 50%;
    animation: float 4s ease-in-out infinite, glow 4s ease-in-out infinite;
}

.profile-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 194, 255, 0.4);
    animation: ringSpin 18s linear infinite;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-image-wrapper {
    position: absolute;
    inset: 16px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(203, 213, 225, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(0, 194, 255, 0.5);
    border-radius: 14px;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-cue span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    animation: scrollCue 1.6s ease infinite;
}

@keyframes scrollCue {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* About section */
.about-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-card,
.quick-facts-card,
.interests-card {
    background: var(--card-soft);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
    position: relative;
}

.story-card:hover,
.quick-facts-card:hover,
.interests-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 194, 255, 0.15);
    background: rgba(19, 26, 44, 0.92);
}

.story-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-align: left;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-facts-card {
    padding: 2rem;
}
.interests-card {
    padding: 2rem;
}

.quick-facts-card h3,
.interests-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-align: left;
}

.fact-item,
.interest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #cbd5e1;
    transition: all 0.25s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.fact-item:hover,
.interest-item:hover {
    background-color: rgba(0, 194, 255, 0.1);
    transform: translateX(6px);
    color: #f1f5f9;
}

.fact-item:last-child,
.interest-item:last-child {
    margin-bottom: 0;
}

.fact-icon,
.interest-icon {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.fact-item:hover .fact-icon,
.interest-item:hover .interest-icon {
    transform: scale(1.25) rotate(6deg);
}

/* Skills section */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.skill-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.9rem 1.9rem;
    background: rgba(19, 26, 44, 0.9);
    border: 2px solid rgba(71, 85, 105, 0.4);
    border-radius: 60px;
    color: #cbd5e1;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--cyan), #0099CC);
    color: #ffffff;
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 194, 255, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skill-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card:hover {
    box-shadow: 0 30px 60px rgba(0, 194, 255, 0.25);
    background: rgba(0, 194, 255, 1);
    border-color: rgba(0, 194, 255, 0.6);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #0D111D !important;
    color: var(--cyan);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 3rem;
    box-shadow: 0 8px 25px rgba(13, 17, 29, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 15px 40px rgba(0, 194, 255, 0.4);
    color: var(--orange);
    background: linear-gradient(135deg, #0D111D, #1a1f2e) !important;
    animation: none;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: var(--font-display);
}

.skill-category {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.skill-card:hover .skill-name {
    color: #0D121F;
}

.skill-card.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .text-content h1 { font-size: 2.4rem; }
    .profile-container { width: 250px; height: 250px; }

    header { justify-content: stretch; padding: 1rem 1.25rem; }

    .nav-bar {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.25rem;
        border-radius: 20px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0.25rem;
    }

    .about-content { grid-template-columns: 1fr; gap: 2rem; }

    .story-card, .quick-facts-card, .interests-card { padding: 1.5rem; }
    .story-card h2, .quick-facts-card h3, .interests-card h3 { font-size: 1.6rem; }

    .section-title { font-size: 2.1rem; }

    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; padding: 0 1rem; }
    .skill-card { padding: 1.75rem 1.25rem; min-height: 150px; }
    .skill-icon { width: 56px; height: 56px; font-size: 2.2rem; margin-bottom: 1rem; }
    .skill-name { font-size: 1.05rem; }
    .filter-btn { padding: 0.7rem 1.3rem; font-size: 0.85rem; }

    .shape-drift { transform: scale(0.6); }
    .tilt-el { transform: none !important; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Base animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.3); }
    50% { box-shadow: 0 0 45px rgba(0, 194, 255, 0.55), 0 0 70px rgba(124, 92, 252, 0.25); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.8s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out forwards; }

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

.animate-on-load { opacity: 0; }
.loaded .animate-on-load { opacity: 1; }

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    height: auto;
}

.project-card:hover {
    border-color: rgba(0, 194, 255, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: var(--font-display);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: justify;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--cyan);
    color: #06121c;
    border: 2px solid var(--cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    width: fit-content;
    min-width: 140px;
    position: relative;
    z-index: 10;
}

.project-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(251, 75, 40, 0.4);
}

.project-btn:hover svg,
.project-btn:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-card { margin: 0 1rem; }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #08090d 0%, #12131a 100%);
    border-top: 1px solid #262a35;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.footer-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--cyan);
    color: #fff;
    transform: translateY(-3px) rotate(-6deg);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--cyan);
    width: 16px;
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid #262a35;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright,
.footer-tagline {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-description { max-width: none; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .footer { padding: 3rem 0 1.5rem; }
}

@media (max-width: 480px) {
    .footer-container { padding: 0 1rem; }
    .footer-social { justify-content: center; }
}

/* ===== Disable sticky hover effects on touch / small-width devices =====
   Touch devices apply :hover on tap and it can stay "stuck" until the user
   taps elsewhere, which looks broken. This resets every hover-triggered
   visual change back to its resting state whenever there's no real hover
   capability (touch) or the viewport is small (phones/tablets in general). */
@media (hover: none), (max-width: 768px) {
    .nav-links a:hover {
        color: #f1f5f9;
        transform: none;
    }
    .nav-links a:hover::after {
        width: 0;
    }

    .email-link:hover {
        color: var(--cyan);
    }

    .social-link:hover {
        background: rgba(0, 194, 255, 0.1);
        color: var(--cyan);
        box-shadow: none;
    }

    .fact-item:hover,
    .interest-item:hover {
        background-color: transparent;
        transform: none;
        color: #cbd5e1;
    }

    .fact-item:hover .fact-icon,
    .interest-item:hover .interest-icon {
        transform: none;
    }

    .story-card:hover,
    .quick-facts-card:hover,
    .interests-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        background: var(--card-soft);
    }

    .filter-btn:hover {
        background: rgba(19, 26, 44, 0.9);
        color: #cbd5e1;
        border-color: rgba(71, 85, 105, 0.4);
        transform: none;
        box-shadow: none;
    }
    .filter-btn.active {
        background: linear-gradient(135deg, var(--cyan), #0099CC);
        color: #ffffff;
        border-color: var(--cyan);
    }

    .skill-card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(226, 232, 240, 0.2);
    }
    .skill-card:hover .skill-icon {
        transform: none;
        box-shadow: 0 8px 25px rgba(13, 17, 29, 0.3);
        color: var(--cyan);
        background: #0D111D !important;
        animation: iconFloat 3s ease-in-out infinite;
    }
    .skill-card:hover .skill-name {
        color: #ffffff;
    }

    .project-card:hover {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .project-btn:hover {
        background: var(--cyan);
        border-color: var(--cyan);
        color: #06121c;
        transform: none;
        box-shadow: none;
    }
    .project-btn:hover svg,
    .project-btn:hover i {
        transform: none;
    }

    .footer-social-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--muted);
        transform: none;
    }

    .footer-contact a:hover {
        color: var(--muted);
    }
}