/* 
  Mahek Gopani Portfolio
  Theme: Soft pastel, modern aesthetic
*/

:root {
    /* Color Palette - Collage / Zine Theme */
    --bg-color: #F8F5F2;
    /* Off-white Paper */
    --text-primary: #111111;
    /* Deep Ink */
    --text-secondary: #333333;
    /* Soft Ink */
    --accent-color: #E63946;
    /* Marker Red */
    --accent-secondary: #F4A261;
    /* Yellowish Tape */
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Cutive Mono', monospace;
    --font-hand: 'Caveat', cursive;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    /* Hide default cursor */
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    /* Sunset Coral outline */
    background: rgba(139, 92, 246, 0.05);
    /* Subtle fill */
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    backdrop-filter: blur(1px);
}



/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* 3D Tilt Card Base */
/* Editorial Poster Card */
.project-card {
    background: var(--white);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    /* Sharp corners */
    overflow: hidden;
    box-shadow: 6px 6px 0px rgba(15, 23, 42, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px var(--accent-color);
    border-color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
.btn {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}


/* Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.text-accent {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--white);
    border: 2px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation - Paper Strip Style */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 0;
    pointer-events: none;
    /* Let clicks pass through container */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    /* Re-enable clicks */
    max-width: 1400px;
    padding: 0 40px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    background: var(--text-primary);
    color: var(--white);
    padding: 8px 16px;
    transform: rotate(-3deg);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.nav-links ul {
    display: flex;
    gap: 20px;
}

.nav-links a {
    display: inline-block;
    background: var(--white);
    color: var(--text-primary);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    /* Torn edge look via rough clip-path */
    clip-path: polygon(3% 5%, 95% 0%, 100% 85%, 98% 100%, 5% 95%, 0% 10%);
    transform: rotate(2deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links li:nth-child(even) a {
    transform: rotate(-1.5deg);
}

.nav-links a:hover {
    transform: rotate(0deg) scale(1.1);
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* Ink Blobs Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    filter: contrast(20);
    /* Liquid Ink Effect */
    background: #fff;
    /* Ensure contrast works */
    opacity: 0.1;
    /* Subtle chaos */
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: #000;
    filter: blur(20px);
    animation: blobMove 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    animation-delay: -10s;
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* =========================================
   HERO SECTION - COLLAGE / ZINE REDESIGN
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-color: var(--bg-color);
    background-image: var(--paper-texture);
    overflow: hidden;
    position: relative;
    color: var(--text-primary);
}

.magazine-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Mixed Typography Headline */
.hero-title-mixed {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}

.font-serif-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 4rem;
    display: inline-block;
    transform: rotate(-3deg);
    margin-right: 12px;
}

.font-bold-display {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(4rem, 8vw, 7rem);
    text-transform: uppercase;
    display: block;
    letter-spacing: -2px;
    color: var(--text-primary);
    line-height: 0.9;
    transform: scaleX(1.1);
    /* Stretch */
}

.font-hand-highlight {
    font-family: var(--font-hand);
    font-size: 3.5rem;
    color: var(--accent-color);
    transform: rotate(-5deg) translateY(-10px);
    display: inline-block;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.font-typewriter {
    font-family: var(--font-body);
    font-size: 1.5rem;
    background: var(--text-primary);
    color: var(--white);
    padding: 2px 8px;
    vertical-align: middle;
}

/* Bio & Tape Styles */
.magazine-bio {
    font-family: var(--font-body);
    font-size: 1.2rem;
    max-width: 450px;
    margin-bottom: 40px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border: 1px dashed var(--text-secondary);
    position: relative;
}

.tape-strip {
    background: var(--accent-secondary);
    color: var(--text-primary);
    padding: 0 6px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotate(1deg);
    display: inline-block;
}

.circled-text {
    position: relative;
    display: inline-block;
    font-weight: bold;
    color: var(--accent-color);
}

.circled-text::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    right: -15px;
    bottom: -5px;
    border: 2px solid var(--accent-color);
    border-radius: 50% 60% 40% 70%;
    transform: rotate(-10deg);
}

/* Collage Image Wrapper */
.collage-image-wrapper {
    position: relative;
    z-index: 1;
    transform: rotate(3deg);
}

.profile-img-collage {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 0.9;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    /* "Torn Paper" Clip Path rough approximation */
    clip-path: polygon(2% 2%, 98% 5%, 100% 95%, 80% 98%, 60% 94%,
            40% 99%, 20% 92%, 0% 98%);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
    transition: filter 0.3s ease;
}

.profile-img-collage:hover {
    filter: grayscale(0%) contrast(1.1);
}

.sticker-badge {
    position: absolute;
    top: 0;
    right: 20px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.5rem;
    transform: rotate(15deg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    animation: bounce 3s infinite ease-in-out;
}

@media (max-width: 992px) {
    .sticker-badge {
        width: 80px;
        height: 80px;
        right: -30px;
    }
}

.tape-corner {
    position: absolute;
    top: -15px;
    left: 30%;
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(-5deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Decorative Scraps */
.decorative-scrap {
    position: absolute;
    background: #fff;
    opacity: 0.6;
    z-index: 0;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.05));
}

.scrap-1 {
    top: 15%;
    left: -5%;
    width: 300px;
    height: 300px;
    clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
    background: #F0F0F0;
    transform: rotate(10deg);
}

.scrap-2 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 250px;
    clip-path: polygon(5% 5%, 95% 0, 100% 95%, 0 100%);
    background: var(--accent-soft);
    /* Using variable roughly */
    opacity: 0.2;
    transform: rotate(-5deg);
}

/* Issue Number */
.magazine-issue-no {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-primary);
    display: inline-block;
    padding-bottom: 4px;
}

/* CTA */
.btn-collage {
    display: inline-block;
    background: var(--text-primary);
    color: var(--white);
    padding: 16px 32px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-2deg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--text-primary);
}

.btn-collage:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(2deg) scale(1.05);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
}

@media (max-width: 992px) {
    .magazine-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-title-mixed {
        font-size: 2rem;
    }

    .magazine-bio {
        margin: 0 auto 32px;
    }

    .collage-image-wrapper {
        width: 80%;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.15;
    }
}





/* =========================================
   ABOUT SECTION - SCRAPBOOK STYLE
   ========================================= */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    padding: 20px;
}

.scrapbook-paper {
    background: #fff;
    /* Clean paper */
    padding: 40px;
    max-width: 500px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.scrapbook-paper::before {
    /* Paper Texture Overlay */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--paper-texture);
}

.section-title-hand {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    transform: rotate(-2deg);
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1;
}

.typewriter-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.highlight-marker {
    background: linear-gradient(120deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.4) 100%);
    padding: 0 4px;
}

.hand-note {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: var(--accent-color);
    transform: rotate(2deg);
    margin-top: 20px;
    display: inline-block;
}

.tape-center {
    top: -15px;
    left: 45%;
    width: 80px;
    height: 30px;
    transform: rotate(3deg);
}

/* Sticker Sheet (Skills) */
.sticker-sheet {
    background: #F4F4F4;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
    border: 1px dashed var(--text-primary);
    position: relative;
    max-width: 400px;
    transform: rotate(2deg);
}

.sticker-sheet h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.push-pin {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.push-pin::after {
    /* Pin highlight */
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.strength-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.sticker-tag {
    background: var(--text-primary);
    color: #fff;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    transform: rotate(-2deg);
    transition: transform 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.sticker-tag:nth-child(even) {
    background: var(--accent-color);
    transform: rotate(3deg);
}

.sticker-tag:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
}


/* Work Section */
/* =========================================
   WORK SECTION - COLLAGE ZINE STYLE
   ========================================= */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 80px;
    /* More breathing room */
    margin-top: 60px;
}

.project-zine-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Photo Container */
.photo-container {
    position: relative;
    padding: 12px;
    background: #fff;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.photo-container:hover {
    transform: scale(1.02) rotate(0deg) !important;
    box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.rotate-left {
    transform: rotate(-2deg);
}

.rotate-right {
    transform: rotate(2deg);
}

.photo-frame {
    border: 1px solid #ddd;
    padding: 8px;
    /* Internal white border */
    background: var(--bg-color);
}

.project-thumbnail {
    height: 280px;
    background: #ccc;
    position: relative;
    overflow: hidden;
    filter: sepia(20%) contrast(1.1);
    /* Vintage photo look */
}

/* Scotch Tape */
.scotch-tape {
    position: absolute;
    height: 35px;
    width: 100px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 5;
    transform: rotate(-5deg);
}

.tape-top {
    top: -15px;
    left: 40%;
}

/* Info & handwritten notes */
.project-zine-info {
    text-align: center;
    position: relative;
}

.zine-label {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zine-number {
    background: var(--text-primary);
    color: var(--white);
    padding: 2px 6px;
}

.zine-tag {
    border-bottom: 2px solid var(--accent-secondary);
}

.project-zine-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.handwritten-note {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--text-secondary);
    transform: rotate(-1deg);
    margin-bottom: 16px;
    line-height: 1.2;
}

/* Scribble Link */
.link-scribble {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    text-decoration: none;
    font-size: 1rem;
}

.scribble-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 5 15, 10 10 T 20 10 T 30 10 T 40 10 T 50 10 T 60 10 T 70 10 T 80 10 T 90 10 T 100 10' stroke='%23E63946' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.link-scribble:hover .scribble-underline {
    opacity: 1;
    transform: scaleX(1.1);
}

.project-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    /* transition handled by main.js for tilt + base css */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-thumbnail {
    height: 240px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.project-card:hover .project-thumbnail {
    filter: grayscale(0%);
}

/* Cool Gradients for Thumbnails */
.project-card:nth-child(1) .project-thumbnail {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    /* Violet -> Pink */
}

.project-card:nth-child(2) .project-thumbnail {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    /* Green -> Blue */
}

.project-card:nth-child(3) .project-thumbnail {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    /* Purple -> Blue */
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-thumbnail::after {
    opacity: 1;
}


.project-info {
    padding: 32px;
    /* Increased padding */
}

.project-info h3 {
    font-size: 1.75rem;
    /* Larger Title */
    margin-bottom: 12px;
    font-weight: 600;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    /* Better readability */
    margin-bottom: 24px;
    line-height: 1.7;
    /* Increased line-height */
}

.project-tags {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
}

/* Updated Tag Styling */
.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.08);
    /* Subtle background */
    padding: 6px 12px;
    border-radius: 4px;
}

.link-arrow {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category h3 {
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--white);
    border-radius: 4px;
    /* Sharp */
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px var(--accent-color);
    border-color: var(--text-primary);
}

.skill-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
}

.strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Experience Section */
.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background-color: rgba(139, 92, 246, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    background-color: var(--accent-color);
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.timeline-content {
    background: #fff;
    padding: 24px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content h4::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--text-secondary);
    opacity: 0.5;
}

.timeline-content p {
    color: #475569;
    line-height: 1.6;
}

.contact-stamps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stamp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #fff;
    border: 1px dashed var(--text-primary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Tape Effect */
.stamp-link::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 40%;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    /* Washi Tape look */
    border-left: 1px dotted #ccc;
    border-right: 1px dotted #ccc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.stamp-link:hover {
    transform: translateY(-5px) scale(1.05) rotate(0deg);
    background: var(--accent-color);
    color: #fff;
    border-color: #fff;
    border-style: solid;
    box-shadow: 8px 8px 0px var(--text-primary);
}

.stamp-link span {
    position: relative;
    z-index: 2;
}

.email-stamp {
    transform: rotate(-3deg);
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
    /* Hand-drawn shape */
}

.linkedin-stamp {
    transform: rotate(2deg);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.github-stamp {
    transform: rotate(-1.5deg);
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

.resume-stamp {
    transform: rotate(2.5deg);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

/* Barcode */
.barcode-footer {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.barcode-lines {
    width: 200px;
    height: 40px;
    background: repeating-linear-gradient(to right,
            #000 0px,
            #000 4px,
            transparent 4px,
            transparent 8px,
            #000 8px,
            #000 10px,
            transparent 10px,
            transparent 16px);
}

.barcode-text {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    letter-spacing: 4px;
}

/* Contact Section */
.contact-container {
    background: var(--white);
    border-radius: 4px;
    padding: 60px;
    box-shadow: 12px 12px 0px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--text-primary);
    text-align: center;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-link:hover .icon-box {
    background: var(--accent-color);
    color: #fff;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: #94A3B8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-medium);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline {
        padding-left: 10px;
    }
}



/* Typing Effect */
.typing-text {
    color: var(--accent-color);
    position: relative;
    font-weight: 700;
}

.cursor-blink {
    color: var(--text-primary);
    animation: blink 1s infinite;
    font-weight: 100;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #6366f1);
    width: 0%;
}

/* Organic Section Separators */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 100px;
}

.wave-separator .shape-fill {
    fill: #FFFFFF;
}

/* Ensure sections have relative positioning for absolute separators */
.section {
    position: relative;
}

/* Abstract HTML Art */
.abstract-art {
    width: 100%;
    height: 100%;
    position: relative;
}

.art-shape {
    position: absolute;
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease;
}

/* Card 1 Art */
.art-1 .shape-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 30%;
    left: 40%;
}

.art-1 .shape-rect {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    bottom: 30%;
    right: 35%;
    transform: rotate(15deg);
}

/* Card 2 Art */
.art-2 .shape-circle-lg {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 20%;
}

.art-2 .shape-pill {
    width: 140px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    bottom: 25%;
    right: 20%;
    transform: rotate(-10deg);
}

/* Card 3 Art */
.art-3 .shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.3);
    top: 25%;
    left: 45%;
    transform: translateX(-50%);
}

.art-3 .shape-blob {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: 20%;
    right: 30%;
}

/* Hover effects for art */
.project-card:hover .art-shape {
    transform: translateY(-10px) scale(1.1) rotate(5deg);
}

.project-card:hover .art-1 .shape-rect {
    transform: rotate(45deg) scale(1.1);
}

.project-card:hover .art-2 .shape-pill {
    transform: rotate(0) translateY(-10px);
}

/* Project Numbering Stylization */
.project-header {
    display: flex;
    justify-content: flex-start;
    /* Group items together */
    align-items: center;
    gap: 24px;
    /* Space between number and tags */
    margin-bottom: 24px;
}

.project-number {
    font-size: 3.5rem;
    /* Balanced size */
    font-weight: 800;
    color: rgba(139, 92, 246, 0.1);
    line-height: 1;
    font-family: var(--font-heading);
    margin: 0;
}

/* Refined Tags Position */
.project-tags {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}