/* ==============================================
   DIGITAL SKETCHBOOK — Design System
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Patrick+Hand&display=swap');

:root {
    /* Colors */
    --bg-paper: #fdfaf6;
    --ink: #1a1a1a;
    --accent-orange: #fb923c;
    --accent-yellow: #fef08a;
    --accent-red: #ef4444;
    --accent-blue: #60a5fa;
    --yellow-100: #fef9c3;
    --text-muted: #6b6b6b;
    --dot-color: #e5e0d8;

    /* Borders & Shadows */
    --wobbly-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --hard-shadow: 6px 6px 0px 0px var(--ink);
    --hard-shadow-hover: 3px 3px 0px 0px var(--ink);
    --hard-shadow-pressed: 1px 1px 0px 0px var(--ink);
    --border: 3px solid var(--ink);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-paper);
    background-image: radial-gradient(circle, var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    color: var(--ink);
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Wavy Underline Links */
.wavy-link {
    text-decoration: none;
    text-underline-offset: 8px;
    transition: all 0.3s ease;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
}

.wavy-link:hover {
    text-decoration: underline wavy 2px;
}

.wavy-link.orange:hover {
    text-decoration-color: var(--accent-orange);
}

.wavy-link.yellow:hover {
    text-decoration-color: #d4a733;
}

.wavy-link.blue:hover {
    text-decoration-color: var(--accent-blue);
}

.wavy-link.red:hover {
    text-decoration-color: var(--accent-red);
}

/* Wobbly Card Base */
.sketch-card {
    background: #fff;
    border: var(--border);
    border-radius: var(--wobbly-radius);
    box-shadow: var(--hard-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.sketch-card:hover {
    box-shadow: var(--hard-shadow-hover);
    transform: translate(3px, 3px);
}

/* ==============================================
   SCROLL PROGRESS BAR
   ============================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-red), var(--accent-blue));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ==============================================
   NAVIGATION
   ============================================== */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #fff;
    border: var(--border);
    border-radius: var(--wobbly-radius);
    box-shadow: var(--hard-shadow);
}

.logo {
    font-family: 'Kalam', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

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

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

.nav-links a {
    color: var(--ink);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    text-decoration: none;
    text-underline-offset: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    text-decoration: underline wavy 2px;
}

.nav-links li:nth-child(1) a:hover {
    text-decoration-color: var(--accent-orange);
}

.nav-links li:nth-child(2) a:hover {
    text-decoration-color: var(--accent-yellow);
    color: #a68a00;
}

.nav-links li:nth-child(3) a:hover {
    text-decoration-color: var(--accent-blue);
}

.nav-links li:nth-child(4) a:hover {
    text-decoration-color: var(--accent-red);
}

.nav-links li:nth-child(5) a:hover {
    text-decoration-color: var(--accent-orange);
}

#menu-toggle {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-yellow);
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    margin-bottom: 2rem;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.hero h1 {
    margin-bottom: 1.5rem;
    position: relative;
}

.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline svg {
    position: absolute;
    bottom: -8px;
    left: -5%;
    width: 110%;
    height: 20px;
    overflow: visible;
}

.scribble-underline svg path {
    stroke: var(--accent-orange);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawScribble 1.5s ease-out 0.5s forwards;
}

@keyframes drawScribble {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.typed-highlight {
    color: var(--ink);
    font-weight: 700;
    font-family: 'Kalam', cursive;
    position: relative;
    background: linear-gradient(180deg, transparent 60%, var(--accent-yellow) 60%);
    padding: 0 4px;
}

.typed-cursor {
    display: inline-block;
    color: var(--accent-red);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatAnim 4s ease-in-out infinite;
    color: var(--ink);
}

.float-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.float-icon:nth-child(2) {
    top: 20%;
    right: 8%;
    animation-delay: 0.5s;
    transform: rotate(10deg);
}

.float-icon:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 1s;
    transform: rotate(5deg);
}

.float-icon:nth-child(4) {
    bottom: 15%;
    right: 12%;
    animation-delay: 1.5s;
    transform: rotate(-8deg);
}

.float-icon:nth-child(5) {
    top: 40%;
    left: 2%;
    animation-delay: 2s;
    transform: rotate(20deg);
}

.float-icon:nth-child(6) {
    top: 35%;
    right: 3%;
    animation-delay: 0.8s;
    transform: rotate(-12deg);
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + 2deg));
    }
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 32px;
    border: var(--border);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--hard-shadow);
    position: relative;
}

.cta-button:hover {
    box-shadow: var(--hard-shadow-hover);
    transform: translate(3px, 3px);
}

.cta-button:active {
    box-shadow: var(--hard-shadow-pressed);
    transform: translate(5px, 5px);
}

.cta-primary {
    background: var(--ink);
    color: #fff;
}

.cta-secondary {
    background: #fff;
    color: var(--ink);
}

/* ==============================================
   SECTION STYLES
   ============================================== */
.section-padding {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashed Divider */
.dashed-divider {
    border: none;
    border-top: 3px dashed var(--dot-color);
    margin: 60px auto;
    max-width: 600px;
}

/* ==============================================
   SKILLS CARD GRID
   ============================================== */
.skills-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-category-card {
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 6px;
    box-shadow: var(--hard-shadow);
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    border-top-width: 6px;
}

.skill-category-card:hover {
    box-shadow: var(--hard-shadow-hover);
    transform: translate(3px, 3px);
}

/* Color accent classes — top border */
.skill-category-card.accent-cyan {
    border-top-color: #67d8ef;
}

.skill-category-card.accent-yellow {
    border-top-color: #f5d442;
}

.skill-category-card.accent-pink {
    border-top-color: #f78da7;
}

.skill-category-card.accent-gold {
    border-top-color: #f5d442;
    background: #f5d442;
}

/* Category header — icon + title */
.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-category-header i {
    font-size: 1.8rem;
    color: var(--ink);
}

.skill-category-card.accent-cyan .skill-category-header i {
    color: #67d8ef;
}

.skill-category-card.accent-yellow .skill-category-header i {
    color: #d4a733;
}

.skill-category-card.accent-pink .skill-category-header i {
    color: #f78da7;
}

.skill-category-card.accent-gold .skill-category-header i {
    color: #2980b9;
}

.skill-category-header h3 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 0;
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 4px;
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent-yellow);
    transform: translate(1px, 1px);
}

.skill-tag i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Active / highlighted tag */
.active-tag {
    background: var(--accent-blue);
    color: #fff;
}

.active-tag:hover {
    background: var(--accent-blue);
}

/* Gold card tags */
.skill-category-card.accent-gold .skill-tag {
    background: #fef9c3;
    border-color: var(--ink);
}

.skill-category-card.accent-gold .skill-tag:hover {
    background: #fff;
}

/* ==============================================
   PROJECT GALLERY
   ============================================== */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 40px 0;
}

.project-item.reverse {
    direction: rtl;
}

.project-item.reverse>* {
    direction: ltr;
}

/* Polaroid Image */
.polaroid {
    position: relative;
    background: #fff;
    padding: 12px 12px 50px;
    border: var(--border);
    border-radius: 4px;
    box-shadow: var(--hard-shadow);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.project-item:nth-child(even) .polaroid {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) !important;
}

.polaroid-img {
    width: 100%;
    height: 220px;
    background: #f0ece6;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kalam', cursive;
    font-size: 2.5rem;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
}

.polaroid-label {
    text-align: center;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Digital Tape */
.tape {
    position: absolute;
    width: 80px;
    height: 25px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tape-top-left {
    top: -10px;
    left: -15px;
    transform: rotate(-3deg);
}

.tape-top-right {
    top: -10px;
    right: -15px;
    transform: rotate(5deg);
}

.tape-bottom-left {
    bottom: 30px;
    left: -10px;
    transform: rotate(2deg);
}

/* Thumbtack Pin */
.thumbtack {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent-red);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

.thumbtack-top-center {
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
}

.thumbtack-top-right {
    top: -5px;
    right: 10px;
}

/* Project Info */
.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-info .project-number {
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.85rem;
    padding: 4px 14px;
    background: var(--bg-paper);
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0px 0px var(--ink);
    transition: all 0.2s ease;
    background: #fff;
}

.project-links a:hover {
    box-shadow: 1px 1px 0px 0px var(--ink);
    transform: translate(2px, 2px);
}

/* ==============================================
   TIMELINE / JOURNEY SECTION
   ============================================== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 3px;
    border-left: 3px dashed var(--dot-color);
}

.timeline-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-dot {
    width: 44px;
    height: 44px;
    border: var(--border);
    border-radius: var(--wobbly-radius);
    background: var(--accent-yellow);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.timeline-content {
    flex: 1;
    padding: 24px 28px;
}

.timeline-content:hover {
    transform: translate(3px, 3px);
}

.timeline-date {
    display: inline-block;
    font-family: 'Kalam', cursive;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: #fecaca;
    padding: 2px 10px;
    border-radius: 4px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

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

/* ==============================================
   GITHUB STATS SECTION
   ============================================== */
.github-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-card {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.stat-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.live-stat-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Kalam', cursive;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
}

.about-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #bfdbfe;
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}

.education-block {
    margin: 25px 0;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: var(--accent-yellow);
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.education-item i {
    font-size: 1.4rem;
    color: var(--ink);
}

.edu-degree {
    display: block;
    font-weight: 700;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
}

.edu-school {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.resume-btn {
    margin-top: 20px;
    background: var(--ink);
    color: #fff;
}

/* Skills Pills in About */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.skill-item:hover {
    background: var(--accent-yellow);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px 0px var(--ink);
}

/* ==============================================
   CONTACT SECTION — Sticky Note
   ============================================== */
.contact-wrapper {
    background: var(--yellow-100);
    border: var(--border);
    border-radius: var(--wobbly-radius);
    box-shadow: var(--hard-shadow);
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transform: rotate(-0.5deg);
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-red);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-wrapper>p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form label {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: -10px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    background: #fff;
    resize: vertical;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.contact-form textarea {
    min-height: 120px;
}

.submit-btn {
    padding: 14px;
    background: var(--ink);
    color: #fff;
    border: var(--border);
    border-radius: var(--wobbly-radius);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--hard-shadow);
    transition: all 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    box-shadow: var(--hard-shadow-hover);
    transform: translate(3px, 3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: var(--wobbly-radius);
    font-size: 1.3rem;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px 0px var(--ink);
    color: var(--ink);
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px 0px var(--ink);
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    border-top: 3px dashed var(--dot-color);
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================================
   SCROLL REVEAL ANIMATION
   ============================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================== */
@media (max-width: 1024px) {
    .skills-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-item.reverse {
        direction: ltr;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   RESPONSIVE — Mobile (≤768px)
   ============================================== */
@media (max-width: 768px) {
    nav {
        width: 94%;
        padding: 12px 20px;
        top: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-paper);
        background-image: radial-gradient(circle, var(--dot-color) 1.5px, transparent 1.5px);
        background-size: 32px 32px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    #menu-toggle:checked~.nav-links {
        transform: translateX(0);
    }

    #menu-toggle:checked~.menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #menu-toggle:checked~.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .logo {
        font-size: 1.2rem;
        z-index: 1001;
    }

    .hero {
        padding: 100px 5% 40px;
        min-height: auto;
    }

    h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

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

    .project-item {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 0;
    }

    .about-container {
        padding: 30px 20px;
    }

    .contact-wrapper {
        padding: 35px 25px;
        transform: rotate(0deg);
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

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

    .timeline-dot {
        width: 36px;
        height: 36px;
    }

    .timeline-content {
        padding: 18px 20px;
    }

    .live-stat-container {
        flex-direction: column;
        gap: 30px;
    }

    .github-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
    }
}