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

:root {
    --bg-primary: #1a1d2e;
    --bg-secondary: #22263a;
    --bg-tertiary: #2a2f45;
    --bg-card: #323851;
    --text-primary: #f0f2f8;
    --text-secondary: #c5c9dc;
    --text-muted: #9096af;
    --accent-primary: #a8daff;
    --accent-secondary: #c7a3ff;
    --accent-tertiary: #7dd3c0;
    --accent-quaternary: #ffc896;
    --accent-soft: #9db4ff;
    --accent-rose: #ffb3c6;
    --soft-blue: #a8daff;
    --soft-lavender: #c7a3ff;
    --soft-mint: #7dd3c0;
    --soft-peach: #ffc896;
    --soft-rose: #ffb3c6;
    --border-color: #3d4357;
    --border-light: #4a5070;
    --hover-bg: rgba(168, 218, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

* {
    max-width: 100%;
}

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

/* Prevent text overflow on mobile */
p, h1, h2, h3, h4, h5, h6, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Animated Background with Soft Rotating Orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(168, 218, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(199, 163, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(125, 211, 192, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(255, 200, 150, 0.06) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
    animation: floatingOrbs 25s ease-in-out infinite;
}

@keyframes floatingOrbs {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: translate(5%, 5%) rotate(120deg);
        opacity: 0.9;
    }
    66% {
        transform: translate(-5%, 3%) rotate(240deg);
        opacity: 0.95;
    }
}

body > * {
    position: relative;
    z-index: 10;
}

/* Subtle mouse tracking glow */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 218, 255, 0.08) 0%, rgba(199, 163, 255, 0.04) 20%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--soft-blue);
    box-shadow: var(--shadow-md);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    padding: 10px 15px;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--soft-lavender);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--soft-lavender);
}

.nav-menu a:hover::after {
    width: calc(100% - 30px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navbar .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 62px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 62px);
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 40px 20px;
        gap: 15px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-tertiary);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

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

/* Hero Canvas Background */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Floating Code Snippets */
.code-float {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--soft-lavender);
    opacity: 0.3;
    pointer-events: none;
    white-space: nowrap;
    animation: floatCode 20s infinite ease-in-out;
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(20px) rotate(2deg);
        opacity: 0.6;
    }
}

/* Geometric Shapes */
.hero-shape {
    position: absolute;
    border: 2px solid var(--soft-mint);
    opacity: 0.15;
    pointer-events: none;
    animation: rotateShape 15s infinite linear;
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.25;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.15;
    }
}

.hero-shape.circle {
    border-radius: 50%;
}

.hero-shape.square {
    border-radius: 4px;
}

/* Tech Icons Floating */
.hero-tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.2;
    pointer-events: none;
    animation: floatTech 25s infinite ease-in-out;
}

@keyframes floatTech {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-40px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-50px) rotate(270deg);
        opacity: 0.5;
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--soft-lavender);
    z-index: -1;
    animation: glitchTitle 3s infinite;
}

@keyframes glitchTitle {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    92% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    94% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    96% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
    }
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out, textGlow 2s ease-in-out infinite;
}

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(168, 218, 255, 0.3),
                     0 0 20px rgba(168, 218, 255, 0.2),
                     0 0 30px rgba(168, 218, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 218, 255, 0.5),
                     0 0 30px rgba(168, 218, 255, 0.3),
                     0 0 40px rgba(168, 218, 255, 0.2);
    }
}

.hero-subtitle {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 600;
    color: var(--soft-mint);
    margin-bottom: 35px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.1s both, typeWriter 3s steps(20) 0.5s both;
    overflow: hidden;
    border-right: 4px solid var(--soft-mint);
    white-space: nowrap;
    max-width: fit-content;
}

@keyframes typeWriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-subtitle::after {
    content: '';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-description {
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 850px;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

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

.btn-primary {
    background: var(--soft-lavender);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(199, 163, 255, 0.3);
}

.btn-primary:hover {
    background: var(--soft-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 218, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--soft-lavender);
    border: 2px solid var(--soft-lavender);
}

.btn-outline:hover {
    background: var(--soft-lavender);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(199, 163, 255, 0.3);
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Work Section */
.work-section {
    padding: 120px 0;
}

.projects-section {
    background: var(--bg-primary);
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
}

.section-header {
    max-width: 800px;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--soft-lavender);
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soft-mint);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.portfolio-item {
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
}
.portfolio-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}


.portfolio-item:hover .portfolio-image {
    border-color: var(--soft-lavender);
    box-shadow: 0 8px 30px rgba(199, 163, 255, 0.2);
}

/* Project Category Badges */
.project-category {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 0 0 0 12px;
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid transparent;
    border-top: none;
    border-right: none;
}

.project-category.fullstack {
    background: rgba(168, 218, 255, 0.15);
    color: var(--bg-primary);
    border-color: var(--soft-blue);
}

.project-category.ml {
    background: rgba(199, 163, 255, 0.15);
    color: var(--soft-lavender);
    border-color: var(--soft-lavender);
}

.project-category.devops {
    background: rgba(125, 211, 192, 0.15);
    color: var(--bg-primary);
    border-color: var(--soft-mint);
}

.portfolio-item:hover .project-category {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-item:hover .project-category.fullstack {
    background: rgba(168, 218, 255, 0.25);
    border-color: var(--soft-blue);
    box-shadow: 0 8px 25px rgba(168, 218, 255, 0.3);
}

.portfolio-item:hover .project-category.ml {
    background: rgba(199, 163, 255, 0.25);
    border-color: var(--soft-lavender);
    box-shadow: 0 8px 25px rgba(199, 163, 255, 0.3);
}

.portfolio-item:hover .project-category.devops {
    background: rgba(125, 211, 192, 0.25);
    border-color: var(--soft-mint);
    box-shadow: 0 8px 25px rgba(125, 211, 192, 0.3);
}

.portfolio-item:hover .project-category.design {
    background: rgba(255, 200, 150, 0.25);
    border-color: var(--soft-peach);
    box-shadow: 0 8px 25px rgba(255, 200, 150, 0.3);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--soft-blue);
    background: var(--bg-tertiary);
    position: relative;
    transition: var(--transition);
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(168, 218, 255, 0.1);
    transition: left 0.5s ease;
}

.portfolio-item:hover .placeholder-image {
    transform: scale(1.05);
    color: var(--soft-lavender);
}

.portfolio-item:hover .placeholder-image::before {
    left: 100%;
}

.portfolio-year {
    font-size: 12px;
    color: var(--soft-peach);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-title {
    color: var(--soft-lavender);
}

.portfolio-tech {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 5px 0;
    font-style: italic;
}

.portfolio-link {
    color: var(--soft-blue);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 5px;
    display: inline-block;
    font-weight: 600;
}

.portfolio-link:hover {
    color: var(--soft-mint);
    transform: translateX(5px);
}

/* Tools Section */
.tools-section {
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.tools-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tool-item {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
}

/* Special styling for light-colored logos on dark background */
.tool-item img[alt="Express"],
.tool-item img[alt="Django"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.tool-item:hover {
    background: var(--hover-bg);
    color: var(--soft-lavender);
    border-color: var(--soft-lavender);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(199, 163, 255, 0.2);
}

/* Design Grid */
.design-categories {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.design-item {
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.design-item:hover {
    transform: scale(1.05);
}

.design-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Experience Section */
.experience-section {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--soft-lavender);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -58.5px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--soft-lavender);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--border-color);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: var(--soft-mint);
    box-shadow: 0 0 0 4px var(--soft-lavender), 0 0 20px var(--soft-lavender);
    transform: scale(1.3);
}

.timeline-content {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--border-color);
}

.timeline-item:hover .timeline-content {
    border-color: var(--soft-lavender);
    box-shadow: 0 10px 40px rgba(199, 163, 255, 0.15);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    font-size: 13px;
    color: var(--soft-peach);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.timeline-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--soft-mint);
    margin-bottom: 15px;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: rgba(168, 218, 255, 0.1);
    border: 1px solid var(--soft-lavender);
    color: var(--soft-lavender);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--soft-lavender);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 35px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: -41.5px;
        width: 16px;
        height: 16px;
        border: 3px solid var(--bg-primary);
    }
    
    .timeline-item {
        padding-left: 25px;
    }
    
    .timeline-content::before {
        left: -10px;
    }
}

/* Skills Section */
.skills-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
}

.skills-section .section-description {
    max-width: 700px;
    margin-bottom: 60px;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skill-category {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }
.skill-category:nth-child(7) { animation-delay: 0.7s; }

.skill-category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 20px;
}

.skill-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--soft-lavender);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}

.skill-item {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 24px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: default;
}

.skill-item:hover {
    border-color: var(--soft-lavender);
    background: rgba(199, 163, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(199, 163, 255, 0.15);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition);
}

.skill-item:hover .skill-name {
    color: var(--soft-lavender);
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 40px;
    transition: var(--transition);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--soft-lavender);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--soft-lavender);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(199, 163, 255, 0.15);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    color: var(--soft-mint);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 12px 0 12px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--soft-lavender);
    font-weight: bold;
    transition: var(--transition);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    color: var(--text-primary);
    padding-left: 30px;
}

.service-list li:hover::before {
    color: var(--soft-mint);
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.1);
    transition: left 0.3s ease;
}

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

.contact-btn svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

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

.contact-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.linkedin-btn {
    border-color: var(--soft-blue);
}

.linkedin-btn:hover {
    background: var(--soft-blue);
    border-color: var(--soft-blue);
    color: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(168, 218, 255, 0.3);
}

.github-btn {
    border-color: var(--accent-soft);
}

.github-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(91, 141, 239, 0.3);
}

.email-btn {
    border-color: var(--soft-mint);
}

.email-btn:hover {
    background: var(--soft-mint);
    border-color: var(--soft-mint);
    color: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(125, 211, 192, 0.3);
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-btn {
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 2px solid var(--soft-lavender);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--soft-lavender);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-mint);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--soft-lavender);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--soft-lavender);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--soft-lavender);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--soft-mint);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--soft-lavender);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, border-color 0.3s ease;
    background: rgba(199, 163, 255, 0.1);
    transform-origin: center;
}

.custom-cursor.cursor-hover {
    transform: scale(1.5);
    border-color: var(--soft-mint);
    background: rgba(125, 211, 192, 0.2);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* Hide default cursor on desktop */
@media (min-width: 769px) {
    a, button, .btn, .portfolio-item, .tool-item, .service-card, .contact-btn, .nav-menu a {
        cursor: none;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* General */
    .container {
        padding: 0 20px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
        min-height: 100vh;
        height: auto;
    }
    
    .hero-title {
        font-size: clamp(38px, 12vw, 58px) !important;
        margin-bottom: 18px;
        letter-spacing: -1px;
        line-height: 1.15;
    }
    
    .hero-title::before {
        display: none; /* Disable glitch effect on mobile */
    }
    
    .hero-subtitle {
        font-size: clamp(16px, 5vw, 24px) !important;
        margin-bottom: 22px;
        letter-spacing: 1.5px;
        white-space: normal !important;
        border-right: none !important;
        animation: fadeInUp 0.8s ease-out 0.1s both !important;
        max-width: 100%;
    }
    
    .hero-subtitle::after {
        display: none;
    }
    
    .hero-description {
        font-size: 16px !important;
        line-height: 1.65;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 13px;
    }
    
    /* Disable complex animations on mobile */
    .code-float,
    .hero-shape,
    .hero-tech-icon {
        display: none;
    }
    
    /* Sections */
    .work-section,
    .experience-section,
    .skills-section,
    .services-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: clamp(28px, 8vw, 36px) !important;
        margin-bottom: 15px;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .section-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .portfolio-item {
        width: 100%;
    }
    
    .portfolio-image {
        aspect-ratio: 16/10;
        margin-bottom: 15px;
    }
    
    .portfolio-image img {
        object-fit: cover;
    }
    
    .project-category {
        padding: 8px 14px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .portfolio-title {
        font-size: 18px;
    }
    
    .portfolio-tech {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 25px;
        margin-top: 40px;
    }
    
    .timeline::before {
        width: 2px;
        left: 0;
    }
    
    .timeline-item {
        padding-left: 25px;
        margin-bottom: 40px;
    }
    
    .timeline-marker {
        left: -31px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content::before {
        left: -10px;
        top: 10px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid var(--border-color);
    }
    
    .timeline-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .timeline-company {
        font-size: 15px;
    }
    
    .timeline-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .timeline-date {
        font-size: 12px;
    }
    
    .timeline-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    /* Skills Section */
    .skills-categories {
        gap: 40px;
    }
    
    .skill-category-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .skill-item {
        padding: 16px 10px;
    }
    
    .skill-icon {
        width: 36px;
        height: 36px;
    }
    
    .skill-name {
        font-size: 12px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .service-list li {
        font-size: 14px;
        padding: 10px 0 10px 15px;
    }
    
    /* Contact Section */
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    /* Tools Section */
    .tools-grid {
        gap: 12px;
    }
    
    .tool-item {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .tool-item img {
        width: 20px;
        height: 20px;
    }
    
    /* Design Grid */
    .design-categories {
        gap: 50px;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Subsection titles */
    .subsection-title {
        font-size: 20px;
        margin-bottom: 25px;
        letter-spacing: 1.5px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
    }
    
    .hero-description {
        font-size: 15px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .skill-item {
        padding: 12px 8px;
    }
    
    .skill-icon {
        width: 32px;
        height: 32px;
    }
    
    .skill-name {
        font-size: 11px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    
    .portfolio-title {
        font-size: 16px;
    }
    
    .timeline-title {
        font-size: 16px;
    }
    
    .service-title {
        font-size: 18px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn,
    .contact-btn,
    .nav-menu a,
    .hamburger {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .portfolio-item:hover,
    .skill-item:hover,
    .service-card:hover,
    .tool-item:hover {
        transform: none;
    }
    
    /* Better tap highlighting */
    * {
        -webkit-tap-highlight-color: rgba(168, 218, 255, 0.2);
    }
    
    /* Prevent text selection on interactive elements */
    .hamburger,
    .btn,
    .contact-btn,
    .nav-menu a {
        -webkit-user-select: none;
        user-select: none;
    }
}
