:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --primary: #60a5fa;
    --secondary: #2563eb;
    --header: #020617;
}

* {
    user-select: none;
}

/* ================= BODY ================= */

body {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #111827);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;

    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ================= HEADER ================= */

.site-header {
    background: linear-gradient(90deg, #020617, #0f172a, #020617);
    background-size: 200% 100%;
    animation: headerGlow 6s linear infinite;

    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes headerGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.site-header {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

#navbar a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

#navbar a:hover {
    color: var(--text);
}

#navbar a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

#navbar a:hover::after {
    width: 100%;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 30px;
    color: var(--secondary);
}

/* ================= SECTIONS ================= */

.section {
    display: none;
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(30px);
}

.section.active {
    display: block;
    animation: sectionFade 0.6s ease forwards;
}

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

.section h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ================= GRID ================= */

.project-grid,
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ================= CARDS ================= */

.project-card,
.resume-card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);

    opacity: 0;
    transform: translateY(40px);

    transition: all 0.6s cubic-bezier(.2, .8, .2, 1);
}

.card-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-card:hover,
.resume-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(96, 165, 250, 0.25),
        0 0 30px rgba(147, 51, 234, 0.15);
}

/* ================= Glow Border ================= */

.project-card::before,
.resume-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg, #60a5fa, #2563eb, #9333ea);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* ================= TEXT ================= */

h1,
h2,
h3 {
    color: var(--primary);
}

ol,
ul,
p,
li,
strong {
    color: var(--muted);
}

/* ================= RESUME ================= */

.resume-card a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.resume-card a:hover {
    color: var(--secondary);
}

.resume-card a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.resume-card a:hover::after {
    width: 100%;
}

.project-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(120deg, #2563eb, #60a5fa);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
}

.resume-text {
    color: var(--muted);
    line-height: 2.2;
}

/* ================= RESUME LAYOUT ================= */

.resume-container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
    animation: fadeUp 0.8s ease forwards;
}

.resume-header {
    text-align: center;
    margin-bottom: 50px;
}

.resume-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.resume-contact {
    margin-top: 10px;
    color: var(--muted);
}

.resume-contact a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 8px;
}

/* Two Column Layout */

.resume-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.resume-block {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(.2, .8, .2, 1);
}

.resume-block.show {
    opacity: 1;
    transform: translateY(0);
}

.resume-block:nth-child(1) {
    animation-delay: .2s;
}

.resume-block:nth-child(2) {
    animation-delay: .4s;
}

.resume-block:nth-child(3) {
    animation-delay: .6s;
}

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

/* ================= TIMELINE ================= */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 10px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* ================= SKILL BARS ================= */

.skill {
    margin-bottom: 15px;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    margin-top: 6px;
}

.skill-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #9333ea);
    width: 0;
    animation: growBar 1.5s ease forwards;
}

@keyframes growBar {
    from {
        width: 0;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .resume-body {
        grid-template-columns: 1fr;
    }
}

.typing {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 8px;
    position: relative;
}

.typing::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


.resume-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.resume-header::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    filter: blur(80px);
    animation: floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    from {
        transform: translateX(-50%) translateY(0px);
    }

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

/* Only stop animations and transitions without hiding elements */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation: none !important;
    transition: none !important;
}

/* Disable transforms that move or scale elements, but keep layout intact */
.reduce-motion .project-card,
.reduce-motion .resume-card,
.reduce-motion .project-link {
    transform: none !important;
    box-shadow: none !important;
}
/* Keep all elements visible (especially those starting hidden for animation) */
.reduce-motion .section,
.reduce-motion .resume-block,
.reduce-motion .card-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Stop blinking cursor */
.reduce-motion .typing::after {
    animation: none !important;
}



/* ================= DROPDOWN ================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    display: flex;
    flex-direction: column; 

    background: var(--card);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    color: var(--primary);
    background: rgba(96, 165, 250, 0.1);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= GRAPHICS SECTION (UPGRADED) ================= */

#graphics-section {
    max-width: 1200px;
    margin: auto;
}

#graphics-section h1 {
    margin-bottom: 30px;
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.graphic-card {
    background: linear-gradient(145deg, var(--card), #141c2f);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center;
    transition: all 0.4s ease;
}

.graphic-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* prevents cropping */
}

.colored-image {
  filter: invert(100%) brightness(1.2);
}

.disabled-link {
    pointer-events: none; /* disables all mouse interaction */
    color: gray;          /* optional: visually indicate it’s disabled */
    text-decoration: none; /* optional: remove underline */
    cursor: default;       /* optional: default cursor instead of pointer */
  }