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

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--scroll-progress-bg);
    width: 0%;
    transition: width 0.1s ease;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-green);
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body:not(.dark-mode) .theme-toggle .fa-sun {
    display: none;
}

:root {
    --primary-green: #0db486;
    --primary-green-dark: #089069;
    --primary-green-light: #12d39d;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-tertiary: #000000;
    --border-primary: #dee2e6;
    --border-subtle: rgba(0, 0, 0, 0.05);
    --shadow-green: rgba(0, 0, 0, 0.05);
    --shadow-green-strong: rgba(0, 0, 0, 0.1);
    --shadow-card: rgba(0, 0, 0, 0.1);
    --gradient-green: linear-gradient(135deg, #0db486 0%, #089069 100%);
    --bg-gradient-main: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --bg-neutral-tag: #e9ecef;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --scroll-progress-bg: var(--primary-green);
}

body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-tertiary: #999999;
    --border-primary: #2a2a2a;
    --border-subtle: rgba(100, 255, 218, 0.1);
    --shadow-green: rgba(100, 255, 218, 0.25);
    --shadow-green-strong: rgba(100, 255, 218, 0.4);
    --shadow-card: rgba(0, 0, 0, 0.6);
    --gradient-green: linear-gradient(135deg, #64ffda 0%, #1de9b6 100%);
    --bg-gradient-main: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f1f0f 100%);
    --bg-gradient-secondary: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --card-gradient: linear-gradient(135deg, rgba(21, 21, 21, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    --bg-neutral-tag: var(--bg-tertiary);
    --primary-green: #64ffda;
    --primary-green-dark: #1de9b6;
    --primary-green-light: #a7ffeb;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.95);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    will-change: transform, box-shadow;
}

body.dark-mode .navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.navbar.scrolled {
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px var(--shadow-green);
    border-bottom-color: var(--border-subtle);
}

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

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient-main);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Decorative Elements */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
}

.deco-circle-1 {
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-green);
    top: 15%;
    right: 35%;
    animation: float 6s ease-in-out infinite;
}

.deco-circle-2 {
    width: 20px;
    height: 20px;
    background: var(--primary-green-light);
    top: 18%;
    right: 25%;
    animation: float 4s ease-in-out infinite 1s;
}

.deco-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-subtle);
    top: 60%;
    left: -40px;
    animation: float 8s ease-in-out infinite 2s;
}

.deco-circle-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(29, 233, 182, 0.2) 100%);
    bottom: 20%;
    right: 15%;
    backdrop-filter: blur(5px);
    animation: float 5s ease-in-out infinite 0.5s;
}

.deco-circle-5 {
    width: 15px;
    height: 15px;
    background: var(--primary-green-dark);
    /* Teal-ish green */
    top: 40%;
    right: 10%;
    animation: float 3s ease-in-out infinite 1.5s;
}

.deco-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.deco-dot-1 {
    top: 30%;
    left: 8%;
    animation: pulse 3s ease-in-out infinite;
}

.deco-dot-2 {
    bottom: 40%;
    left: 5%;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.deco-dot-3 {
    bottom: 30%;
    right: 8%;
    animation: pulse 3s ease-in-out infinite 1s;
}

.deco-ring-1 {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    top: 25%;
    right: 33%;
    animation: spin 15s linear infinite;
}

.deco-ring-1::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 70px);
}

/* Hero Left - Title */
.hero-left {
    animation: fadeInLeft 1s ease-out;
}

.hero-greeting {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-title .highlight {
    color: var(--primary-green);
    font-weight: 600;
    text-shadow: 0 0 30px var(--shadow-green),
        0 0 60px var(--shadow-green);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 30px var(--shadow-green), 0 0 60px var(--shadow-green);
    }

    50% {
        text-shadow: 0 0 40px var(--shadow-green-strong), 0 0 80px var(--shadow-green-strong);
    }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 5px;
}

.hero-subsubtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hero Center - Profile Image */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.profile-cutout {
    width: 700px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px var(--shadow-green));
    position: relative;
    z-index: 2;
    margin-top: -50px;
    margin-bottom: -100px;
    transition: filter 0.3s ease;
}

.profile-cutout:hover {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 60px var(--shadow-green-strong));
}

/* Hero Right - Info */
.hero-right {
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-info-box {
    margin-bottom: 25px;
}

.info-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.info-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.hero-description {
    font-size: 1.0rem;
    line-height: 1.8;
    color: var(--text-secondary);
    /* margin-bottom: 5px; */
}

.download-cv-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.download-cv-link:hover {
    color: var(--primary-green-light);
    gap: 12px;
}

.download-cv-link i {
    font-size: 1.2rem;
}

/* Chat Button */
.hero-chat-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-chat-btn span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-chat-btn i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.btn-demo,
.btn-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--bg-primary);
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 15px var(--shadow-green),
        0 0 20px var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--primary-green-light);
    border-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-green-strong),
        0 0 40px var(--shadow-green-strong);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Profile Card */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.profile-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.icon-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.icon-item:nth-child(1) {
    top: 20px;
    right: 20px;
}

.icon-item:nth-child(2) {
    bottom: 20px;
    left: 20px;
}

.icon-item:nth-child(3) {
    top: 50%;
    right: -20px;
}

.icon-item:nth-child(4) {
    bottom: 50%;
    left: -20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-primary);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid currentColor;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - See main definition below */
.about {
    background-color: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--border-subtle) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--border-subtle) 0%, transparent 50%);
    pointer-events: none;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
    /* Added */
    text-justify: inter-word;
    /* Added */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.skill-tag {
    background: var(--gradient-green);
    color: var(--bg-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--shadow-green),
        0 0 20px rgba(0, 255, 136, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px var(--shadow-green-strong),
        0 0 30px var(--shadow-green);
}

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}


.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-marker {
    position: absolute;
    right: -8px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--border-primary);
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
    right: auto;
}

.timeline-content {
    background: var(--card-gradient);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    will-change: transform;
}

.timeline-content:hover {
    box-shadow: 0 12px 40px var(--shadow-green),
        0 0 0 1px var(--primary-green);
    border-color: var(--primary-green);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.timeline-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.timeline-institution {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.timeline-location {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-grade {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-thesis {
    font-style: italic;
    color: var(--text-secondary);
    text-align: justify;
    /* Added */
    text-justify: inter-word;
    /* Added */
}

.timeline-specialization {
    text-align: justify;
    /* Added */
    text-justify: inter-word;
    /* Added */
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.timeline-span {
    margin-bottom: 10px;
}

.edu-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Experience Section */
.experience {
    background-color: var(--bg-primary);
}

.experience-grid {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 30px;
}

.experience-card {
    background: var(--card-gradient);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    perspective: 1000px;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.6s;
}

.experience-card:hover::before {
    left: 100%;
}

.experience-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg) translateZ(20px);
    box-shadow: 0 20px 50px var(--shadow-green-strong);
    border-color: var(--primary-green);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.exp-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-bg-white {
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    margin-right: 15px;
}

.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.company {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0px;
}

.achievements {
    list-style: none;
    text-align: justify;
    /* Added */
    text-justify: inter-word;
    /* Added */
}

.achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin-top: 50px;
}

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

.project-card {
    display: flex;
    background: var(--card-gradient);
    border-radius: 20px;
    box-shadow: var(--shadow-card),
        0 0 0 1px var(--border-subtle);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-green-strong),
        0 0 0 1px var(--primary-green);
    border-color: var(--primary-green);
}

.project-domains {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.domain-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-tag.robotics {
    background: #FEF3C7;
    /* amber */
    color: #B45309;
}

.domain-tag.cad {
    background: #ECFDF5;
    /* mint green */
    color: #047857;
}

.domain-tag.cae {
    background: #E0F2FE;
    /* sky blue */
    color: #0369A1;
}

.domain-tag.ai {
    background: #FEE2E2;
    /* red */
    color: #B91C1C;
}

.domain-tag.cv {
    background: #EDE9FE;
    /* violet */
    color: #6D28D9;
}

.domain-tag.vr {
    background: #FFE4E6;
    /* rose */
    color: #BE123C;
}

.domain-tag.game {
    background: #FFF7ED;
    /* orange */
    color: #C2410C;
}

.domain-tag.healthcare {
    background: #DCFCE7;
    /* green */
    color: #166534;
}

.domain-tag.automation {
    background: #FCE7F3;
    /* pink */
    color: #BE185D;
}

.domain-tag.iot {
    background: #EEF2FF;
    /* indigo */
    color: #4338CA;
}

.domain-tag.additive {
    background: #F3E8FF;
    /* purple */
    color: #7E22CE;
}

.domain-tag.simulation {
    background: #F1F5F9;
    /* slate / neutral */
    color: #334155;
}


.project-image {
    width: 320px;
    min-width: 320px;
    height: auto;
    overflow: hidden;
    background: var(--bg-gradient-secondary);
}

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

.img-shift-right {
    object-position: 75% center;
}

.img-shift-right-subtle {
    object-position: 60% center;
}

.project-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.project-features {
    margin-bottom: 20px;
}

.project-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--bg-neutral-tag);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
}

.project-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-demo {
    flex: 1;
    background: var(--gradient-green);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-green),
        0 0 20px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

body.dark-mode .btn-demo {
    color: var(--bg-primary);
}

.btn-demo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-demo:hover::before {
    width: 200px;
    height: 200px;
}

.btn-demo:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-green-strong),
        0 0 30px var(--shadow-green);
}

.btn-code {
    flex: 1;
    background: var(--bg-neutral-tag);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-code:hover {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.about-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.language-skills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-neutral-tag);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.language-name {
    font-weight: 500;
    color: var(--text-primary);
}

.language-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-primary);
    /* Always contrast with primary-green */
    background: var(--primary-green);
    padding: 4px 8px;
    border-radius: 4px;
}

/* In Light Mode, primary-green is darker, so we might want white text */
body:not(.dark-mode) .language-level {
    color: #ffffff;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-neutral-tag);
    /* Neutral Dark Grey */
    color: var(--primary-green);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--bg-card);
    border-color: var(--primary-green);
}

.tool-tag {
    display: inline-block;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    /* Will be black in light mode */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.tool-tag:hover {
    background: var(--bg-card);
    border-color: var(--primary-green);
}



@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-left {
        grid-column: 1;
    }

    .hero-center {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .hero-right {
        grid-column: 1;
    }

    .profile-cutout {
        max-width: 320px;
        max-height: 420px;
    }

    .hero-greeting {
        font-size: 2rem;
    }

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

    .about-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .about-sidebar {
        order: -1;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }

    .project-content {
        padding: 20px;
    }
}

/* Publications Section */
.publications {
    padding: 80px 0;
    background: var(--bg-primary);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.publication-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-green);
    border-color: var(--primary-green);
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.publication-venue {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.publication-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.publication-link:hover {
    color: var(--primary-green-light);
}

/* Certificates Section */
.certificates {
    padding: 80px 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.certificates .section-title {
    color: var(--text-primary);
}

.certificates .section-subtitle {
    color: var(--text-secondary);
}

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

.certificate-card {
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card),
        0 0 0 1px var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    perspective: 1000px;
}

.certificate-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-green);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.certificate-card:hover::after {
    opacity: 0.3;
}

.certificate-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg) translateZ(20px);
    box-shadow: 0 16px 48px var(--shadow-green-strong),
        0 0 0 1px var(--primary-green);
    border-color: var(--primary-green);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ffffff;
    /* Consistent white text on green icons */
}

body.dark-mode .certificate-icon {
    color: var(--bg-primary);
    /* Keep dark text on light green in dark mode */
}

.certificate-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.certificate-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.certificate-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-primary);
}

.certificate-link:hover {
    background: var(--bg-card);
    transform: translateX(5px);
    border-color: var(--primary-green);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--card-gradient);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card),
        0 0 0 1px var(--border-subtle);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    perspective: 1000px;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--border-subtle) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.achievement-card:hover {
    transform: translateY(-10px) rotateX(-2deg) rotateY(2deg) translateZ(20px);
    box-shadow: 0 20px 60px var(--shadow-green-strong),
        0 0 0 1px var(--primary-green),
        inset 0 0 60px rgba(0, 255, 136, 0.05);
    border-color: var(--primary-green);
}

.achievement-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: #ffffff;
    box-shadow: 0 8px 24px var(--shadow-green),
        0 0 40px var(--shadow-green);
    transition: all 0.3s ease;
}

body.dark-mode .achievement-icon {
    color: var(--bg-primary);
}

.achievement-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px var(--shadow-green-strong),
        0 0 60px var(--shadow-green-strong);
}

.achievement-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.achievement-org {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.achievement-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-gradient-secondary);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--border-subtle) 0%, transparent 50%);
    pointer-events: none;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--text-primary);
}

.contact .section-subtitle {
    color: var(--text-secondary);
}

.contact .section-title::after {
    background: var(--primary-green);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-neutral-tag);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-green);
    opacity: 1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 20px;
    background: var(--bg-neutral-tag);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.social-link:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
    transform: translateX(10px);
}

.social-link i {
    font-size: 1.5rem;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

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

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

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

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.3s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        border-bottom: 1px solid var(--border-primary);
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 20px 0;
    }

    .hero-left {
        order: 2;
    }

    .hero-center {
        order: 1;
    }

    .hero-right {
        order: 3;
    }

    .hero-greeting {
        font-size: 1.8rem;
    }

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

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

    .profile-cutout {
        max-width: 280px;
        max-height: 380px;
    }

    .hero-decorations {
        display: none;
    }

    .hero-chat-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }

    .hero-info-box {
        text-align: center;
    }

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

    .download-cv-link {
        justify-content: center;
    }

    .about-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        margin-left: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 30px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        left: -8px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: -8px;
    }

    .education-timeline::before {
        left: 0;
        transform: none;
    }

    .timeline-header {
        flex-direction: column;
        align-items: start;
    }

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

    .card-header,
    .project-header {
        flex-direction: column;
        align-items: start;
    }

    .card-header h3,
    .project-header h3 {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

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

    section {
        padding: 50px 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-greeting {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-subsubtitle {
        font-size: 0.9rem;
    }

    .info-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .profile-cutout {
        max-width: 240px;
        max-height: 320px;
    }

    .experience-grid,
    .achievements-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid {
        gap: 20px;
    }

    .experience-card,
    .project-card,
    .certificate-card,
    .achievement-card {
        padding: 20px;
    }

    .card-header h3,
    .project-content h3,
    .certificate-content h3,
    .achievement-card h3 {
        font-size: 1.1rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .btn-demo,
    .btn-code {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .achievement-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .certificate-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-demo,
    .btn-code {
        width: 100%;
    }

    .social-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Journey Section */
.journey {
    background-color: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.journey-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.journey-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.journey-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.journey-interactive {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

/* Timeline Control */
.journey-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--bg-tertiary);
}

.journey-timeline::-webkit-scrollbar {
    height: 6px;
}

.journey-timeline::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.journey-timeline::-webkit-scrollbar-thumb {
    background-color: var(--primary-green);
    border-radius: 3px;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    min-width: 120px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-step:hover {
    transform: translateY(-5px);
}

.step-dot {
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 3px solid var(--border-primary);
    border-radius: 50%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-step.active .step-dot {
    background: var(--primary-green);
    border-color: var(--primary-green-light);
    box-shadow: 0 0 15px var(--shadow-green-strong);
}

.step-label {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.step-label small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.timeline-step.active .step-label {
    color: var(--primary-green);
}

.step-line {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-primary);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Hide line for the last element */
.timeline-step:last-child .step-line {
    display: none;
}

.timeline-step.active ~ .timeline-step .step-line {
    background: var(--border-primary);
}

.timeline-step.active .step-line {
    background: var(--primary-green);
}

.timeline-step:has(~ .timeline-step.active) .step-line {
    background: var(--primary-green);
}

/* Globe Container */
.globe-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    border: 1px solid var(--border-subtle);
}

.globe-wrapper:active {
    cursor: grabbing;
}

#globeViz {
    width: 100%;
    height: 100%;
}

/* Info Overlay */
.globe-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    max-width: 320px;
    pointer-events: none;
}

body.dark-mode .globe-info-overlay {
    background: rgba(21, 21, 21, 0.9);
}

.globe-info-overlay.show {
    transform: translateY(0);
    opacity: 1;
}

#globe-info-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.globe-info-content h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.globe-info-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.globe-info-time {
    font-size: 0.8rem !important;
    color: var(--primary-green) !important;
    font-weight: 600;
}

/* Custom Marker Styling */
.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary-green);
  position: absolute;
  transform: rotate(-45deg);
  left: -15px;
  top: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.marker-pin:hover {
  transform: rotate(-45deg) scale(1.1);
  background: var(--primary-green-light);
  z-index: 100;
}

.marker-pin::after {
  content: '';
  width: 24px;
  height: 24px;
  background: white;
  position: absolute;
  border-radius: 50%;
}

.marker-logo {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
    transform: rotate(45deg);
    object-fit: contain;
    border-radius: 50%;
    background: white;
}

/* Responsiveness adjustments for Journey section */
@media (max-width: 768px) {
    .journey-timeline {
        padding-bottom: 15px;
    }
    
    .timeline-step {
        min-width: 100px;
    }
    
    .globe-wrapper {
        height: 350px;
    }
    
    .globe-info-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .journey-interactive {
        padding: 15px;
    }
}