/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #e8e8f0;
    --text-muted: #b0b0c0;
    --accent-start: #a855f7;
    --accent-end: #6366f1;
    --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --border-color: rgba(168, 85, 247, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
    --blur: blur(20px);
}

/* ===== Intro Screen ===== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 50%, #0f0f1a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
}

.neural-network {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    animation: nodePulse 2s ease-in-out infinite;
}

.node-1 {
    top: 42px;
    left: 22px;
    animation-delay: 0s;
}

.node-2 {
    top: 92px;
    left: 22px;
    animation-delay: 0.3s;
}

.node-3 {
    top: 142px;
    left: 22px;
    animation-delay: 0.6s;
}

.node-4 {
    top: 42px;
    right: 22px;
    animation-delay: 0.2s;
}

.node-5 {
    top: 92px;
    right: 22px;
    animation-delay: 0.5s;
}

.node-6 {
    top: 142px;
    right: 22px;
    animation-delay: 0.8s;
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection {
    stroke: rgba(168, 85, 247, 0.4);
    stroke-width: 2;
    stroke-dasharray: 100;
    animation: connectionFlow 2s linear infinite;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.9);
    }
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
}

.intro-loader {
    width: 200px;
    margin: 0 auto;
    position: relative;
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    border-radius: 4px;
    animation: loaderProgress 2.5s ease-out forwards;
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loader-percent {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.data-particles {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    pointer-events: none;
    overflow: hidden;
}

.data-particles span {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(168, 85, 247, 0.3);
    animation: particleFloat 4s linear infinite;
}

.data-particles span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.data-particles span:nth-child(2) {
    left: 25%;
    animation-delay: 0.5s;
}

.data-particles span:nth-child(3) {
    left: 40%;
    animation-delay: 1s;
}

.data-particles span:nth-child(4) {
    left: 55%;
    animation-delay: 1.5s;
}

.data-particles span:nth-child(5) {
    left: 70%;
    animation-delay: 2s;
}

.data-particles span:nth-child(6) {
    left: 85%;
    animation-delay: 2.5s;
}

.data-particles span:nth-child(7) {
    left: 15%;
    animation-delay: 3s;
}

.data-particles span:nth-child(8) {
    left: 80%;
    animation-delay: 3.5s;
}

@keyframes particleFloat {
    0% {
        top: 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: -20px;
        opacity: 0;
    }
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 18px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}

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

.nav-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #a855f7, #6366f1, #a855f7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    background-position: 100% 100%;
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.nav-logo:hover::before {
    opacity: 1;
}

.nav-logo:hover::after {
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition);
}

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

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

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-start);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    /* overflow: hidden; removed to allow content to flow */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    font-size: 16px;
    color: var(--accent-start);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hero-subtitle {
    font-size: 18px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.hero-interests {
    list-style: none;
    margin-bottom: 32px;
    padding-left: 0;
}

.hero-interests li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.hero-interests li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-start);
    border-radius: 50%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-quote-simple {
    text-align: center;
    margin-top: 24px;
    padding: 16px 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform var(--transition);
}

.hero-quote-simple:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.hero-quote-simple p {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.hero-quote-simple cite {
    font-size: 13px;
    color: var(--accent-start);
    font-weight: 600;
    font-style: normal;
    display: block;
    letter-spacing: 0.5px;
}

.hero-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-start);
    transform: translateY(-2px);
}

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

.hero-image {
    flex-shrink: 0;
}

.hero-image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 70%;
    filter: brightness(1.2) contrast(1.05);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Typewriter Animation */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-start);
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter.done {
    border-right: none;
    animation: none;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-start);
    }
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 60px;
}

/* ===== About Section ===== */
#about {
    background: linear-gradient(180deg, #0a0a12 0%, #12121f 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

#about .section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #c7c7c7 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-text p {
    color: #d0d0e0;
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: 0.2px;
}

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

.about-text strong {
    color: #ffffff;
    font-weight: 600;
    position: relative;
}

.about-text strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    border-radius: 2px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-education h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.education-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.education-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.education-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.education-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.education-info {
    position: relative;
    z-index: 1;
}

.education-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.education-info p {
    font-size: 15px;
    color: #b0b0c0;
    margin-bottom: 8px;
    font-weight: 400;
}

.education-date {
    font-size: 13px;
    font-weight: 500;
    color: transparent;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ===== Journey Section ===== */
.journey-content {
    max-width: 900px;
    margin: 0 auto;
}

.journey-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 28px;
}

.journey-content strong {
    color: var(--accent-start);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.journey-content em {
    color: var(--text-primary);
    font-style: italic;
}

.journey-goal {
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid var(--accent-start);
    border-radius: 12px;
    margin-top: 40px;
}

.journey-goal p {
    margin-bottom: 0;
    font-size: 20px;
    color: var(--text-primary);
}

/* ===== Skills Section ===== */
.skills-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    justify-items: center;
    perspective: 1000px;
}

.skill-icon-box {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.skill-icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-icon-box::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.skill-icon-box:hover {
    transform: translateY(-8px) rotateX(3deg);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow:
        0 15px 30px rgba(168, 85, 247, 0.2),
        0 0 20px rgba(168, 85, 247, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-icon-box:hover::before {
    opacity: 1;
}

.skill-icon-box:hover::after {
    bottom: -35px;
    opacity: 1;
}

.skill-icon-box svg {
    width: 42px;
    height: 42px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.skill-icon-box:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.4));
}

/* Floating animation for skill boxes */
.skill-icon-box:nth-child(odd) {
    animation: skillFloat 6s ease-in-out infinite;
}

.skill-icon-box:nth-child(even) {
    animation: skillFloat 6s ease-in-out infinite reverse;
    animation-delay: -3s;
}

@keyframes skillFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.skill-icon-box:hover {
    animation: none;
    transform: translateY(-12px) rotateX(5deg);
}

@media (max-width: 768px) {
    .skills-icon-grid {
        gap: 16px;
    }

    .skill-icon-box {
        width: 70px;
        height: 70px;
        padding: 12px;
        border-radius: 10px;
    }

    .skill-icon-box svg {
        width: 36px;
        height: 36px;
    }

    .skill-icon-box::after {
        display: none;
    }

    .skill-icon-box:nth-child(odd),
    .skill-icon-box:nth-child(even) {
        animation: none;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-tag {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    overflow: hidden;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-screenshot {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder svg {
    width: 64px;
    height: 64px;
    fill: var(--accent-start);
    opacity: 0.5;
}

.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent-start);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.project-link:hover {
    color: var(--accent-start);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* ===== Articles Section ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.article-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition);
}

.article-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
}

.article-date {
    font-size: 12px;
    color: var(--accent-start);
    margin-bottom: 12px;
    display: block;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-start);
    transition: gap var(--transition);
}

.article-link:hover {
    gap: 12px;
}

.article-link svg {
    width: 16px;
    height: 16px;
}

.articles-more-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.articles-more-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    opacity: 0.6;
    transition: all 0.3s ease;
}

.articles-more-indicator span:nth-child(2) {
    opacity: 0.8;
}

.articles-more-indicator span:nth-child(3) {
    opacity: 1;
}

.articles-more-indicator:hover span {
    animation: moreDots 1.4s ease-in-out infinite;
}

.articles-more-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.articles-more-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.articles-more-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes moreDots {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.articles-cta {
    text-align: center;
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-text h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 400;
}

.contact-text a,
.contact-text span {
    font-size: 18px;
    color: var(--text-primary);
}

.contact-text a:hover {
    color: var(--accent-start);
}

.contact-social h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.social-links-large {
    display: flex;
    gap: 16px;
}

.social-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition);
}

.social-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
}

.social-card svg {
    width: 32px;
    height: 32px;
    fill: var(--text-secondary);
    transition: fill var(--transition);
}

.social-card:hover svg {
    fill: var(--accent-start);
}

.social-card span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

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

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

    .hero-interests {
        display: inline-block;
        text-align: left;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
        margin-bottom: 20px;
    }

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

    .about-stats {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--accent-start);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--accent-end);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 42px;
    }

    .section {
        padding: 60px 0;
    }

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

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .skills-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

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

    .skills-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .skill-icon-box {
        width: 64px;
        height: 64px;
    }
}

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

    .hero-name {
        font-size: 32px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .section-title {
        font-size: 28px;
    }

    .article-card {
        padding: 24px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 12px;
    }
}

/* ===== Image Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-start);
    transform: scale(1.1);
}

/* Make project images clickable */
.project-screenshot {
    cursor: pointer;
}

/* ===== Language Toggle ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.lang-toggle:hover {
    border-color: var(--accent-start);
}

.lang-opt.active {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-divider {
    opacity: 0.4;
}

/* ===== Experience Section ===== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-start);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all var(--transition);
}

.experience-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.experience-role {
    font-size: 20px;
    margin-bottom: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-company {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-start);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2px 10px;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.experience-location {
    font-size: 14px;
    color: var(--text-secondary);
}

.experience-date {
    font-size: 13px;
    color: var(--text-muted);
}

.experience-intro {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.experience-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.experience-bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.experience-bullets li strong {
    color: var(--text-primary);
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-tech span {
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent-start);
}

/* ===== Skills Focus Tags ===== */
.skills-focus {
    margin-top: 40px;
    text-align: center;
}

.skills-focus-title {
    font-size: 18px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-focus .skill-tags {
    justify-content: center;
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 10px;
    }

    .experience-card {
        padding: 22px 20px;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-meta {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 12px;
    }
}