:root {
    /* Dark mode color palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    
    --text-primary: #ffffff;
    --text-secondary: #b4b4c0;
    --text-tertiary: #8b8b9c;
    
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.7);
    
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.4), 0 0 80px rgba(59, 130, 246, 0.2);
    --glow-purple: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
    --glow-pink: 0 0 40px rgba(236, 72, 153, 0.4), 0 0 80px rgba(236, 72, 153, 0.2);
    --glow-multi: 0 0 60px rgba(59, 130, 246, 0.3), 0 0 120px rgba(139, 92, 246, 0.2), 0 0 180px rgba(236, 72, 153, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated background with enhanced gradients */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: gradientShift 30s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
    opacity: 0.5;
}

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

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* Floating gradient orbs with enhanced effects */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: float 25s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
    animation-name: float, pulse1;
    animation-duration: 25s, 8s;
    animation-iteration-count: infinite, infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s, 0s;
    animation-name: float, pulse2;
    animation-duration: 25s, 10s;
    animation-iteration-count: infinite, infinite;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s, 5s;
    animation-name: float, pulse3;
    animation-duration: 25s, 12s;
    animation-iteration-count: infinite, infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.85);
    }
}

@keyframes pulse1 {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

@keyframes pulse2 {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.65; }
}

@keyframes pulse3 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: padding;
}

header.compact {
    padding: 0.5rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    will-change: flex-direction, gap;
}

header.compact .profile-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)) border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.3);
    animation: fadeInDown 0.8s ease-out, photoGlow 4s ease-in-out infinite;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s ease, 
                box-shadow 0.4s ease;
    position: relative;
    flex-shrink: 0;
}

header.compact .profile-photo {
    width: 40px;
    height: 40px;
    border-width: 2px;
    animation: none;
    margin: 0;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(59, 130, 246, 0.5), 0 0 100px rgba(139, 92, 246, 0.3);
}

header.compact .profile-photo:hover {
    transform: scale(1.1);
}

@keyframes photoGlow {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.4), 0 0 60px rgba(236, 72, 153, 0.3);
    }
}

.header-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #b4b4c0 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: fadeInDown 1s ease-out, shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

header.compact .header-title {
    font-size: 1.25rem;
    margin: 0;
    text-align: right;
}

.header-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(236, 72, 153, 0.3) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    opacity: 0.7;
    z-index: -1;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Main content */
main {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

section {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@media (max-width: 480px) {
    section {
        margin-bottom: 1.5rem;
    }
}

section:nth-child(1) {
    animation-delay: 0.3s;
}

section:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Section titles */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

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

.title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: gradientFlow 3s ease infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* LinkedIn section */
.linkedin-section {
    text-align: center;
}

/* About section */
.about-section {
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}

.about-item {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
    height: 220px;
    overflow: hidden;
}

.about-item-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-item-link:hover {
    transform: translateY(-4px);
}

.about-box {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-sizing: border-box;
    height: 220px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-item:not(.about-box) {
    padding: 1rem;
}

.about-box:hover {
    border-color: transparent;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3), var(--glow-blue);
    background: rgba(255, 255, 255, 0.05);
}

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

.about-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    grid-row: 1;
    align-self: start;
}

.about-heading {
    grid-row: 3;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    min-height: 1.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.about-text {
    grid-row: 4;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

.about-item:hover .about-logo {
    transform: scale(1.05);
    opacity: 1;
}

.about-item-link:hover .linkedin-about-logo {
    transform: scale(1.1);
    opacity: 1;
}

.about-item-link .about-text {
    color: var(--accent-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-item-link:hover .about-text {
    color: var(--accent-primary-hover);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--glow-blue);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.linkedin-link:hover::before {
    width: 300px;
    height: 300px;
}

.linkedin-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-blue);
}

.linkedin-link:active {
    transform: translateY(-2px) scale(0.98);
}

.linkedin-link > * {
    position: relative;
    z-index: 1;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
    transform: scale(1.1);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.linkedin-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.project-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem;
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    min-height: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientFlow 3s ease infinite;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

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

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl), var(--glow-multi);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-12px) scale(1.02);
}

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

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

.project-card:hover .card-glow {
    opacity: 1;
    transform: rotate(180deg) scale(1.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.project-card:hover .project-logo {
    transform: scale(1.05);
    opacity: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    min-height: 0;
}

.project-badge {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
    min-height: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    background-size: 200% 100%;
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientFlow 3s ease infinite;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.project-link:hover {
    color: var(--accent-primary-hover);
    gap: 0.75rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.project-link:hover::after {
    width: 100%;
}

.link-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
}

.project-link:hover .link-arrow {
    transform: translateX(6px);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.8) 100%);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 4rem 1.5rem 3rem;
    }

    main {
        padding: 1.5rem 1.5rem 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

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

    .project-card {
        padding: 1.5rem;
        min-height: 0;
    }

    .project-card h3 {
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-height: 1.3;
    }

    .project-card p {
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .about-item {
        height: 160px;
        gap: 0.375rem;
    }

    .about-box {
        height: 160px;
        padding: 0.625rem;
    }

    .about-logo {
        width: 70px;
        height: 70px;
    }

    .about-heading {
        font-size: 0.875rem;
    }

    .about-text {
        font-size: 0.75rem;
    }

    .linkedin-link {
        font-size: 1rem;
        padding: 1rem 2rem;
        gap: 0.75rem;
    }

    .orb-1, .orb-2, .orb-3 {
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem 1rem;
    }

    main {
        padding: 1.5rem 1rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .about-item {
        height: 140px;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .about-box {
        height: 140px;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .about-logo {
        width: 50px;
        height: 50px;
    }

    .about-heading {
        font-size: 0.75rem;
        min-height: 1rem;
        line-height: 1.1;
    }

    .about-text {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .project-card {
        padding: 1rem;
        border-radius: 12px;
        gap: 0.5rem;
        min-height: 0;
    }

    .project-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .project-card p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }

    .project-link {
        font-size: 0.8125rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-animation,
    .gradient-orb {
        display: none;
    }
}
