:root {
    --primary-color: #ffffff;
    --secondary-color: #b3b3d1;
    --accent-color: #6c4cff;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --bg-primary: #05050a;
    --bg-secondary: #0b0b12;
    --border-color: #2a2346;
    --nav-bg: rgba(5, 5, 10, 0.88);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #6c4cff 100%);
    --gradient-secondary: linear-gradient(135deg, #6c4cff 0%, #8b5cf6 100%);
    --rec-section-start: #070613;
    --rec-section-end: #110d24;
    --rec-card-bg: rgba(11, 8, 24, 0.94);
    --rec-card-border: #2b2550;
    --rec-title: #ffffff;
    --rec-body: #e4e4e7;
    --rec-muted: #b8b0d8;
    --rec-nav-bg: transparent;
    --rec-nav-border: #31295a;
    --rec-nav-color: #a78bfa;
    --rec-dot-border: rgba(163, 163, 163, 0.6);
    --rec-dot-active: #a78bfa;
    --rec-link-border: rgba(139, 92, 246, 0.45);
    --rec-link-text: #c4b5fd;
    --rec-link-hover: rgba(139, 92, 246, 0.14);
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: #05050a;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1.06rem, 0.26vw + 0.98rem, 1.2rem);
    color: var(--text-primary);
    background: linear-gradient(135deg, #05050a 0%, #09081a 45%, #05050a 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    line-height: 1.76;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    overscroll-behavior: none;
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    padding-left: clamp(72px, 5.5vw, 88px);
}

/* Cursor spotlight */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: none;
    opacity: 0;
    mix-blend-mode: soft-light;
    transition: opacity 0.2s ease;
    z-index: 0;
}

@media (max-width: 768px) {
    body::before {
        display: none;
    }
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2vw, 24px);
}

img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    overflow: visible;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.live-datetime {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    min-width: 170px;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text-secondary) 30%, transparent);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary-color) 18%, transparent),
            color-mix(in srgb, var(--secondary-color) 18%, transparent)
        ),
        color-mix(in srgb, var(--bg-primary) 28%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, #000 20%, transparent);
    backdrop-filter: blur(12px) saturate(120%);
    pointer-events: auto;
    user-select: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.live-datetime.is-hidden {
    opacity: 0;
    transform: translateX(calc(100% + 16px));
    pointer-events: none;
}

.live-datetime-close {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border: 1px solid color-mix(in srgb, var(--text-secondary) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.live-datetime:hover .live-datetime-close,
.live-datetime:focus-within .live-datetime-close {
    opacity: 1;
    pointer-events: auto;
}

.live-datetime-toggle {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 1201;
    width: 26px;
    height: 46px;
    border: 1px solid color-mix(in srgb, var(--text-secondary) 35%, transparent);
    border-radius: 10px 0 0 10px;
    background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.live-datetime-toggle.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.live-time {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}

.live-date {
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-secondary);
}

.nav-container {
    max-width: 1200px;
    margin: 0;
    padding: 1.85rem 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    gap: 1.1rem;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.15rem;
}

.nav-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 32px;
    margin: 0.35rem auto 0.25rem;
}

.availability-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
    animation: availabilityPulse 1.4s ease-out infinite;
}

.availability-text {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 0.01em;
}

@keyframes availabilityPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.logo {
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-image {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-top: 2px;
    text-transform: none;
}

.logo-text .brand-initial {
    font-size: 2.45rem;
    font-weight: 800;
    color: #c7cff2;
    letter-spacing: -0.01em;
    line-height: 1;
}

.logo-text .brand-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: inline-block;
    margin-top: 0.72rem;
    color: #38bdf8;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0;
}

.logo-image img {
    height: 48px;
    width: auto;
    max-height: 48px;
    max-width: 200px;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.65rem;
    flex-direction: column;
    align-items: center;
    margin-top: 0.7rem;
}

.nav-copyright {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    width: 100%;
    border-top: 1px solid rgba(167, 176, 211, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #9aa4cb;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.02em;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    opacity: 0.9;
    user-select: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    touch-action: manipulation;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
}

.nav-link svg {
    width: 21px;
    height: 21px;
    pointer-events: none;
}

@media (min-width: 1366px) and (max-width: 1920px) and (min-height: 768px) and (max-height: 1080px) {
    body {
        padding-left: 84px;
    }

    .navbar {
        width: 76px;
    }

    .nav-container {
        padding: 1.55rem 0.45rem 1rem;
        gap: 0.9rem;
    }

    .nav-actions {
        gap: 0.45rem;
        margin-top: 0.15rem;
    }

    .nav-menu {
        gap: 0.5rem;
        margin-top: 0.55rem;
    }

    .nav-link {
        width: 46px;
        height: 46px;
    }

    .nav-link svg {
        width: 20px;
        height: 20px;
    }

}

@media (min-width: 1600px) {
    .container {
        max-width: 1360px;
    }

    .hero-image.hero-image-centered .profile-card {
        width: clamp(270px, 27vw, 390px);
        height: clamp(270px, 27vw, 390px);
    }
}

@media (max-width: 1366px) {
    .hero-stack {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .about-content {
        gap: 2.6rem;
    }

    .projects-grid,
    .skills-grid {
        gap: 1.4rem;
    }

    .contact-grid {
        gap: 1.2rem;
    }
}

.nav-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(20, 25, 33, 0.9);
    color: #f5f6ff;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 18px rgba(10, 12, 20, 0.25);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: clamp(56px, 6vw, 74px);
    padding-bottom: 0;
    overflow: hidden;
}

.hero-compact {
    background: transparent;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
    text-align: center;
    transform: translateY(-20px);
}

.hero-stack {
    padding-top: 6px;
    padding-bottom: 18px;
}

.hero-text-centered {
    text-align: center;
}

.hero-image-centered {
    justify-content: center;
    align-self: center;
    margin-top: 0;
}

.hero-text-centered .hero-buttons {
    justify-content: center;
}

.hero-text-centered .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-text-centered .greeting {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    color: var(--text-secondary);
}

.hero-text-centered .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4.1vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
}

.hero-text-centered .hero-subtitle {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    line-height: 1.45;
}

.hero-tagline {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.profile-card {
    background: transparent;
}

.profile-image {
    background: transparent;
}

.hero-image.hero-image-centered .profile-card {
    width: clamp(240px, 30vw, 360px);
    height: clamp(240px, 30vw, 360px);
    transform: none;
    background: transparent;
    box-shadow: none;
}

.hero-image.hero-image-centered .profile-card:hover {
    transform: translateY(-6px);
}

.hero-image.hero-image-centered .card-glow {
    display: none;
}

.hero-image.hero-image-centered .profile-image {
    position: static;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
}

.hero-image.hero-image-centered .profile-image.profile-image-plain {
    position: absolute;
}

.profile-card-plain {
    display: grid;
    place-items: center;
    background: var(--bg-primary);
    border-radius: 28px;
    position: relative;
}

.profile-image-plain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 40px rgba(120, 130, 255, 0.35));
    background: transparent;
}

.hero-image-dark {
    display: none;
}

.hero-image-warm {
    display: none;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.greeting {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(2.15rem, 4.3vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 0.35rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-name-pixel {
    font-family: 'Press Start 2P', cursive;
    display: inline-block;
    transform: scale(0.94);
    transform-origin: center;
}

.hero-name-pixel.is-typing::after {
    content: '_';
    margin-left: 0.08em;
    color: currentColor;
    animation: blink 0.9s steps(1, end) infinite;
}

.hero-subtitle {
    font-size: clamp(1.32rem, 2.8vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 1.65rem;
    min-height: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

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

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: clamp(1.08rem, 1.1vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    max-width: 520px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    margin-top: 0.2rem;
}

.hero-buttons-single {
    justify-content: center;
}

.btn-pill {
    padding: 0.85rem 2.25rem;
    border-radius: 999px;
    background: #4fa2ff;
    box-shadow: 0 12px 24px rgba(79, 162, 255, 0.25);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 162, 255, 0.35);
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: #111111;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.hero-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8aa0ff;
    background: rgba(138, 160, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-social-link:hover {
    transform: translateY(-2px);
    background: rgba(138, 160, 255, 0.2);
    color: #b9c5ff;
}

.hero-footer {
    margin-top: 0.7rem;
    color: var(--text-secondary);
    font-size: 1.04rem;
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Click "Hi" animation */
.hi-pop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 28px color-mix(in srgb, var(--primary-color) 55%, transparent);
    pointer-events: none;
    opacity: 0;
    animation: hiFloat 2.6s ease forwards;
    white-space: nowrap;
}

@keyframes hiFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
        filter: blur(0.5px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.95);
        filter: blur(2px);
    }
}

.profile-card {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 30px;
    background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-color) 90deg,
        transparent 180deg,
        var(--secondary-color) 270deg,
        transparent 360deg
    );
    animation: rotate 4s linear infinite;
}

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

.profile-image {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-primary);
    border-radius: 27px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
}

.profile-placeholder {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-primary);
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder svg {
    width: 60%;
    height: 60%;
    opacity: 0.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s infinite;
    animation-delay: 1.5s;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 3px;
}

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

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

/* Section Styles */
section {
    padding: clamp(72px, 8vw, 100px) 0;
    scroll-margin-top: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5vw, 3.9rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background: transparent;
}

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

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}


.frame-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    opacity: 0.3;
}

.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.about-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-placeholder svg {
    width: 70%;
    height: 70%;
    opacity: 0.5;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.18;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
}

/* about sticker removed */

.about-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3), transparent);
    filter: blur(18px);
    opacity: 0.6;
    z-index: 0;
}

.about-card-showcase {
    background: #1c2633;
    border: 1px solid rgba(120, 130, 255, 0.25);
    color: #dbe2f2;
    padding: 2rem 2.25rem 2.1rem;
    box-shadow: 0 20px 45px rgba(6, 10, 20, 0.45);
    animation: none;
}

.about-card-showcase::before {
    opacity: 0.25;
}

.about-card-showcase::after {
    content: '';
    position: absolute;
    left: -18px;
    top: 30%;
    border-width: 12px 18px 12px 0;
    border-style: solid;
    border-color: transparent rgba(28, 38, 51, 0.95) transparent transparent;
    filter: drop-shadow(-6px 6px 10px rgba(6, 10, 20, 0.35));
}

.about-card-badge {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: #f2f2ff;
    color: #5b6bff;
    box-shadow: 0 10px 20px rgba(90, 105, 255, 0.35);
    z-index: 2;
}

.about-card-header {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 2.1vw, 1.72rem);
    line-height: 1.5;
    color: #b9c5ff;
    margin-bottom: 1rem;
}

.about-card-body {
    position: relative;
    z-index: 1;
    color: #cbd4e6;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-card-body p {
    margin: 0 0 1rem;
}

.about-card-body p:last-child {
    margin-bottom: 0;
}

.about-card-btn {
    position: relative;
    z-index: 1;
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: #7fb2ff;
    color: #cfe5ff;
    background: rgba(127, 178, 255, 0.15);
}

.about-card-btn:hover {
    background: #7fb2ff;
    color: #111827;
}

.about-card-title {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: var(--gradient-primary);
    color: #111111;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.about-card p,
.about-card .resume-btn {
    position: relative;
    z-index: 1;
}

/* cat sticker removed */

@keyframes cat-bounce {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

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

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

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.stat-item h4 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.1vw, 1.95rem);
    margin-bottom: 1.1rem;
    color: var(--primary-color);
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.98rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #111111;
    transform: scale(1.05);
}

/* Unified style override for Tailwind skill pills */
.skill-pill-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.skill-pill-card:hover {
    background: rgba(37, 99, 235, 0.06) !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
}

.skill-pill-card > span:first-child {
    background: rgba(17, 17, 17, 0.08) !important;
}

/* Projects Section */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    background: linear-gradient(135deg, #111111 0%, #52525b 100%);
    overflow: hidden;
}

.project-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #1f2937 0%, #6b7280 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #374151 0%, #9ca3af 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #52525b 0%, #d4d4d8 100%);
}

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

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

.project-link {
    color: white;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.1vw, 1.92rem);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1.04rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

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

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Experience Section */
.timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 0.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: #facc15;
}

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

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

.timeline-dot {
    position: absolute;
    left: 100%;
    top: 1.1rem;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid #facc15;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: 0;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #111111;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.38rem, 2vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.08rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* Recommendations Section */
.recommendations {
    background: transparent;
}

.recommendations .section-title {
    text-align: left;
    margin-bottom: 2.6rem;
}

.recommendations .section-title::after {
    left: 0;
    transform: none;
    width: 72px;
}

.recommendations-slider {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.1rem;
}

.recommendation-card {
    width: 100%;
    max-width: 900px;
    background: var(--rec-card-bg);
    border: 1px solid var(--rec-card-border);
    border-radius: 14px;
    box-shadow: none;
    padding: 2.8rem 3rem 2.2rem;
    text-align: center;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: none;
    box-shadow: none;
}

.recommendation-avatar {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    border: 2px solid #22c7b6;
    object-fit: cover;
    margin: 0 auto 1.4rem;
}

.recommendation-name {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 3vw, 2.55rem);
    color: var(--rec-title);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.recommendation-role {
    display: none;
}

.recommendation-text {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    color: var(--rec-muted);
    line-height: 1.8;
    font-size: 1.14rem;
    letter-spacing: 0.01em;
}

.recommendation-rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.recommendation-rating-value {
    color: var(--rec-body);
    font-weight: 500;
    font-size: 1.3rem;
}

.recommendation-stars {
    font-size: 2.1rem;
    letter-spacing: 2px;
    color: #e0ac00;
}

.recommendation-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.recommendation-nav {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--rec-nav-color);
    font-size: 2.05rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.recommendation-nav:hover {
    transform: translateY(-1px);
    color: color-mix(in srgb, var(--rec-nav-color) 88%, white 12%);
}

.recommendation-dots {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.recommendation-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--rec-dot-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommendation-dot.active {
    background: var(--rec-dot-active);
    transform: scale(1.08);
}

.recommendation-link {
    border: 1px solid var(--rec-link-border);
    color: var(--rec-link-text);
}

.recommendation-link:hover {
    background: var(--rec-link-hover);
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact .section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.contact .section-title::after {
    left: 0;
    transform: none;
}

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

.contact-info {
    width: 100%;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.06rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: stretch;
    margin-bottom: 1.8rem;
}

.contact-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow-md);
}

.contact-form-column {
    min-height: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.88rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.04rem;
    line-height: 1.55;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-group textarea {
    min-height: 136px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.message-wrap {
    position: relative;
}

.message-wrap textarea {
    padding-bottom: 2rem;
}

.word-counter {
    position: absolute;
    right: 0.8rem;
    bottom: 0.6rem;
    font-size: 0.86rem;
    color: #71717a;
    pointer-events: none;
    margin: 0;
}

.word-counter.exceeded {
    color: #ff8f8f;
}

.form-feedback {
    margin: 0.2rem 0 0.95rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.form-feedback-success {
    color: #14532d;
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.08);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    font-weight: 700;
}

.form-feedback-error {
    color: #ffd6d6;
    border: 1px solid rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.12);
}

.contact .is-hidden {
    display: none;
}

.contact-submit-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.contact-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.contact-visual-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.lottie-visual {
    width: clamp(280px, 36vw, 540px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: none;
}

.lottie-visual-player {
    width: 100%;
    height: 100%;
}

@media (min-width: 1400px) {
    .contact-content {
        max-width: 1340px;
    }

    .contact-grid {
        grid-template-columns: minmax(470px, 1fr) minmax(560px, 1.15fr);
        gap: 2.4rem;
        align-items: center;
    }

    .lottie-visual {
        width: min(680px, 46vw);
    }
}

@media (min-width: 1900px) {
    .lottie-visual {
        width: min(760px, 44vw);
    }
}

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

    .contact-visual-column {
        min-height: auto;
    }

    .lottie-visual {
        width: min(420px, 90vw);
        transform: none;
        margin: 0 auto;
    }
}

.mail-visual {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.mail-glow {
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    background: rgba(15, 22, 44, 0.76);
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: inset 0 0 45px rgba(59, 130, 246, 0.2), 0 0 40px rgba(0, 0, 0, 0.35);
}

.mail-core {
    position: relative;
    z-index: 2;
    width: 62%;
    animation: envelopeFloat 2.7s ease-in-out infinite;
}

.mail-envelope {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.28));
}

.mail-orbit {
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    animation: planeOrbit 4s linear infinite;
}

.mail-plane {
    position: absolute;
    left: 100%;
    top: 50%;
    width: 36px;
    height: 36px;
    color: #93c5fd;
    transform: translate(-50%, -50%) rotate(90deg);
    filter: drop-shadow(0 4px 9px rgba(56, 189, 248, 0.45));
}

.mail-plane svg {
    width: 100%;
    height: 100%;
    display: block;
}

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

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

.contact-action-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 150px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.contact-action-icon {
    font-size: 1rem;
    line-height: 1;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.96rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0.35rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }

    .navbar {
        width: 100%;
        height: auto;
        bottom: auto;
        right: 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.6rem;
        padding: 1rem 20px;
        height: auto;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.75rem;
        margin-top: 0;
        margin-left: auto;
    }

    .live-datetime {
        top: 78px;
        left: 12px;
        right: auto;
        align-items: flex-start;
        min-width: 154px;
        padding: 0.4rem 0.65rem;
    }

    .live-datetime.is-hidden {
        transform: translateX(calc(-100% - 16px));
    }

    .live-datetime-toggle {
        top: 78px;
        left: 12px;
        right: auto;
        border-radius: 0 10px 10px 0;
    }

    .logo-text .brand-initial {
        font-size: 1.7rem;
    }

    .logo-text .brand-name {
        font-size: 0.76rem;
        margin-top: 0.45rem;
    }

    .hamburger {
        display: flex;
        margin-left: 0.25rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-copyright {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        transform: translateY(-10px);
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.24rem;
    }

    .hero-description {
        font-size: 1.03rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
    }

    .profile-card {
        width: 340px;
        height: 340px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .contact-visual-column {
        min-height: auto;
    }

    .lottie-visual {
        width: min(360px, 90vw);
        transform: none;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .contact-action-links {
        flex-wrap: wrap;
    }

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

    .timeline::before {
        left: 9px;
        transform: none;
    }

    .timeline-item {
        left: 0;
        width: 100%;
        padding: 0 0 0 2.2rem;
        margin-bottom: 2.5rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding: 0 0 0 2.2rem;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 9px;
        top: 1.1rem;
        transform: translate(-50%, -50%);
    }

}

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

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.12rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.98rem;
    }

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

    .contact-action-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-action-btn {
        width: 100%;
    }
}

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

    .hero-image.hero-image-centered .profile-card {
        width: min(300px, 84vw);
        height: min(300px, 84vw);
    }

    .hero-social {
        gap: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .lottie-visual {
        width: min(320px, 88vw);
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .navbar {
        width: 100%;
    }

    .nav-container {
        padding: 0.65rem 12px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .live-datetime {
        top: 70px;
        left: 10px;
        right: auto;
        align-items: flex-start;
        min-width: 144px;
    }

    .live-datetime-toggle {
        top: 70px;
        left: 10px;
        right: auto;
    }

    .sound-toggle.slider {
        --volume-slider-width: 100px;
        --volume-slider-height: 5px;
        --volume-popup-offset: 8px;
    }

    .nav-menu {
        top: 62px;
        padding: 1.2rem 0;
        gap: 0.6rem;
    }

    .nav-link {
        width: 44px;
        height: 44px;
    }

    .nav-link svg {
        width: 19px;
        height: 19px;
    }

    .hero {
        padding-top: 64px;
        padding-bottom: 0;
    }

    section {
        padding: 72px 0;
        scroll-margin-top: 96px;
    }
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* From Uiverse.io by seyed-mohsen-mousavi */
/* level settings */
.sound-toggle.slider {
    --volume-slider-width: 118px;
    --volume-slider-height: 6px;
    --volume-slider-bg: color-mix(in srgb, #6b7280 55%, transparent);
    --volume-slider-fill: #ffffff;
    --volume-slider-border: color-mix(in srgb, #ffffff 30%, transparent);
    --volume-popup-offset: 10px;
    --sound-toggle-size: 38px;
    --icon-size: 20px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: var(--sound-toggle-size);
    height: var(--sound-toggle-size);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #ffffff 24%, transparent);
    background: color-mix(in srgb, #0f172a 72%, transparent);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sound-toggle.slider .volume {
    color: currentColor;
    width: var(--icon-size);
    height: var(--icon-size);
    display: block;
    pointer-events: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.sound-toggle.slider .level {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    left: calc(100% + var(--volume-popup-offset));
    top: 50%;
    transform: translateY(-50%);
    width: var(--volume-slider-width);
    height: var(--volume-slider-height);
    border-radius: 999px;
    border: 1px solid var(--volume-slider-border);
    background: var(--volume-slider-bg);
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    outline: none;
    z-index: 1202;
}

.sound-toggle.slider .level::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #0f172a;
    background: #ffffff;
    -webkit-box-shadow: -160px 0 0 160px var(--volume-slider-fill);
    box-shadow: -160px 0 0 160px var(--volume-slider-fill);
}

.sound-toggle.slider .level::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #0f172a;
    background: #ffffff;
    box-shadow: -160px 0 0 160px var(--volume-slider-fill);
}

.sound-toggle.slider:hover,
.sound-toggle.slider:focus-within {
    border-color: color-mix(in srgb, #60a5fa 55%, transparent);
    background: color-mix(in srgb, #0f172a 85%, transparent);
}

.sound-toggle.slider:hover .level,
.sound-toggle.slider:focus-within .level {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.sound-toggle.slider .level:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, #60a5fa 50%, transparent);
}

.sound-toggle.slider.muted {
    --volume-slider-fill: #9ca3af;
    color: #9ca3af;
}

.sound-toggle.slider.muted .volume {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .sound-toggle.slider {
        --volume-slider-width: 112px;
        --volume-popup-offset: 0px;
    }

    .sound-toggle.slider .level {
        left: 50%;
        top: calc(100% + 10px);
        transform: translateX(-50%) translateY(0);
    }

    .sound-toggle.slider:hover .level,
    .sound-toggle.slider:focus-within .level {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .recommendations-slider {
        gap: 0.4rem;
    }

    .recommendation-card {
        padding: 2rem 1rem 1.6rem;
    }

    .recommendation-name {
        font-size: 1.7rem;
    }

    .recommendation-role {
        font-size: 1rem;
    }

    .recommendation-text {
        font-size: 1.04rem;
    }

    .recommendation-nav {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }
}
