/* ===========================
   Premium Design System
   =========================== */
:root {
    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Dark Mode Colors (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #6b6b7e;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-glow-pink: 0 0 40px rgba(240, 147, 251, 0.4);
    --shadow-glow-blue: 0 0 40px rgba(79, 172, 254, 0.4);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', monospace;
}

/* Light Mode */
body.dark-mode {
    --bg-primary: #f5f5f7;
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --bg-card: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a1f;
    --text-secondary: #4a4a5e;
    --text-muted: #8a8a9e;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-slow);
}

/* ===========================
   Animated Background
   =========================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.5) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.5) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: 8s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(150px, -150px) scale(1.15) rotate(90deg);
    }

    50% {
        transform: translate(-100px, 150px) scale(0.9) rotate(180deg);
    }

    75% {
        transform: translate(100px, 100px) scale(1.1) rotate(270deg);
    }
}

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ===========================
   Dark Mode Toggle - ENHANCED
   =========================== */
.dark-mode-toggle {
    position: fixed !important;
    top: var(--spacing-md);
    right: var(--spacing-md) !important;
    left: auto !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(102, 126, 234, 0.7);
    transition: all var(--transition-slow);
    z-index: 1000;
    overflow: hidden;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(102, 126, 234, 0.3),
            transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
}

.dark-mode-toggle:hover::before {
    opacity: 1;
}

.dark-mode-toggle:hover {
    transform: scale(1.2) rotate(15deg);
    box-shadow: var(--shadow-glow), 0 0 0 0 rgba(102, 126, 234, 0);
    border-color: rgba(102, 126, 234, 0.5);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

/* ===========================
   Language Mode Toggle
   =========================== */
.lang-toggle {
    position: fixed !important;
    top: var(--spacing-md);
    right: calc(var(--spacing-md) + 75px) !important;
    left: auto !important;
    width: 80px;
    height: 60px;
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    z-index: 1000;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.5);
}

.lang-toggle:active {
    transform: scale(0.95);
}

/* ===========================
   Container
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.profile-wrapper {
    margin-bottom: var(--spacing-lg);
    animation: fadeInScale 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: all var(--transition-slow);
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.4;
    filter: blur(30px);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
}

.title-line {
    display: block;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite, textFloat 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s, 0.5s;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.typing-effect {
    display: inline-block;
    border-right: 2px solid var(--text-secondary);
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-tags {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    animation: fadeInUp 1s ease-out both;
}

.tag:nth-child(1) {
    animation-delay: 0.5s;
}

.tag:nth-child(2) {
    animation-delay: 0.6s;
}

.tag:nth-child(3) {
    animation-delay: 0.7s;
}

.tag:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--glass-border);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.5);
}

.tag i {
    color: var(--text-primary);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}



/* ===========================
   Section Styles
   =========================== */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    font-family: var(--font-secondary);
    animation: gradientShift 4s ease infinite;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotate360 4s linear infinite;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.about-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-slow);
    animation: fadeInUp 1s ease-out both;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(102, 126, 234, 0.1),
            transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.4);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
    filter: blur(25px);
}

.about-card:hover .card-glow {
    opacity: 0.5;
}

.main-card {
    grid-column: 1;
    grid-row: 1 / 3;
    animation-delay: 0.1s;
}

.stats-card {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    animation-delay: 0.2s;
}

.mission-card {
    grid-column: 2;
    grid-row: 2;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    animation-delay: 0.3s;
}

.card-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.intro-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.9;
}

.highlight-text {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: gradientShift 4s ease infinite;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.stat-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.mission-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    animation: rocketLaunch 3s ease-in-out infinite;
}

@keyframes rocketLaunch {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.mission-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.mission-card p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

/* ===========================
   Subsection Title
   =========================== */
.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.subsection-title i {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Skills Section
   =========================== */
.skills-section {
    margin-top: var(--spacing-xl);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.skill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-slow);
    animation: fadeInUp 1s ease-out both;
}

.skill-item:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-item:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-item:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-item:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.05);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all var(--transition-base);
}

.skill-item:hover .skill-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: var(--shadow-glow-pink);
}

.skill-item h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   Journey Timeline
   =========================== */
.journey-section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline {
    position: relative;
    padding-left: 50px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding-top: 20px;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            rgba(102, 126, 234, 0.6),
            rgba(118, 75, 162, 0.6));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: block !important;
    clear: both !important;
    margin-bottom: 60px !important;
    padding-bottom: 20px !important;
    animation: fadeInRight 1s ease-out both;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    position: absolute;
    left: -57px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
    z-index: 2;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
        transform: scale(1.1);
    }
}

.timeline-content {
    display: block !important;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px 28px;
    min-height: 100px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-content:hover {
    transform: translateX(12px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.timeline-content h4 {
    font-size: 1.35rem;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-family: var(--font-secondary);
    font-weight: 500;
    display: block;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Links Section
   =========================== */
.links-section {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.links-container {
    display: grid;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: all var(--transition-slow);
    animation: fadeInRight 1s ease-out both;
}

.link-item:nth-child(1) {
    animation-delay: 0.1s;
}

.link-item:nth-child(2) {
    animation-delay: 0.2s;
}

.link-item:nth-child(3) {
    animation-delay: 0.3s;
}

.link-item:nth-child(4) {
    animation-delay: 0.4s;
}

.link-item:nth-child(5) {
    animation-delay: 0.5s;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateX(15px) scale(1.03);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: var(--shadow-lg);
}

.link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.blog-link:hover .link-bg {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15));
    opacity: 1;
}

.github-link:hover .link-bg {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    opacity: 1;
}

.linkedin-link:hover .link-bg {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.15), rgba(56, 249, 215, 0.15));
    opacity: 1;
}

.instagram-link:hover .link-bg {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.15), rgba(254, 225, 64, 0.15));
    opacity: 1;
}

.email-link:hover .link-bg {
    background: linear-gradient(135deg, rgba(48, 207, 208, 0.15), rgba(51, 8, 103, 0.15));
    opacity: 1;
}

.link-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-slow);
}

.blog-link .link-icon-wrapper {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.github-link .link-icon-wrapper {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.linkedin-link .link-icon-wrapper {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.3);
}

.instagram-link .link-icon-wrapper {
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 8px 20px rgba(250, 112, 154, 0.3);
}

.email-link .link-icon-wrapper {
    background: linear-gradient(135deg, #30cfd0, #330867);
    box-shadow: 0 8px 20px rgba(48, 207, 208, 0.3);
}

.link-item:hover .link-icon-wrapper {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.link-content {
    flex: 1;
}

.link-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all var(--transition-base);
}

.link-item:hover .link-content h3 {
    transform: translateX(5px);
}

.link-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.link-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-slow);
}

.link-item:hover .link-arrow {
    transform: translateX(12px) scale(1.3);
    color: var(--text-primary);
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
    animation: fadeInUp 1s ease-out;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 0.9rem;
}

.footer-tagline i.fa-heart {
    color: #f56565;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-tagline i.fa-code {
    color: var(--text-primary);
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }
}

.footer-links {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--text-muted);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .main-card {
        grid-column: 1;
        grid-row: auto;
    }

    .stats-card {
        grid-column: 1;
        grid-row: auto;
    }

    .mission-card {
        grid-column: 1;
        grid-row: auto;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .section-number {
        font-size: 3rem;
    }

    .link-item {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .link-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .link-content h3 {
        font-size: 1.1rem;
    }

    .link-content p {
        font-size: 0.85rem;
    }

    .dark-mode-toggle {
        width: 48px;
        height: 48px;
        top: var(--spacing-sm);
        right: var(--spacing-sm) !important;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-toggle {
        width: 65px;
        height: 48px;
        top: var(--spacing-sm);
        right: calc(var(--spacing-sm) + 55px) !important;
        font-size: 13px;
        gap: 4px;
        border-radius: 24px;
    }

    .hero-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .tag {
        justify-content: center;
    }

    .timeline {
        padding-left: 35px;
    }

    .timeline-dot {
        left: -44px;
        width: 16px;
        height: 16px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .link-item:hover {
        transform: translateY(-4px);
    }

    .link-arrow {
        display: none;
    }
}

/* ===========================
   Performance Optimizations
   =========================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   Scroll Indicator
   =========================== */
.scroll-indicator {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* ===========================
   Mobile Specific Animations
   =========================== */
@media (max-width: 768px) {

    /* Touch Feedback */
    .about-card:active,
    .link-item:active,
    .skill-item:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
    }

    /* Scroll Indicator More Visible */
    .scroll-indicator {
        animation: fadeInUp 1s ease-out 0.8s both, bounce 2.5s ease-in-out infinite;
    }

    /* Faster Entrance on Mobile */
    .hero-content,
    .about-card,
    .skill-item,
    .link-item {
        animation-duration: 0.8s;
    }
}

/* Touch Ripple Style */
.touch-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(0);
    animation: touchRipple 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes touchRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* ===========================
   Advanced Mobile Visuals & Magic
   =========================== */

/* 1. Scroll Progress Line (Top of Screen) */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 300% 300%;
    width: 0%;
    animation: gradientShift 2s ease infinite;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.7);
    transition: width 0.1s linear;
}

/* 2. Magical Card Border & Glow (Mobile Specific) */
@media (max-width: 768px) {

    .about-card,
    .link-item,
    .skill-item {
        position: relative;
        overflow: hidden;
        /* Contains the glow */
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(20, 20, 30, 0.6);
        /* Slightly darker for contrast */
    }

    /* The Moving Gradient Border - Pseudo Element */
    .about-card::after,
    .link-item::after,
    .skill-item::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(transparent,
                rgba(102, 126, 234, 0.8),
                transparent 30%);
        animation: rotateBorder 4s linear infinite;
        z-index: -2;
        opacity: 0.5;
    }

    /* Inner Content Background to sit on top of the border */
    .about-card::before,
    .link-item::before,
    .skill-item::before {
        content: '';
        position: absolute;
        inset: 2px;
        background: var(--bg-primary);
        /* Base background color */
        border-radius: inherit;
        z-index: -1;
        opacity: 0.95;
    }

    @keyframes rotateBorder {
        100% {
            transform: rotate(360deg);
        }
    }
}

/* ===========================
   Custom Cursor CSS
   =========================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #4facfe;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(79, 172, 254, 0.1);
    border-color: rgba(240, 147, 251, 0.5);
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(79, 172, 254, 0.4);
    border-color: #f093fb;
}

/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 769px) {

    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active .about-card,
    body.custom-cursor-active .skill-item,
    body.custom-cursor-active .link-item {
        cursor: none !important;
    }
}

/* Hacker Text Effect */
.dud {
    color: #f093fb;
    opacity: 0.7;

    font-family: 'Space Grotesk', monospace;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    /* Above cursor */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}