/* vari */
:root {
    --color-bg: #fef9f3;
    --color-text: #2d2d2d;
    --color-text-secondary: #7a7a7a;
    --color-accent: #ff6b9d;
    --color-accent-hover: #ff4d85;
    --color-surface: #fff5eb;
    --color-border: #f0e4d7;
    --color-purple: #c9a9e9;
    --color-blue: #a8d8ea;
    --color-peach: #ffb88c;
    --color-mint: #b8e6d5;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.4s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* fluid typography - should scale w devices */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --font-size-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 4vw, 6rem);
    --spacing-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    --spacing-md: clamp(1rem, 0.8rem + 1vw, 2rem);
    --spacing-lg: clamp(2rem, 1.5rem + 2vw, 4rem);
    --spacing-xl: clamp(4rem, 3rem + 4vw, 8rem);
    --nav-width: clamp(150px, 15vw, 200px);
    --nav-width-mobile: 100%;
}

/* dark mode variables */
body.dark-mode {
    --color-bg: #1a1a1a;
    --color-text: #f0f0f0;
    --color-text-secondary: #b0b0b0;
    --color-accent: #ff8bb5;
    --color-accent-hover: #ff6b9d;
    --color-surface: #2d2d2d;
    --color-border: #3d3d3d;
    --color-purple: #d4b8f0;
    --color-blue: #b8e0f0;
    --color-peach: #ffc8a0;
    --color-mint: #c8f0e0;
}

/* dark mode styles */
body.dark-mode .nav {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-right: 2px solid var(--color-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dock-container {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
    border: 2px solid rgba(255, 139, 181, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body.dark-mode .dock-item {
    background: rgba(50, 50, 50, 0.8);
}

body.dark-mode .dock-item:hover {
    background: rgba(60, 60, 60, 0.9);
}

body.dark-mode .dock-icon {
    background: linear-gradient(135deg, rgba(255, 139, 181, 0.2), rgba(212, 184, 240, 0.2));
}

body.dark-mode .dock-label {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 139, 181, 0.3);
}

/* reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    position: relative;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* dark & light overlay transition */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

body.theme-transitioning::after {
    opacity: 1;
}

body.theme-transitioning.to-dark::after {
    background: linear-gradient(90deg, #ffcce0 0%, #ff6b9d 50%, transparent 100%);
    animation: sweepToDark 1.2s ease-in-out forwards;
}

body.theme-transitioning.to-light::after {
    background: linear-gradient(270deg, #ffcce0 0%, #ff6b9d 50%, #1a1a1a 100%);
    animation: sweepToLight 1.2s ease-in-out forwards;
}

@keyframes sweepToDark {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    50% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }
}

@keyframes sweepToLight {
    0% {
        clip-path: inset(0 0 0 100%);
    }
    50% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='topo' x='0' y='0' width='800' height='800' patternUnits='userSpaceOnUse'%3E%3C!-- Contour lines forming organic shapes --%3E%3Cpath d='M100,200 Q150,180 200,200 T300,200 Q350,220 400,200 T500,200 Q550,180 600,200 T700,200' stroke='%23e8b4a8' fill='none' stroke-width='1.2' opacity='0.4'/%3E%3Cpath d='M80,220 Q130,200 180,220 T280,220 Q330,240 380,220 T480,220 Q530,200 580,220 T680,220' stroke='%23e8b4a8' fill='none' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M60,240 Q110,220 160,240 T260,240 Q310,260 360,240 T460,240 Q510,220 560,240 T660,240' stroke='%23e8b4a8' fill='none' stroke-width='0.8' opacity='0.3'/%3E%3Cpath d='M120,350 Q170,320 220,350 T320,350 Q370,380 420,350 T520,350 Q570,320 620,350' stroke='%23d4a5d4' fill='none' stroke-width='1.2' opacity='0.4'/%3E%3Cpath d='M100,370 Q150,340 200,370 T300,370 Q350,400 400,370 T500,370 Q550,340 600,370' stroke='%23d4a5d4' fill='none' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M80,390 Q130,360 180,390 T280,390 Q330,420 380,390 T480,390 Q530,360 580,390' stroke='%23d4a5d4' fill='none' stroke-width='0.8' opacity='0.3'/%3E%3Cpath d='M150,500 Q200,470 250,500 T350,500 Q400,530 450,500 T550,500' stroke='%23c9d4ea' fill='none' stroke-width='1.2' opacity='0.35'/%3E%3Cpath d='M130,520 Q180,490 230,520 T330,520 Q380,550 430,520 T530,520' stroke='%23c9d4ea' fill='none' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M110,540 Q160,510 210,540 T310,540 Q360,570 410,540 T510,540' stroke='%23c9d4ea' fill='none' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M200,100 Q250,70 300,100 T400,100 Q450,130 500,100 T600,100' stroke='%23ffcab8' fill='none' stroke-width='1.2' opacity='0.4'/%3E%3Cpath d='M180,120 Q230,90 280,120 T380,120 Q430,150 480,120 T580,120' stroke='%23ffcab8' fill='none' stroke-width='1' opacity='0.35'/%3E%3Cpath d='M160,140 Q210,110 260,140 T360,140 Q410,170 460,140 T560,140' stroke='%23ffcab8' fill='none' stroke-width='0.8' opacity='0.3'/%3E%3Cpath d='M300,650 Q350,620 400,650 T500,650 Q550,680 600,650' stroke='%23d0e8d8' fill='none' stroke-width='1.2' opacity='0.35'/%3E%3Cpath d='M280,670 Q330,640 380,670 T480,670 Q530,700 580,670' stroke='%23d0e8d8' fill='none' stroke-width='1' opacity='0.3'/%3E%3C!-- Cross patterns for peaks --%3E%3Cpath d='M250,250 L260,260 M260,250 L250,260' stroke='%23ff6b9d' stroke-width='1.5' opacity='0.3'/%3E%3Cpath d='M450,400 L460,410 M460,400 L450,410' stroke='%23c9a9e9' stroke-width='1.5' opacity='0.3'/%3E%3Cpath d='M350,550 L360,560 M360,550 L350,560' stroke='%23a8d8ea' stroke-width='1.5' opacity='0.25'/%3E%3C!-- Elevation markers --%3E%3Ccircle cx='250' cy='255' r='3' fill='none' stroke='%23ff6b9d' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='450' cy='405' r='3' fill='none' stroke='%23c9a9e9' stroke-width='1' opacity='0.4'/%3E%3Ccircle cx='350' cy='555' r='3' fill='none' stroke='%23a8d8ea' stroke-width='1' opacity='0.35'/%3E%3Ctext x='265' y='260' font-size='10' fill='%23ff6b9d' opacity='0.3' font-family='monospace'%3E420%3C/text%3E%3Ctext x='465' y='410' font-size='10' fill='%23c9a9e9' opacity='0.3' font-family='monospace'%3E385%3C/text%3E%3Ctext x='365' y='560' font-size='10' fill='%23a8d8ea' opacity='0.25' font-family='monospace'%3E350%3C/text%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800' height='800' fill='url(%23topo)'/%3E%3C/svg%3E");
    background-size: 800px 800px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    animation: topoWave 20s ease-in-out infinite;
}

@keyframes topoWave {
    0%, 100% {
        background-position: 0px 0px, 0px 0px;
        transform: translate(0, 0);
    }
    25% {
        background-position: 40px -30px;
        transform: translate(10px, -5px);
    }
    50% {
        background-position: 0px -60px;
        transform: translate(0, -10px);
    }
    75% {
        background-position: -40px -30px;
        transform: translate(-10px, -5px);
    }
}

/* navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 245, 235, 0.98) 0%, rgba(255, 235, 215, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--color-border);
    box-shadow: 4px 0 24px rgba(255, 107, 157, 0.08);
    transition: transform 0.3s var(--transition-smooth), box-shadow var(--transition-speed) var(--transition-smooth);
    width: 200px;
}

/* hide navigation when scrolling down */
.nav.nav-hidden {
    transform: translateY(-100%);
}

/* desktop - changed to left instead of top*/
@media (min-width: 769px) {
    .nav.nav-hidden {
        transform: translateX(-100%);
    }
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: all var(--transition-speed) var(--transition-smooth);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
    border-radius: 2px;
    transition: width var(--transition-speed) var(--transition-smooth);
}

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

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

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-speed);
}

/* main content */
.content {
    margin-left: var(--nav-width);
    position: relative;
    z-index: 1;
    width: calc(100% - var(--nav-width));
    min-height: 100vh;
}

/* container */
.container {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

/* index */
.home-section {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.home-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.home-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-accent) 0%, #ffcce0 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    animation: pinkToWhite 10s ease-in-out infinite;
}

.home-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.home-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.home-decoration .star {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--color-accent) 0%, #ffcce0 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite, pinkToWhite 10s ease-in-out infinite;
    opacity: 0.7;
}

.home-decoration .star:nth-child(1) {
    animation-delay: 0s, 0s;
}

.home-decoration .star:nth-child(2) {
    animation-delay: 0.5s, 0s;
}

.home-decoration .star:nth-child(3) {
    animation-delay: 1s, 0s;
}

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

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

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

@keyframes colorChange {
    0% {
        color: var(--color-accent);
    }
    25% {
        color: var(--color-purple);
    }
    50% {
        color: var(--color-blue);
    }
    75% {
        color: var(--color-peach);
    }
    100% {
        color: var(--color-accent);
    }
}


/* pudding pic */
.hero-section {
    justify-content: center;
    background: #1a1a1a;
    padding: 0;
    min-height: 100vh;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
}

.hero-image-side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: #000;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 8rem 6rem 6rem;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 50%, #ffd4c1 100%);
    position: relative;
    overflow: hidden;
}

.hero-text-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-text-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 233, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-cta-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    width: fit-content;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 100%);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.hero-cta-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.hero-portfolio-link {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-portfolio-link:hover {
    transform: translateX(5px);
    filter: brightness(1.2);
}

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

/* headers */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 5rem;
}

.section-number {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(201, 169, 233, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* about me 
.about-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, #fff0e1 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 216, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.about-text {
    max-width: 900px;
}

.large-text {
    font-size: 1.75rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.about-text {
    max-width: 900px;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.about-text .large-text {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tile-item {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 235, 0.8));
    border-radius: 24px;
    border: 2px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-purple), var(--color-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.15), 0 0 0 2px var(--color-accent);
    border-color: var(--color-accent);
}

.tile-item:hover::before {
    transform: scaleX(1);
}

.tile-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tile-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}/*
*/

/* project bar*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 4rem;
}

.project-card {
    cursor: pointer;
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-12px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--color-surface);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.project-card:hover .project-image {
    border-color: var(--color-text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    font-weight: 500;
}

.project-info {
    padding: 0 0.5rem;
}

.project-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.tag:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: white;
}

/* socials */
.contact-section {
    background: #fafafa;
}

.contact-content {
    max-width: 900px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.contact-item:hover {
    border-color: var(--color-text);
    transform: translateX(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-value {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 500;
}

/* theme toggle light & dark*/
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    margin-top: 1rem;
}

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

.theme-toggle:hover svg {
    stroke: white;
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
    stroke: var(--color-text);
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

body.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* footer */
.footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer p {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* project bar */
.project-dock {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 4rem);
}

.dock-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 245, 235, 0.95), rgba(255, 235, 220, 0.95));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 500px;
    position: relative;
}

.dock-container::before,
.dock-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 1;
}

.dock-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.dock-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.dock-item:hover .custom-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(255, 107, 157, 0.4));
}

.dock-label {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover effects */
.dock-item:hover {
    transform: translateY(-8px);
}

.dock-item:hover .dock-icon {
    width: 85px;
    height: 85px;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Neighbor scaling effect */
.dock-item:has(+ .dock-item:hover),
.dock-item:hover + .dock-item {
    transform: translateY(-4px) scale(1.05);
}

.dock-item:has(+ .dock-item:hover) .dock-icon,
.dock-item:hover + .dock-item .dock-icon {
    width: 77px;
    height: 77px;
}

/* Second neighbor - subtle effect */
.dock-item:has(+ .dock-item + .dock-item:hover),
.dock-item:hover + .dock-item + .dock-item {
    transform: translateY(-2px) scale(1.02);
}

.dock-item:has(+ .dock-item + .dock-item:hover) .dock-icon,
.dock-item:hover + .dock-item + .dock-item .dock-icon {
    width: 73px;
    height: 73px;
}

/* resolution fixes & mobile support */

@media (min-width: 1920px) {
    :root {
        --nav-width: 250px;
    }
    
    .container {
        max-width: 1800px;
    }
}

@media (min-width: 1440px) and (max-width: 1920px) {
    :root {
        --nav-width: 220px;
    }
}


@media (min-width: 1024px) and (max-width: 1440px) {
    :root {
        --nav-width: 180px;
    }
}

/* mobile device support */

@media (max-width: 1024px) {
    :root {
        --nav-width: 180px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav {
        width: var(--nav-width);
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .content {
        margin-left: var(--nav-width);
        width: calc(100% - var(--nav-width));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .dock-container {
        gap: 1rem;
    }

    .dock-icon {
        width: 50px;
        height: 50px;
    }

    .dock-item:hover .dock-icon {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-width: 0px;
    }
    
    .nav {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) var(--spacing-md);
        border-right: none;
        border-bottom: 2px solid var(--color-border);
        z-index: 1000;
    }
    
    .content {
        margin-left: 0;
        margin-top: clamp(60px, 10vh, 80px);
        padding-top: var(--spacing-sm);
        width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-image-side {
        display: none;
    }
    
    .hero-text-side {
        padding: 4rem 2rem 4rem;
    }
    
    .home-section {
        padding: 2rem 1rem;
        min-height: calc(100vh - 80px);
    }
    
    .home-title {
        font-size: 2.5rem;
    }
    
    .home-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-surface);
        border-bottom: 2px solid var(--color-border);
        padding: 1rem 0;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        text-align: left;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--color-accent);
        background: rgba(255, 107, 157, 0.1);
    }
    
    .nav-toggle {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Simplified dock for mobile */
    .project-dock {
        bottom: 1rem;
        right: 1rem;
    }

    .dock-main {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dock-arrow {
        padding: 0.6rem;
    }

    .dock-grid-toggle {
        padding: 0.75rem;
    }

    .dock-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .dock-icon {
        width: 40px;
        height: 40px;
    }

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

    .dock-item:hover .dock-icon {
        width: 50px;
        height: 50px;
    }

    /* disabling effects on mobile for better performances*/
    .dock-item:has(+ .dock-item:hover),
    .dock-item:hover + .dock-item,
    .dock-item:has(+ .dock-item + .dock-item:hover),
    .dock-item:hover + .dock-item + .dock-item {
        transform: none;
    }

    .footer {
        padding: 2rem 0 6rem 0;
    }

    .dock-expanded {
        max-height: 400px;
        padding: 1rem;
    }

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

    .dock-collapse {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 640px) and (min-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .content {
        margin-top: clamp(60px, 8vh, 70px);
    }
    
    .nav {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .home-section {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .project-dock {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .dock-container {
        width: 100%;
        justify-content: space-around;
    }
    
    .dock-icon {
        width: 35px;
        height: 35px;
    }
    
    .dock-label {
        font-size: var(--font-size-xs);
    }
}

/* no one needs this but if someone wanna test it */
@media (max-width: 320px) {
    :root {
        --font-size-3xl: clamp(1.75rem, 1.5rem + 3vw, 2.5rem);
    }
    
    .content {
        margin-top: 60px;
    }
    
    .nav {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .dock-icon {
        width: 30px;
        height: 30px;
    }
}
