/* Modern Portfolio CSS - Radical Monochrome Chaos */
:root {
    /* Colors - Pure Monochrome */
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --accent-color: #cccccc;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-light: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --white-glow: rgba(255, 255, 255, 0.2);

    /* Gradients - Monochrome */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    --gradient-secondary: linear-gradient(135deg, #e5e5e5 0%, #ffffff 100%);
    --gradient-accent: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);

    /* Responsive Spacing */
    --section-padding: clamp(50px, 8vw, 100px) 0;
    --container-padding: 0 clamp(15px, 4vw, 20px);
    --border-radius: 16px;
    --border-radius-lg: 24px;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Responsive Typography */
    --text-size-h3: clamp(0.95rem, 2.5vw, 1.5rem);
    --text-size-p: clamp(0.8rem, 2vw, 1rem);
    --text-size-card-h3: clamp(0.95rem, 2.2vw, 1.3rem);
    --text-size-card-p: clamp(0.75rem, 1.8vw, 0.95rem);

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure text elements wrap properly */
p, h1, h2, h3, h4, h5, h6, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.015) 25%, rgba(255, 255, 255, 0.015) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.015) 75%, rgba(255, 255, 255, 0.015) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.015) 25%, rgba(255, 255, 255, 0.015) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.015) 75%, rgba(255, 255, 255, 0.015) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.4;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
    opacity: 0.3;
    filter: blur(80px);
}

.orb-2 {
    width: min(500px, 60vw);
    height: min(500px, 60vw);
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -10%;
    left: -15%;
    animation-delay: 7s;
    opacity: 0.4;
    filter: blur(80px);
}

.orb-3 {
    width: min(400px, 50vw);
    height: min(400px, 50vw);
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: 50%;
    right: 30%;
    animation-delay: 14s;
    opacity: 0.5;
    filter: blur(80px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    box-sizing: border-box;
}

/* Radical Flow - Sections at Angles */
section {
    position: relative;
    transform-origin: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Every other section tilts */
section:nth-child(even) {
    transform: rotate(-0.5deg);
}

section:nth-child(odd) {
    transform: rotate(0.5deg);
}

/* Reset for hero and nav */
.hero, nav {
    transform: rotate(0) !important;
}

section > .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

/* Breathing room between sections */
section {
    padding: var(--section-padding);
    margin: 3rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section - Bento Box Chaos */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -10%;
    right: -10%;
    bottom: -5%;
    background: linear-gradient(125deg, transparent 40%, var(--bg-tertiary) 40%, var(--bg-tertiary) 60%, transparent 60%);
    transform: skewY(-2deg);
    z-index: 0;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, minmax(100px, auto));
    gap: clamp(15px, 2vw, 25px);
    position: relative;
}

/* Hero Bento Boxes */
.hero-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-box:hover::before {
    opacity: 1;
}

.hero-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Title Box - Large, spans most of top */
.hero-title-box {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    justify-content: flex-end;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Description Box - Medium */
.hero-desc-box {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
}

/* Image Box - Square-ish */
.hero-image-box {
    grid-column: 1 / 4;
    grid-row: 3 / 6;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

/* Skills Box - Wide */
.hero-skills-box {
    grid-column: 4 / 10;
    grid-row: 3 / 5;
}

/* Stats Box - Tall narrow */
.hero-stats-box {
    grid-column: 10 / 13;
    grid-row: 3 / 6;
    justify-content: space-evenly;
}

/* CTA Box - Bottom */
.hero-cta-box {
    grid-column: 4 / 10;
    grid-row: 5 / 7;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Hero Title Box Styling */
.hero-title-box .greeting {
    display: block;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title-box .name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -2px;
}

.hero-title-box .role {
    display: block;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    margin-top: 1rem;
    min-height: 1.8em;
}

/* Hero Desc Box */
.hero-desc-box p {
    margin: 0;
    line-height: 1.6;
}

/* Hero Image Box */
.hero-image-box {
    position: relative;
}

.hero-image-box img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.3s ease;
}

.hero-image-box:hover img {
    filter: grayscale(0%) contrast(1);
}

.image-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--glass-border);
    pointer-events: none;
    transition: all 0.3s ease;
}

.hero-image-box:hover .image-border {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-color: var(--primary-color);
}

/* Hero Skills Box */
.hero-skills-box h3 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.skill-tags span:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Stats Box */
.quick-stat {
    text-align: center;
    padding: 1rem 0;
}

.stat-num {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Hero CTA Box */
.hero-cta-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 24px);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 700;
    border: 2px solid var(--text-primary);
}

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

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn::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: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

/* Profile Card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    width: min(300px, 80vw);
    height: min(300px, 80vw);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 0;
    background: var(--gradient-primary);
    z-index: -1;
    animation: rotate 10s linear infinite;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    opacity: 0.5;
}

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

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float-icon 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 0; right: 0; }
.floating-icon:nth-child(2) { top: 50%; right: -30px; }
.floating-icon:nth-child(3) { bottom: 0; right: 0; }
.floating-icon:nth-child(4) { top: 50%; left: -30px; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    position: relative;
    padding-left: 30px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

/* About Section - Diagonal Split */
.about {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: linear-gradient(165deg, transparent 48%, var(--bg-secondary) 48%, var(--bg-secondary) 52%, transparent 52%);
    z-index: 0;
    pointer-events: none;
    transform: skewY(-1deg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: start;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.about-text,
.about-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.text-block {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.text-block:hover {
    border-left-color: var(--primary-color);
}

/* Enable hover effects on larger screens only */
@media (hover: hover) and (min-width: 501px) {
    .text-block:hover {
        transform: translateX(5px);
    }

    .interest-card:hover,
    .portfolio-card:hover,
    .blog-card:hover,
    .skill-item:hover {
        transform: translateY(-5px);
    }
}

.text-block h3 {
    font-size: var(--text-size-h3);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-size-p);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all var(--transition-normal);
}

.stat-item:nth-child(1) {
    transform: translateY(-20px);
}

.stat-item:nth-child(3) {
    transform: translateY(-20px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.stat-item:nth-child(1):hover {
    transform: translateY(-30px);
}

.stat-item:nth-child(3):hover {
    transform: translateY(-30px);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-number::after {
    content: "+";
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Code Window */
.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.code-window:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 rgba(255, 255, 255, 0.08);
}

.window-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f57; }
.minimize { background: #ffbd2e; }
.maximize { background: #28ca42; }

.window-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.6;
    overflow-x: auto;
    word-wrap: break-word;
}

.keyword { color: #ff79c6; }
.class-name { color: #8be9fd; }
.function { color: #50fa7b; }
.param { color: #ffb86c; }
.string { color: #f1fa8c; }

/* Skills Section */
.skills-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.skill-category {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.skill-category.active {
    background: var(--bg-primary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.skill-category:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    position: relative;
}

/* Scattered positioning */
.skill-item:nth-child(2) {
    transform: translateY(20px);
}

.skill-item:nth-child(4) {
    transform: translateY(20px);
}

.skill-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.skill-item:nth-child(2):hover {
    transform: translateY(12px);
}

.skill-item:nth-child(4):hover {
    transform: translateY(12px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

.skill-percentage {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Beyond Code Section - Diagonal Arrangement */
.beyond-code {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.beyond-code::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: linear-gradient(-165deg, transparent 47%, var(--bg-tertiary) 47%, var(--bg-tertiary) 53%, transparent 53%);
    z-index: 0;
    pointer-events: none;
    transform: skewY(1deg);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Diagonal stagger effect */
.interest-card:nth-child(1) {
    transform: translate(-10px, -30px);
}

.interest-card:nth-child(2) {
    transform: translate(0, -15px);
}

.interest-card:nth-child(3) {
    transform: translate(10px, 0);
}

.interest-card:nth-child(4) {
    transform: translate(-10px, 15px);
}

.interest-card:nth-child(5) {
    transform: translate(0, 30px);
}

.interest-card:nth-child(6) {
    transform: translate(10px, 45px);
}

.interest-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 2rem;
    text-align: left;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.interest-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    opacity: 0.1;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transition: all var(--transition-normal);
}

.interest-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.interest-card:nth-child(1):hover {
    transform: translate(-15px, -35px);
}

.interest-card:nth-child(2):hover {
    transform: translate(-5px, -20px);
}

.interest-card:nth-child(3):hover {
    transform: translate(5px, -5px);
}

.interest-card:nth-child(4):hover {
    transform: translate(-15px, 10px);
}

.interest-card:nth-child(5):hover {
    transform: translate(-5px, 25px);
}

.interest-card:nth-child(6):hover {
    transform: translate(5px, 40px);
}

.interest-card:hover::before {
    width: 80px;
    height: 80px;
    opacity: 0.2;
}

.interest-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 1.5rem 0;
    background: var(--gradient-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--bg-primary);
    transition: all var(--transition-normal);
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%);
}

.interest-card:hover .interest-icon {
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--copper-glow);
}

.interest-card h3 {
    color: var(--text-primary);
    font-size: var(--text-size-card-h3);
    margin-bottom: 1rem;
    font-weight: 600;
}

.interest-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-size-card-p);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -20px;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
}

.period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.filter-btn:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

/* Masonry effect - different heights */
.portfolio-card:nth-child(1) {
    grid-row: span 2;
}

.portfolio-card:nth-child(3) {
    grid-row: span 2;
}

.portfolio-card:nth-child(5) {
    grid-row: span 2;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--primary-color) transparent transparent;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-10px) translateX(-5px);
    border-color: var(--primary-color);
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.1);
}

.portfolio-card:hover::after {
    opacity: 0.5;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.card-content {
    padding: 1.5rem;
}

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

.card-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.blog-link:hover {
    gap: 1rem;
}

/* Contact Section */
/* Contact Links Grid - Asymmetric */
.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 900px;
    margin: 0 auto;
    margin-top: 3rem;
}

.contact-link-card:nth-child(1) {
    transform: translateX(-20px);
}

.contact-link-card:nth-child(2) {
    transform: translateX(20px);
}

.contact-link-card:nth-child(3) {
    transform: translateX(-20px);
}

.contact-link-card:nth-child(4) {
    transform: translateX(20px);
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.contact-link-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: -8px 0 30px rgba(255, 255, 255, 0.1);
}

.contact-link-card:nth-child(1):hover {
    transform: translateX(-25px);
}

.contact-link-card:nth-child(2):hover {
    transform: translateX(25px);
}

.contact-link-card:nth-child(3):hover {
    transform: translateX(-25px);
}

.contact-link-card:nth-child(4):hover {
    transform: translateX(25px);
}

.contact-link-card:hover::before {
    transform: scaleY(1);
}

.contact-link-card .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    transition: var(--transition-normal);
    flex-shrink: 0;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
}

.contact-link-card:hover .contact-icon {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.contact-link-card .contact-details {
    flex: 1;
}

.contact-link-card .contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-link-card .contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

/* Philosophy Quote Section */
.philosophy-section {
    background: var(--bg-primary);
    padding: clamp(60px, 10vw, 100px) 0;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--mystery-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.philosophy-quote {
    margin: 0;
    padding: 0;
}

.philosophy-quote p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 300;
    font-style: italic;
    margin: 0 0 2rem 0;
    position: relative;
}

.philosophy-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

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

/* Medium screens - Stack About section earlier */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-block {
        padding-left: 1.5rem;
    }
}

/* ========== TABLET (≤1024px) ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, minmax(80px, auto));
    }

    .hero-title-box {
        grid-column: 1 / 9;
        grid-row: 1 / 3;
    }

    .hero-desc-box {
        grid-column: 1 / 9;
        grid-row: 3 / 4;
    }

    .hero-image-box {
        grid-column: 1 / 4;
        grid-row: 4 / 7;
    }

    .hero-skills-box {
        grid-column: 4 / 9;
        grid-row: 4 / 6;
    }

    .hero-stats-box {
        grid-column: 4 / 9;
        grid-row: 6 / 7;
        flex-direction: row;
        justify-content: space-around;
    }

    .hero-cta-box {
        grid-column: 1 / 9;
        grid-row: 7 / 9;
    }
}

/* ========== MOBILE (≤768px) ========== */
@media (max-width: 768px) {
    /* Hero - Stack on Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .hero-title-box,
    .hero-desc-box,
    .hero-image-box,
    .hero-skills-box,
    .hero-stats-box,
    .hero-cta-box {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero-stats-box {
        flex-direction: row;
    }

    .hero-cta-box {
        flex-direction: column;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-marker {
        left: 0 !important;
        right: auto !important;
    }

    .contact-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Reset diagonal positioning on mobile */
    .interest-card {
        transform: translate(0, 0);
    }

    .interest-card:hover {
        transform: translateY(-5px);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        transform: translateY(0);
    }

    .contact-links-grid {
        grid-template-columns: 1fr;
    }

    /* Reset horizontal positioning on mobile */
    .contact-link-card {
        transform: translateX(0);
    }

    .contact-link-card:hover {
        transform: translateY(-5px);
    }

    .portfolio-grid {
        grid-auto-rows: auto;
    }

    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(5) {
        grid-row: span 1;
    }

    .footer-content {
        text-align: center;
        flex-direction: column;
    }

    /* Hide floating icons on tablets */
    .floating-elements {
        display: none;
    }

    /* Touch-friendly interactions */
    .btn:active,
    .skill-category:active,
    .filter-btn:active,
    .action-btn:active,
    .social-link:active {
        transform: scale(0.95);
    }

    /* Improved touch targets */
    .social-link {
        width: 48px;
        height: 48px;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Enhanced touch feedback for cards */
    .portfolio-card:active,
    .blog-card:active,
    .skill-item:active {
        transform: scale(0.98);
    }

    /* Better spacing for touch interactions */
    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* ========== SMALL MOBILE (≤500px) ========== */
@media (max-width: 500px) {
    :root {
        --section-padding: 35px 0;
        --container-padding: 0 10px;
    }

    /* Disable section rotation on small screens */
    section:nth-child(even),
    section:nth-child(odd) {
        transform: rotate(0) !important;
    }

    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }

    .about,
    .beyond-code,
    section {
        overflow-x: hidden;
    }

    .about-content {
        gap: 1.5rem;
        width: 100%;
    }

    .about-text,
    .about-visual {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .text-block {
        padding-left: 0.6rem;
        margin-bottom: 1.3rem;
        width: 100%;
        max-width: 100%;
    }

    .text-block h3 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .text-block p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .interest-card {
        padding: 1.2rem;
        width: 100%;
    }

    .interest-card h3 {
        font-size: 1rem;
    }

    .interest-card p {
        font-size: 0.8rem;
    }

    .interests-grid {
        gap: 1.2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-box {
        padding: 1.2rem;
    }

    .contact-link-card {
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .contact-link-card .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .code-content {
        font-size: 0.7rem;
        padding: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.2rem 1rem;
    }
}

/* ========== MOBILE MEDIUM (≤600px) ========== */
@media (max-width: 600px) {
    :root {
        --section-padding: clamp(30px, 6vw, 50px) 0;
        --container-padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .skills-categories {
        flex-direction: column;
        align-items: center;
    }

    .skill-category {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .timeline-item {
        padding-left: 2rem !important;
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .text-block {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .text-block h3 {
        font-size: 1.1rem;
    }

    .text-block p {
        font-size: 0.9rem;
    }

    .interest-card {
        padding: 1.5rem;
    }

    .interest-card h3 {
        font-size: 1.1rem;
    }

    .interest-card p {
        font-size: 0.85rem;
    }
}

/* ========== MOBILE SMALL (≤480px) ========== */
@media (max-width: 480px) {
    :root {
        --section-padding: 30px 0;
        --container-padding: 0 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .skills-categories {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .profile-card {
        width: min(250px, 90vw);
        height: min(250px, 90vw);
    }

    .code-content {
        font-size: 0.75rem;
        padding: 0.8rem;
        line-height: 1.4;
    }

    .text-block {
        padding-left: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .text-block h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .text-block p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .interest-card {
        padding: 1.2rem;
    }

    .interest-card h3 {
        font-size: 1rem;
    }

    .interest-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .hero-box {
        padding: 1.2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

/* ========== MOBILE EXTRA SMALL (≤400px) ========== */
@media (max-width: 400px) {
    .container {
        padding: 0 8px;
    }

    .text-block {
        padding-left: 0.5rem;
        border-left-width: 1px;
    }

    .text-block h3 {
        font-size: 0.95rem;
    }

    .text-block p {
        font-size: 0.82rem;
    }
}

/* ========== MOBILE MINI (≤360px) ========== */
@media (max-width: 360px) {
    :root {
        --section-padding: 25px 0;
        --container-padding: 0 8px;
    }

    .container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }

    .profile-card {
        width: min(200px, 95vw);
        height: min(200px, 95vw);
    }

    .floating-elements {
        display: none;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .timeline-item {
        padding-left: 1.5rem !important;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
        left: -15px !important;
    }

    .about-text,
    .about-visual {
        width: 100%;
        max-width: 100%;
    }

    .text-block {
        padding-left: 0.4rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .text-block h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        letter-spacing: 0.5px;
    }

    .text-block p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .interest-card {
        padding: 1rem;
        width: 100%;
    }

    .interest-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .interest-card p {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .hero-box {
        padding: 1rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }

    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        padding-left: 20px;
    }

    .section-subtitle::before {
        width: 15px;
    }

    .code-content {
        font-size: 0.65rem;
        padding: 0.6rem;
        line-height: 1.3;
    }

    .stats-grid {
        gap: 0.8rem;
    }

    .stat-item {
        padding: 1.2rem;
    }
}

/* ========== MOBILE MICRO (≤320px) ========== */
@media (max-width: 320px) {
    :root {
        --container-padding: 0 5px;
        --section-padding: 20px 0;
    }

    section:nth-child(even),
    section:nth-child(odd) {
        transform: rotate(0) !important;
    }

    .container {
        padding: 0 5px;
    }

    .about-text,
    .about-visual {
        padding: 0;
        margin: 0;
    }

    .text-block {
        padding-left: 0.25rem;
        padding-right: 0;
        margin-bottom: 0.8rem;
        border-left-width: 1px;
    }

    .text-block h3 {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0;
    }

    .text-block p {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .interest-card {
        padding: 0.7rem;
    }

    .interest-card h3 {
        font-size: 0.82rem;
    }

    .interest-card p {
        font-size: 0.68rem;
    }

    .hero-box {
        padding: 0.7rem;
    }

    .code-content {
        font-size: 0.58rem;
        padding: 0.5rem;
        line-height: 1.2;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Width Utilities */
.full-width {
    width: 100%;
    max-width: 100%;
}

/* Disable transforms on small screens */
@media (max-width: 500px) {
    .no-transform-mobile {
        transform: none !important;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-slow);
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}