/* =============================================
   KUNAL YELNE PORTFOLIO - CSS STYLES
   Warm Bento-Box Aesthetic - Inspired by janzi.in
   ============================================= */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    /* Colors - Warm Palette */
    --bg-main: #FFF8F5;
    --bg-card: #FFE8DC;
    --bg-card-alt: #FFF0E8;
    --bg-card-dark: #5C3D2E;
    --bg-nav: rgba(255, 248, 245, 0.85);

    /* Text Colors */
    --text-primary: #99470F;
    --text-body: #5C3D2E;
    --text-muted: #8B6B5A;
    --text-light: #B8998A;
    --text-on-dark: #FFF8F5;

    /* Accent */
    --accent: #FF6B4A;
    --accent-soft: rgba(255, 107, 74, 0.15);
    --accent-hover: #E85A3C;

    /* Borders & Shadows */
    --border-color: #E8D5CC;
    --shadow-soft: 0 4px 20px rgba(92, 61, 46, 0.08);
    --shadow-hover: 0 8px 30px rgba(92, 61, 46, 0.12);

    /* Sizing */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg-main: #0F0906;
    /* Very dark brown-black */
    --bg-card: #1A120E;
    /* Dark brown */
    --bg-card-alt: #241A14;
    /* Slightly lighter dark brown */
    --bg-card-dark: #000000;
    --bg-nav: rgba(15, 9, 6, 0.85);

    /* Text Colors */
    --text-primary: #FFD2B8;
    /* Light warm cream */
    --text-body: #D9C5B2;
    /* Warm gray */
    --text-muted: #A68E7A;
    /* Muted warm gray */
    --text-light: #736052;
    /* Dimmer warm gray */
    --text-on-dark: #0F0906;

    /* Accent */
    --accent: #FF8E72;
    --accent-soft: rgba(255, 142, 114, 0.15);
    --accent-hover: #FF7A59;

    /* Borders & Shadows */
    --border-color: #2D1D15;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--accent-soft);
    color: var(--text-primary);
}

[data-theme="dark"] ::selection {
    background: var(--accent);
    color: var(--text-on-dark);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: var(--bg-nav, rgba(255, 248, 245, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(92, 61, 46, 0.08);
    gap: 40px;
    max-width: 90%;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(92, 61, 46, 0.08);
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.theme-toggle .ph-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .ph-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .ph-sun {
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-body);
    font-weight: 500;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-icon {
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
}

.nav-link span {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-link:hover .nav-icon {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover span {
    transform: translateX(2px);
}

.nav-cta {
    background: var(--accent);
    color: var(--text-on-dark) !important;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
}

.nav-cta i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-cta:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* =============================================
   HERO SECTION - BENTO GRID
   ============================================= */
.hero-section {
    min-height: 100vh;
    padding: 120px 60px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    max-width: 1100px;
    width: 100%;
    position: relative;
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* More specific rule to override row3-stack override */
.bento-grid .bento-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Staggered fade-in for all bento cards */
.bento-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.bento-grid>*:nth-child(2) {
    animation-delay: 0.15s;
}

.bento-grid>*:nth-child(3) {
    animation-delay: 0.2s;
}

.bento-grid>*:nth-child(4) {
    animation-delay: 0.25s;
}

.bento-grid>*:nth-child(5) {
    animation-delay: 0.3s;
}

.bento-grid>*:nth-child(6) {
    animation-delay: 0.35s;
}

.bento-grid>*:nth-child(7) {
    animation-delay: 0.4s;
}

.bento-grid>*:nth-child(8) {
    animation-delay: 0.45s;
}

/* Column 1: Title (row 1 only) */
.bento-title {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    position: relative;
}

.title-corner-icon {
    position: absolute;
    top: 50px !important;
    right: 100px !important;
    bottom: auto !important;
    left: auto !important;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.title-corner-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s ease-out;
}

.bento-title:hover .title-corner-icon {
    opacity: 1;
    animation: rocketBoost 0.8s ease-out forwards;
}

@keyframes rocketBoost {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    10% {
        transform: translate(1px, -1px) scale(1.05);
        opacity: 1;
    }

    20% {
        transform: translate(4px, -2px) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translate(12px, -8px) scale(1.1);
        opacity: 1;
    }

    80% {
        transform: translate(16px, -12px) scale(1.0);
        opacity: 0.8;
    }

    100% {
        transform: translate(40px, -26px) scale(0.5);
        opacity: 0;
    }
}

.bento-title h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.2;
}

.bento-title .accent {
    color: var(--accent);
}

/* Column 2: Photo (row 1) - made taller */
.bento-photo {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--border-color) 0%, var(--bg-card) 100%);
}

.profile-photo {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
}

.photo-placeholder i {
    font-size: 4rem;
    color: var(--text-light);
}

/* Column 3: Watch, Read, Ponder List (rows 1-2) */
.bento-list {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.list-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.list-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    padding-right: 8px;
}

.list-scroll::-webkit-scrollbar {
    width: 4px;
}

.list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.list-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-item:hover {
    background: var(--accent-soft);
}

.list-item i {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.list-item:hover i {
    color: var(--accent);
}

/* Make icon fill on hover */
.list-item:hover i::before {
    font-family: "Phosphor-Fill", "Phosphor";
    font-weight: bold;
}

.list-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
}

.item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Column 2: Currently (row 2) */
.bento-currently {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    padding: 16px;
    flex: 1;
    /* Added flex: 1 to expand in the row 3 stack */
}

.currently-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.currently-icon i {
    font-size: 1.1rem;
    color: white;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-currently:hover .currently-icon i {
    transform: rotate(360deg);
}

.currently-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.currently-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Fitlane Logo Styling */
.fitlane-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: white;
    paint-order: stroke fill;
    display: inline-block;
}

.fitlane-logo-stroke {
    -webkit-text-stroke: var(--logo-stroke-width, 3px) #FF9D23;
    stroke-linejoin: bevel;
    paint-order: stroke fill;
}

.fitlane-logo-shadow {
    filter: drop-shadow(var(--logo-shadow-offset, 1px) var(--logo-shadow-offset, 1px) 0px rgba(0, 0, 0, 0.2));
    display: inline-block;
}

.butterchicken-link {
    color: rgb(249 115 22 / var(--tw-text-opacity, 1));
    text-decoration: none;
    transition: var(--transition-fast);
}

.butterchicken-link:hover {
    opacity: 0.8;
}

/* Column 1: Bio (rows 2-3) - spans two rows like janzi.in */
.bento-bio {
    grid-column: 1;
    grid-row: 2 / 4;
    background: var(--bg-card-alt);
    padding: 28px;
    display: flex;
    align-items: flex-start;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0;
}

/* Special font for name */
.name-highlight {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

/* Column 2: Row 3 Stack (Previous + Say Hi) */
.bento-row3-stack {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-row3-stack .bento-card {
    opacity: 1;
    animation: none;
}

/* Override the above with more specific rules */
.bento-grid .bento-row3-stack .bento-currently {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.bento-grid .bento-row3-stack .bento-cta {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.35s;
}

/* Previously at box */
.bento-previous {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    flex: 1;
}

.previous-icon {
    background: #6B7280 !important;
    width: 36px !important;
    height: 36px !important;
}

.previous-icon i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-previous:hover .previous-icon i {
    transform: rotate(360deg);
}

/* Say Hi - smaller */
.bento-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    cursor: pointer;
    padding: 12px;
}

.bento-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-4px) scale(1.02);
}

.say-hi-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.say-hi-arrow {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-cta:hover .say-hi-arrow {
    transform: rotate(45deg) scale(1.2);
}

/* Row 3 - Individual Social Cards */
.social-square {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    cursor: pointer;
    padding: 50px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.social-square:nth-child(1) {
    animation-delay: 0.1s;
}

.social-square:nth-child(2) {
    animation-delay: 0.15s;
}

.social-square:nth-child(3) {
    animation-delay: 0.2s;
}

.social-square:nth-child(4) {
    animation-delay: 0.25s;
}

/* Use nth-of-type for the social cards in bento grid context */
.bento-grid .social-linkedin {
    animation-delay: 0.4s;
}

.bento-grid .social-github {
    animation-delay: 0.5s;
}

.bento-grid .social-x {
    animation-delay: 0.6s;
}

.bento-grid .social-email {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.social-square:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.social-square i {
    font-size: 1.5rem;
    color: var(--text-body);
    transition: all 0.3s ease;
}

/* LinkedIn - Blue */
.social-linkedin:hover {
    background: #0A66C2;
}

.social-linkedin:hover i {
    color: white;
}

/* GitHub - Dark */
.social-github:hover {
    background: #62308F;
}

.social-github:hover i {
    color: white;
}

/* X (Twitter) - Black */
.social-x:hover {
    background: #000000;
}

.social-x:hover i {
    color: white;
}

/* Medium - Black */
.social-medium:hover {
    background: #000000;
}

.social-medium:hover i {
    color: white;
}

/* Email - Coral */
.social-email:hover {
    background: var(--accent);
}

.social-email:hover i {
    color: white;
}

/* Column 3: Social Row (row 3) - individual social boxes + ring */
.bento-social-row {
    grid-column: 3;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.bento-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.bento-social-grid .social-square {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bento-social-grid .social-square i {
    font-size: 1.6rem;
    color: var(--text-body);
    transition: all 0.3s ease;
}

/* Brand color hovers */
.bento-social-grid .social-linkedin:hover {
    background: #0A66C2;
}

.bento-social-grid .social-linkedin:hover i {
    color: white;
}

.bento-social-grid .social-github:hover {
    background: #62308F;
}

.bento-social-grid .social-github:hover i {
    color: white;
}

.bento-social-grid .social-x:hover {
    background: #000000;
}

.bento-social-grid .social-x:hover i {
    color: white;
}

.bento-social-grid .social-medium:hover {
    background: #000000;
}

.bento-social-grid .social-medium:hover i {
    color: white;
}

.bento-social-grid .social-email:hover {
    background: var(--accent);
}

.bento-social-grid .social-email:hover i {
    color: white;
}

/* Scroll Indicator - larger ring */
.bento-social-row .scroll-indicator {
    position: relative;
    width: 120px;
    height: 120px;
    animation: rotate 15s linear infinite;
    cursor: pointer;
    flex-shrink: 0;
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
}

.scroll-indicator text {
    font-size: 10px;
    fill: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   WORK SECTION - TIMELINE
   ============================================= */
.work-section {
    padding: 60px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 95px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    z-index: 1;
}

.timeline-year {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    padding-top: 16px;
    padding-right: 16px;
}

.year-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.year-divider {
    color: var(--text-light);
    font-size: 0.8rem;
}

.timeline-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.company-name {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}

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

.company-name a:hover {
    color: var(--accent);
}

.duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card-alt);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-alt);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.role {
    font-style: italic;
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.achievements {
    list-style: none;
    margin-bottom: 16px;
}

.achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.tech-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-lg);
    font-weight: 500;
}

/* =============================================
   ABOUT & SKILLS COMBINED SECTION
   ============================================= */
.about-skills-section {
    padding: 80px 60px;
}

.about-skills-container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-card));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    border: 2px solid var(--border-color);
}

.title-icon {
    color: var(--accent);
    animation: sparkle 2s ease-in-out infinite;
}

.title-icon:first-child {
    animation-delay: 0s;
}

.title-icon:last-child {
    animation-delay: 1s;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-skills-container {
        padding: 40px 30px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .about-skills-section {
        padding: 60px 40px;
    }

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

    .content-grid {
        gap: 24px;
    }

    .about-card,
    .write-card,
    .skills-card {
        padding: 30px 24px;
    }

    .stats-row {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        flex: none;
        padding: 16px;
    }

    .skill-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .skill-icon {
        margin: 0 auto;
    }

    .medium-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-skills-section {
        padding: 40px 20px;
    }

    .about-skills-container {
        padding: 20px 16px;
    }

    .about-card,
    .write-card,
    .skills-card {
        padding: 24px 20px;
    }

    .card-title {
        font-size: 1.3rem;
        gap: 8px;
    }

    .card-title i {
        font-size: 1.5rem;
    }

    .about-text,
    .write-text {
        font-size: 1rem;
    }

    .skill-badges {
        justify-content: center;
    }

    .medium-link {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .medium-link i {
        font-size: 1rem;
    }
}

/* About Card */
.about-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 20s linear infinite;
}

.about-card:hover::before {
    opacity: 0.1;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.card-title i {
    color: var(--accent);
    font-size: 1.8rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-text:nth-child(2) {
    animation-delay: 0.3s;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::after {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.stat-item:nth-child(2) i {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) i {
    animation-delay: 1s;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

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

/* Write Card */
.write-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    margin-top: 10px;
    padding: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.write-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 25s linear infinite reverse;
}

.write-card:hover::before {
    opacity: 0.1;
}

.write-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.write-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.write-text:nth-child(2) {
    animation-delay: 0.3s;
}

.write-text strong {
    color: var(--accent);
    font-weight: 600;
}

.medium-cta {
    margin-top: 4px;
    text-align: center;
}

.medium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.medium-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.medium-link:hover::before {
    left: 100%;
}

.medium-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.3);
}

.medium-link i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.medium-link:hover i:first-child {
    transform: rotate(360deg) scale(1.1);
}

.medium-link:hover i:last-child {
    transform: rotate(45deg) scale(1.2);
}

/* Skills Card */
.skills-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 2px solid var(--border-color);
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.skills-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.skill-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    position: relative;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--accent);
    transition: var(--transition-smooth);
}

.skill-item:hover .skill-icon i {
    transform: rotate(360deg) scale(1.1);
}

.skill-content {
    flex: 1;
}

.skill-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.skill-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.badge:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent);
}

/* Animations */
@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-section {
    padding: 60px 60px;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 100%;
    margin: 0;
}

.project-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-visual {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8D5CC 0%, #FFE8DC 100%);
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
}

.project-content {
    padding: 32px;
    flex: 1;
}

.project-large {
    grid-row: span 2;
}

.project-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

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

.project-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    padding: 120px 60px;
    text-align: center;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    padding: 20px 48px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    transition: transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        background-color 0.3s ease,
        border-color 0.3s ease;
    cursor: default;
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.3);
}

.contact-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 107, 74, 0.4);
}

.contact-cta i {
    font-size: 1.8rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-cta:hover i {
    transform: rotate(45deg) scale(1.2);
}

.contact-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.contact-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-links a:hover {
    color: var(--accent);
}

.link-divider {
    color: var(--border-color);
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    padding: 40px 60px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-quote {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
}

.quote-text {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
}

.song-marquee {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.song-item {
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.song-item i {
    font-size: 1rem;
    color: var(--accent);
}

.song-item:hover {
    color: var(--accent);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer-fun {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-fact,
.footer-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-fact strong,
.footer-stats strong {
    color: var(--text-primary);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .main-nav {
        padding: 12px 20px;
        width: calc(100% - 40px);
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        padding: 0 20px;
    }

    .nav-links {
        gap: 16px;
        /* Reduced gap for tablet */
    }

    .nav-cta {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Keep list items at desktop size */
    .list-item {
        padding: 12px !important;
    }

    .list-item i {
        font-size: 1.6rem !important;
    }

    .item-title {
        font-size: 0.9rem !important;
    }

    .item-sub {
        font-size: 0.75rem !important;
    }

    /* Reset grid placements with higher specificity */
    .bento-grid>.bento-title {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }

    .bento-grid>.bento-photo {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bento-grid>.bento-list {
        grid-column: span 1 !important;
        grid-row: span 2 !important;
    }

    .list-scroll {
        max-height: none;
        gap: 20px;
    }

    .list-item {
        padding: 24px;
        /* Even more padding */
    }

    .list-item i {
        font-size: 1.8rem;
    }

    .item-title {
        font-size: 1.1rem;
    }

    .item-sub {
        font-size: 0.85rem;
    }

    .bento-grid>.bento-bio {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bento-grid>.bento-previous {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bento-grid>.bento-row3-stack {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bento-grid>.bento-social-row {
        grid-column: span 2 !important;
        grid-row: auto !important;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        /* Ensures icons and ring share a horizontal center line */
        gap: 40px;
        padding: 40px;
        background: var(--bg-card-alt);
        border-radius: var(--radius-lg);
    }

    .bento-social-row .scroll-indicator {
        width: 140px;
        /* Slightly larger for tablet to match icon cluster better */
        height: 140px;
    }

    .bento-social-grid {
        flex: none;
        width: auto;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: set max-height for list-scroll */
@media (min-width: 1161px) {
    .list-scroll {
        max-height: 220px;
    }
}

/* Screens 1160px and below: no max-height limit */
@media (max-width: 1160px) {
    .list-scroll {
        max-height: none;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .list-scroll {
        max-height: none;
    }

    .main-nav {
        padding: 8px 16px;
        width: calc(100% - 24px);
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 100px 16px 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Reset everything to single column */
    .bento-grid>.bento-title,
    .bento-grid>.bento-photo,
    .bento-grid>.bento-list,
    .bento-grid>.bento-bio,
    .bento-grid>.bento-previous,
    .bento-grid>.bento-row3-stack,
    .bento-grid>.bento-social-row {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .bento-title {
        padding: 24px;
    }

    .bento-title h1 {
        font-size: 1.8rem;
    }

    .bento-photo {
        aspect-ratio: 1;
        min-height: 280px;
    }

    .bento-list {
        max-height: none;
    }

    .list-scroll {
        max-height: 300px;
    }

    .bento-social-row {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 32px;
        padding: 40px !important;
        background: var(--bg-card-alt);
        border-radius: var(--radius-lg);
    }

    .bento-social-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        max-width: 280px;
        gap: 16px;
    }

    .bento-social-grid .social-square {
        width: 100%;
        height: unset;
        aspect-ratio: 1;
        padding: 20px;
    }

    .scroll-indicator {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }

    .work-section,
    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 60px 16px;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 40px;
    }

    .timeline-line {
        left: 15px;
    }

    .timeline-item::before {
        left: 9px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cta {
        font-size: 1.2rem;
        padding: 14px 24px;
        width: 100%;
        text-align: center;
    }

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

    .link-divider {
        display: none;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .bento-social-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-toggle {
        top: auto;
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        background: var(--bg-card);
        border-color: var(--accent);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}