/* Global Reset and Variables */
:root {
    --primary-color: #0a1a2e;
    --secondary-color: #10263d;
    --accent-color: #00aaff;
    --highlight: #00aaff;
    --dark-bg: #071320;
    --dark-surface: #0c1f30;
    --dark-surface-lighter: #102a3f;
    --text-color: #e6f5ff;
    --light-text: #b8d6f0;
    --font-main: 'Roboto', sans-serif;
    --font-code: 'Source Code Pro', monospace;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --glow-blue: 0 0 10px rgba(0, 170, 255, 0.5), 0 0 20px rgba(0, 170, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.02em;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight) var(--dark-surface);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--highlight);
    border-radius: 4px;
}

.external-link-component {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.external-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.external-card {
    display: flex;
    align-items: center;
    background: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.external-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 170, 255, 0.05) 0%,
        rgba(0, 170, 255, 0) 70%
    );
    pointer-events: none;
}

.external-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 170, 255, 0), 
        rgba(0, 170, 255, 0.5) 50%, 
        rgba(0, 170, 255, 0)
    );
}

.external-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-right: 1.2rem;
    overflow: hidden;
}

.external-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.external-info {
    flex: 1;
}

.external-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.external-website {
    font-size: 0.9rem;
    color: var(--highlight);
    font-family: var(--font-code);
}

.external-arrow {
    color: var(--highlight);
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.external-link:hover .external-card {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.5);
}

.external-link:hover .external-arrow {
    transform: translateX(5px);
}

/* სკანერის ეფექტი hover-ზე */
.external-link:hover .external-card::before {
    background: radial-gradient(
        circle at center,
        rgba(0, 170, 255, 0.1) 0%,
        rgba(0, 170, 255, 0) 70%
    );
}

/* მობილური მოწყობილობებისთვის */
@media (max-width: 576px) {
    .external-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .external-logo {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 70px;
        height: 70px;
    }
    
    .external-arrow {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Sparkle Tech Keywords */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-family: var(--font-code);
    font-weight: 200;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    animation: sparkleFloat 12s linear forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(0.2px);
}

.sparkle span {
    display: inline-block;
}

.sparkle-text-rotate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: textGlow 4s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(70, 118, 183, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(70, 118, 183, 0.5);
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translate(var(--startX), var(--startY)) rotate(var(--startRotate));
        opacity: 0;
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        transform: translate(var(--endX), var(--endY)) rotate(var(--endRotate));
        opacity: 0;
    }
}

.sparkle-icon {
    font-size: 0.8em;
    margin-right: 0.4em;
    color: var(--highlight);
    opacity: 0.8;
}

/* Code Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Advanced Tech/Sci-Fi Cursor */
#cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    width: 40px;
    height: 40px;
}

#cursor .cursor-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

#cursor .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: #00aaff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.8), 0 0 16px rgba(0, 170, 255, 0.4);
    z-index: 3;
}

#cursor .cursor-center {
    width: 10px;
    height: 10px;
    border: 1px solid #00aaff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
    z-index: 2;
}

#cursor .cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 170, 255, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    z-index: 1;
    opacity: 0.8;
}

#cursor .cursor-ring-outer {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0, 170, 255, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
    z-index: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

#cursor .cursor-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid #00aaff;
    opacity: 0.8;
    z-index: 2;
}

#cursor .cursor-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

#cursor .cursor-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

#cursor .cursor-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

#cursor .cursor-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

#cursor .cursor-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

#cursor .cursor-crosshair-h,
#cursor .cursor-crosshair-v {
    position: absolute;
    background-color: rgba(0, 170, 255, 0.6);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.4);
}

#cursor .cursor-crosshair-h {
    width: 12px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cursor .cursor-crosshair-v {
    width: 1px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Code-themed scanner lines */
#cursor .cursor-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
}

#cursor .scanner-line {
    position: absolute;
    background-color: rgba(0, 170, 255, 0.8);
    box-shadow: 0 0 4px rgba(0, 170, 255, 0.8);
}

#cursor .scanner-line.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    animation: scannerAnimationH 2s infinite alternate ease-in-out;
}

#cursor .scanner-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    animation: scannerAnimationV 2s infinite alternate-reverse ease-in-out;
}

/* Code bits around cursor */
#cursor .code-bits {
    position: absolute;
    width: 100%;
    height: 100%;
    color: rgba(0, 170, 255, 0.6);
    font-size: 6px;
    font-family: var(--font-code);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cursor .code-bit {
    position: absolute;
    width: 10px;
    text-align: center;
}

#cursor .code-bit:nth-child(1) {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
}

#cursor .code-bit:nth-child(2) {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
}

#cursor .code-bit:nth-child(3) {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

#cursor .code-bit:nth-child(4) {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cursor states */
.cursor-active .cursor-ring {
    animation: pulseRing 2s infinite alternate;
}

.cursor-active .cursor-crosshair-h {
    width: 20px !important;
    opacity: 1 !important;
}

.cursor-active .cursor-crosshair-v {
    height: 20px !important;
    opacity: 1 !important;
}

.cursor-active .code-bits {
    opacity: 1 !important;
}

.cursor-active .cursor-ring-outer {
    transform: translate(-50%, -50%) rotate(135deg) !important;
    width: 44px !important;
    height: 44px !important;
}

/* Cursor animations */
@keyframes pulseRing {
    0% {
        box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

@keyframes scannerAnimationV {
    0% {
        transform: translateX(-8px);
    }
    100% {
        transform: translateX(8px);
    }
}

/* Navigation */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background-color: rgba(14, 42, 71, 0.8);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(14, 42, 71, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo svg {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 20;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Main Content */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.section-content {
    width: 100%;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 170, 255, 0), 
        rgba(0, 170, 255, 0.3) 20%, 
        rgba(0, 170, 255, 0.5) 50%, 
        rgba(0, 170, 255, 0.3) 80%, 
        rgba(0, 170, 255, 0)
    );
}

.container {
    background: rgba(10, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 170, 255, 0.1);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 170, 255, 0.2);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

.container * {
    cursor: none;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.2;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-smooth);
    transition-delay: 0.3s;
}

h1.visible {
    opacity: 1;
    transform: translateX(0);
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--highlight);
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.3s;
}

h2.visible {
    opacity: 1;
    transform: translateY(0);
}

h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width 0.8s ease;
    transition-delay: 0.8s;
}

h2.visible:after {
    width: 60px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h4 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-smooth);
    transition-delay: 0.5s;
}

p.visible {
    opacity: 1;
    transform: translateX(0);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.4s;
}

.subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    color: var(--light-text);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    transition-delay: 0.2s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    transition-delay: 0.4s;
}

.hero-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.code-box {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 300;
    color: var(--light-text);
    background: rgba(14, 42, 71, 0.6);
    border-left: 3px solid var(--highlight);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    transition-delay: 0.6s;
}

.code-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.code-box span {
    display: block;
    margin-bottom: 0.3rem;
}

.keyword {
    color: #ff79c6;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.number {
    color: #bd93f9;
}

.comment {
    color: #6272a4;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.8s;
}

.cta-button.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button:hover {
    background: var(--highlight);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--light-text);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--light-text);
    border-bottom: 2px solid var(--light-text);
    transform: translate(-50%, -60%) rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.profile-section {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-img {
    flex: 0 0 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-smooth);
    transition-delay: 0.4s;
}

.profile-img.visible {
    opacity: 1;
    transform: translateX(0);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.profile-img:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.profile-img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(70, 118, 183, 0.3);
    border-radius: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.profile-content {
    flex: 1;
}

.skills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.6s;
}

.skills-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(70, 118, 183, 0.15);
    border: 1px solid rgba(70, 118, 183, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: var(--font-code);
    font-weight: 300;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    animation: skillTagAppear 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes skillTagAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-tag:hover {
    background-color: rgba(70, 118, 183, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.5s;
}

.about-section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Experience Section */
.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(70, 118, 183, 0.8), rgba(70, 118, 183, 0.1));
    transform: translateX(24px);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--highlight);
    box-shadow: 0 0 10px rgba(70, 118, 183, 0.5);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(70, 118, 183, 0.8);
}

.timeline-icon {
    font-size: 0.8rem;
    color: var(--text-color);
    position: absolute;
    left: 25px;
    top: 15px;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.timeline-content {
    background: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(70, 118, 183, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-title {
    margin-bottom: 0.2rem;
}

.timeline-company {
    color: var(--highlight);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.timeline-date {
    padding: 0.3rem 0.8rem;
    background-color: rgba(70, 118, 183, 0.15);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--light-text);
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-department {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.timeline-list {
    list-style-type: none;
    margin-left: 0;
    margin-top: 1rem;
}

.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.timeline-list li:before {
    content: "•";
    color: var(--highlight);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(70, 118, 183, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(70, 118, 183, 0.4);
}

.project-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: all 0.5s ease;
}

.project-card:hover .project-bg {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(14, 42, 71, 0.9), transparent);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-category {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--highlight);
    font-family: var(--font-code);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.meta-item {
    color: var(--light-text);
}

.meta-item span {
    color: var(--highlight);
    font-weight: 400;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    flex: 1;
}

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

.tech-tag {
    padding: 0.4rem 0.8rem;
    background-color: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #a8d6f0;
    font-family: var(--font-code);
    transition: all 0.3s ease;
    margin: 0.2rem;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.1);
    letter-spacing: 0.03em;
}

.tech-tag:hover {
    background-color: rgba(0, 170, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
    color: #00aaff;
}

.project-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(70, 118, 183, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.view-details:hover {
    color: var(--text-color);
}

.view-details span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-details:hover span {
    transform: translateX(3px);
}

.project-status {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 300;
}

.status-completed {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-ongoing {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Project Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(21, 46, 75, 0.95);
    border: 1px solid rgba(70, 118, 183, 0.3);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: all 0.4s ease;
    opacity: 0;
    z-index: 9999;
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    position: relative;
    height: 250px;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.modal-overlay-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(21, 46, 75, 0.95), transparent);
}

.modal-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal-category {
    font-size: 1rem;
    font-weight: 300;
    color: var(--highlight);
    font-family: var(--font-code);
}

.modal-body {
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background-color: rgba(70, 118, 183, 0.2);
    border: 1px solid rgba(70, 118, 183, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(70, 118, 183, 0.4);
    transform: rotate(90deg);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 2rem 0 1rem;
    color: var(--highlight);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--highlight);
}

.section-title:first-child {
    margin-top: 0;
}

.project-description-full {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.info-item {
    background-color: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.5);
}

.info-label {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--light-text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: #00aaff;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}

.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.challenge, .solution {
    background-color: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.challenge:hover, .solution:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.5);
}

.challenge::before, .solution::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 170, 255, 0), 
        rgba(0, 170, 255, 0.5) 50%, 
        rgba(0, 170, 255, 0)
    );
}

.challenge::after, .solution::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 170, 255, 0.05) 0%,
        rgba(0, 170, 255, 0) 70%
    );
    pointer-events: none;
}

.challenge h4, .solution h4 {
    font-size: 1.1rem;
    font-weight: 300;
    color: #00aaff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    padding-bottom: 0.8rem;
}

.challenge h4 span, .solution h4 span {
    margin-right: 0.8rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.challenge p, .solution p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.challenge h4, .solution h4 {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--highlight);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.challenge h4 span, .solution h4 span {
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tech-list .tech-tag {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.results-list {
    margin: 1.5rem 0;
}

.result-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    background-color: rgba(14, 42, 71, 0.5);
    border: 1px solid rgba(70, 118, 183, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(70, 118, 183, 0.4);
}

.result-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--highlight);
}

.result-text {
    flex: 1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-smooth);
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(70, 118, 183, 0.15);
    border-radius: 10px;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--highlight);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: rgba(70, 118, 183, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

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

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

.contact-value a:hover {
    color: var(--highlight);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(70, 118, 183, 0.15);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--highlight);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: rgba(70, 118, 183, 0.3);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.contact-form {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-smooth);
}

.contact-form.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(70, 118, 183, 0.3);
    border-radius: 8px;
    background-color: rgba(14, 42, 71, 0.4);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: none;
}

.form-control::placeholder {
    color: rgba(184, 201, 228, 0.5);
}

.form-control:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 10px rgba(70, 118, 183, 0.3);
    background-color: rgba(14, 42, 71, 0.6);
}

textarea.form-control {
    min-height: 150px;
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--highlight);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 9;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--highlight);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top-arrow {
    width: 12px;
    height: 12px;
    border-left: 3px solid var(--text-color);
    border-top: 3px solid var(--text-color);
    transform: rotate(45deg);
    margin-top: 5px;
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem;
    background-color: rgba(14, 42, 71, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--light-text);
    margin-bottom: 0;
    opacity: 1;
    transform: none;
}

/* Interactive elements */
.interactive {
    transition: transform 0.3s ease;
}

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

/* Error Page Specific Styles */
.error-code {
    font-size: 8rem;
    font-weight: 200;
    color: var(--highlight);
    font-family: var(--font-code);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(70, 118, 183, 0.3);
    animation: glitch 3s infinite;
    position: relative;
}

@keyframes glitch {
    0% {
        text-shadow: 0 0 20px rgba(70, 118, 183, 0.3);
        transform: translateX(0);
    }
    2% {
        text-shadow: 2px 0 2px rgba(255, 0, 0, 0.3), -2px 0 2px rgba(0, 255, 255, 0.3);
        transform: translateX(2px);
    }
    4% {
        text-shadow: 2px 0 2px rgba(255, 0, 0, 0.3), -2px 0 2px rgba(0, 255, 255, 0.3);
        transform: translateX(-2px);
    }
    6% {
        text-shadow: 0 0 20px rgba(70, 118, 183, 0.3);
        transform: translateX(0);
    }
    100% {
        text-shadow: 0 0 20px rgba(70, 118, 183, 0.3);
        transform: translateX(0);
    }
}

.error-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    background: rgba(21, 46, 75, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(70, 118, 183, 0.2);
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-img {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .challenge-solution {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: rgba(14, 42, 71, 0.95);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 15;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

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

    .content-wrapper {
        padding: 7rem 1rem 3rem;
    }

    .container {
        padding: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .project-info {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .timeline::before {
        transform: translateX(19px);
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        left: 12px;
    }

    .timeline-icon {
        font-size: 0.6rem;
        left: 16px;
        top: 8px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

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

    .timeline-date {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .project-card {
        min-height: auto;
    }

    .project-header {
        height: 150px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .modal-header {
        height: 200px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

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

    .timeline-item {
        padding-left: 40px;
    }

    .timeline::before {
        transform: translateX(14px);
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        left: 9px;
    }

    .timeline-icon {
        font-size: 0.5rem;
        left: 15px;
        top: 10px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    #cursor .cursor-dot {
        width: 4px;
        height: 4px;
    }

    #cursor .cursor-circle {
        width: 30px;
        height: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

/* Typing Animation */
.typing {
    position: relative;
    display: inline-block;
}

.typing::after {
    content: '|';
    position: absolute;
    right: -8px;
    top: 0;
    color: var(--highlight);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, var(--highlight), #50c8e6, var(--highlight));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Loading Animation for project cards */
.loading-bar {
    height: 2px;
    width: 0;
    background: var(--highlight);
    position: absolute;
    bottom: 0;
    left: 0;
    animation: loadingBar 1.5s ease-out forwards;
}

@keyframes loadingBar {
    to {
        width: 100%;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader:before, .loader:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--highlight);
}

.loader:before {
    z-index: 10;
    animation: spin 1.5s infinite;
}

.loader:after {
    border: 3px solid rgba(70, 118, 183, 0.2);
}

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

/* Context Menu */
.context-menu {
    position: fixed;
    width: 200px;
    background: rgba(21, 46, 75, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(70, 118, 183, 0.3);
    padding: 0.5rem 0;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease;
    visibility: hidden;
}

.context-menu.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.context-menu-item {
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.context-menu-item:hover {
    background-color: rgba(70, 118, 183, 0.2);
}

.context-menu-item span {
    margin-right: 0.5rem;
    color: var(--highlight);
}

.context-menu-divider {
    height: 1px;
    background-color: rgba(70, 118, 183, 0.2);
    margin: 0.5rem 0;
}

/* 404 Page Center Container */
.error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(14, 42, 71, 0.9);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    margin-bottom: 5px;
}

.tooltip:hover:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(14, 42, 71, 0.9) transparent transparent transparent;
    z-index: 10;
    pointer-events: none;
}

/* Print Styles */
@media print {
    body, html {
        background-color: white !important;
        color: black !important;
    }
    
    .header, .footer, #cursor, .sparkle-container, #particles-canvas, 
    .scroll-indicator, .back-to-top, .nav-toggle, .modal-overlay {
        display: none !important;
    }
    
    .container, .timeline-content, .project-card {
        box-shadow: none !important;
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
    
    .content-wrapper {
        padding: 1cm !important;
    }
    
    h1, h2, h3, h4, p, .timeline-company, .project-title {
        color: black !important;
    }
}