:root {
    --primary: #6200EA;
    --primary-dark: #3700B3;
    --primary-light: #BB86FC;
    --secondary: #03DAC6;
    --secondary-dark: #018786;
    --background: #121212;
    --surface: #1e1e1e;
    --error: #CF6679;
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #ffffff;
    --on-surface: #ffffff;
    --on-error: #000000;
    --high-emphasis: rgba(255, 255, 255, 0.87);
    --medium-emphasis: rgba(255, 255, 255, 0.6);
    --disabled: rgba(255, 255, 255, 0.38);
    --transition-normal: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, height 0.3s ease;
    opacity: 0.5;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 9990;
    pointer-events: none;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 1s ease, transform 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.loading-content {
    width: 90%;
    max-width: 700px;
}

.terminal {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 12px;
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-button:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background-color: #27c93f;
}

.terminal-body {
    padding: 20px;
    color: var(--high-emphasis);
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
}

#loading-text {
    white-space: pre-wrap;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.logo {
    animation: logoFloat 6s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--high-emphasis);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--high-emphasis);
    transition: all 0.3s ease;
    border-radius: 3px;
}

main {
    perspective: 1000px;
}

.section {
    min-height: 100vh;
    padding: 100px 50px;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--secondary), transparent);
}

.section-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

.home-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--on-background);
    line-height: 1.2;
}

.glitch {
    position: relative;
    animation: glitch-skew 2s infinite linear alternate-reverse;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-light);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.65deg); }
    5% { clip: rect(9px, 9999px, 85px, 0); transform: skew(0.87deg); }
    10% { clip: rect(21px, 9999px, 98px, 0); transform: skew(0.36deg); }
    15% { clip: rect(79px, 9999px, 11px, 0); transform: skew(0.03deg); }
    20% { clip: rect(38px, 9999px, 53px, 0); transform: skew(0.45deg); }
    25% { clip: rect(99px, 9999px, 34px, 0); transform: skew(0.39deg); }
    30% { clip: rect(36px, 9999px, 48px, 0); transform: skew(0.44deg); }
    35% { clip: rect(98px, 9999px, 72px, 0); transform: skew(0.98deg); }
    40% { clip: rect(76px, 9999px, 87px, 0); transform: skew(0.85deg); }
    45% { clip: rect(82px, 9999px, 37px, 0); transform: skew(0.21deg); }
    50% { clip: rect(25px, 9999px, 100px, 0); transform: skew(0.62deg); }
    55% { clip: rect(82px, 9999px, 12px, 0); transform: skew(0.21deg); }
    60% { clip: rect(48px, 9999px, 22px, 0); transform: skew(0.05deg); }
    65% { clip: rect(95px, 9999px, 68px, 0); transform: skew(0.4deg); }
    70% { clip: rect(2px, 9999px, 96px, 0); transform: skew(0.12deg); }
    75% { clip: rect(59px, 9999px, 68px, 0); transform: skew(0.58deg); }
    80% { clip: rect(70px, 9999px, 14px, 0); transform: skew(0.31deg); }
    85% { clip: rect(30px, 9999px, 30px, 0); transform: skew(0.94deg); }
    90% { clip: rect(56px, 9999px, 3px, 0); transform: skew(0.19deg); }
    95% { clip: rect(86px, 9999px, 14px, 0); transform: skew(0.35deg); }
    100% { clip: rect(10px, 9999px, 99px, 0); transform: skew(0.03deg); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(36px, 9999px, 82px, 0); transform: skew(0.05deg); }
    5% { clip: rect(65px, 9999px, 22px, 0); transform: skew(0.65deg); }
    10% { clip: rect(65px, 9999px, 96px, 0); transform: skew(0.89deg); }
    15% { clip: rect(85px, 9999px, 25px, 0); transform: skew(0.26deg); }
    20% { clip: rect(91px, 9999px, 59px, 0); transform: skew(0.43deg); }
    25% { clip: rect(45px, 9999px, 48px, 0); transform: skew(0.95deg); }
    30% { clip: rect(58px, 9999px, 95px, 0); transform: skew(0.16deg); }
    35% { clip: rect(14px, 9999px, 86px, 0); transform: skew(0.69deg); }
    40% { clip: rect(10px, 9999px, 27px, 0); transform: skew(0.09deg); }
    45% { clip: rect(91px, 9999px, 79px, 0); transform: skew(0.78deg); }
    50% { clip: rect(52px, 9999px, 2px, 0); transform: skew(0.01deg); }
    55% { clip: rect(31px, 9999px, 52px, 0); transform: skew(0.13deg); }
    60% { clip: rect(46px, 9999px, 15px, 0); transform: skew(0.58deg); }
    65% { clip: rect(66px, 9999px, 61px, 0); transform: skew(0.98deg); }
    70% { clip: rect(42px, 9999px, 72px, 0); transform: skew(0.61deg); }
    75% { clip: rect(94px, 9999px, 74px, 0); transform: skew(0.18deg); }
    80% { clip: rect(68px, 9999px, 12px, 0); transform: skew(0.48deg); }
    85% { clip: rect(90px, 9999px, 32px, 0); transform: skew(0.79deg); }
    90% { clip: rect(89px, 9999px, 64px, 0); transform: skew(0.15deg); }
    95% { clip: rect(47px, 9999px, 41px, 0); transform: skew(0.1deg); }
    100% { clip: rect(34px, 9999px, 19px, 0); transform: skew(0.63deg); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-1deg); }
    20% { transform: skew(1deg); }
    30% { transform: skew(0deg); }
    40% { transform: skew(-1deg); }
    50% { transform: skew(1deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    90% { transform: skew(0deg); }
    100% { transform: skew(-1deg); }
}

.title-container {
    overflow: hidden;
    height: 50px;
    margin-bottom: 30px;
}

.title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--medium-emphasis);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.5s forwards;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.8s forwards;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button.primary {
    background-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.3);
}

.cta-button.primary::before {
    background-color: var(--primary-dark);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--on-background);
    border: 2px solid var(--primary-light);
}

.cta-button.secondary::before {
    background-color: var(--primary-light);
}

.cta-button.secondary:hover {
    color: var(--on-primary);
}

.home-visual {
    flex: 1;
    max-width: 500px;
    height: 500px;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 1s 0.8s forwards;
}

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

#matrix-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

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

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--primary-light);
    border-bottom: 3px solid var(--primary-light);
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0%, 100% {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        transform: rotate(45deg) translate(5px, 5px);
    }
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--medium-emphasis);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.home-shape-1, .home-shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    z-index: 1;
}

.home-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: floating 20s infinite alternate;
}

.home-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: floating 15s infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.section-about {
    background-color: var(--background);
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-sphere-container {
    width: 100%;
    height: 400px;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(187, 134, 252, 0.3));
}

#skills-sphere {
    width: 100%;
    height: 100%;
}

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

.highlight-box {
    background: rgba(30, 30, 30, 0.6);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-20px);
    opacity: 0;
}

.highlight-box.animate {
    animation: slideIn 0.8s forwards;
}

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

.highlight-box h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.highlight {
    font-weight: bold;
    color: var(--primary-light);
}

.skills-container {
    margin-bottom: 30px;
    transform: translateX(-20px);
    opacity: 0;
}

.skills-container.animate {
    animation: slideIn 0.8s 0.2s forwards;
}

.skills-container h3 {
    margin-bottom: 20px;
    color: var(--high-emphasis);
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

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

.skill-tag {
    background: rgba(30, 30, 30, 0.8);
    color: var(--medium-emphasis);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    animation: pulse 3s infinite alternate;
    animation-delay: calc(var(--animation-order) * 0.2s);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.skill-tag:hover {
    background: rgba(98, 0, 234, 0.2);
    color: var(--high-emphasis);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.contact-info {
    margin-top: 40px;
    transform: translateX(-20px);
    opacity: 0;
}

.contact-info.animate {
    animation: slideIn 0.8s 0.4s forwards;
}

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

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background-color: var(--primary);
    transform: scale(1.1);
}

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

.contact-item a:hover {
    color: var(--secondary);
}

.section-projects {
    background-color: var(--background);
    position: relative;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.project-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
    border-radius: 15px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg) scale(1.05);
}

.project-front, .project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.project-front {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.4), rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-back {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.9));
    transform: rotateY(180deg);
    backdrop-filter: blur(5px);
    justify-content: space-between;
    overflow: hidden;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.project-front h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--high-emphasis);
}

.project-front p {
    color: var(--medium-emphasis);
    flex-grow: 1;
}

.card-arrow {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    background: rgba(98, 0, 234, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.project-card:hover .card-arrow {
    background-color: var(--primary);
    transform: scale(1.1);
}

.project-back h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--high-emphasis);
}

.project-back ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.project-back ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--medium-emphasis);
}

.project-back ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

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

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-light);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--medium-emphasis);
}

.iframe-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    transform: scale(0.8);
    transform-origin: 0 0;
    border: none;
}

.demo-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: center;
    transition: all 0.3s ease;
}

.demo-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    background: rgba(30, 30, 30, 0.8);
    color: var(--medium-emphasis);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-tag:hover {
    background: rgba(98, 0, 234, 0.2);
    color: var(--high-emphasis);
    border-color: var(--primary-light);
}

.project-showcase {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(30, 30, 30, 0.8);
}

.showcase-header h3 {
    font-size: 1.5rem;
    color: var(--high-emphasis);
}

.showcase-controls {
    display: flex;
    gap: 15px;
}

.showcase-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(98, 0, 234, 0.2);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-control:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.showcase-container {
    position: relative;
    min-height: 600px;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(98, 0, 234, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.showcase-progress {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transition: width 0.3s ease;
}

.showcase-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.showcase-item.active {
    opacity: 1;
    z-index: 1;
}

.showcase-content {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 30px;
}

.showcase-info {
    flex: 1;
    max-width: 30%;
    display: flex;
    flex-direction: column;
}

.showcase-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--high-emphasis);
}

.showcase-info p {
    color: var(--medium-emphasis);
    margin-bottom: 30px;
}

.showcase-details {
    background: rgba(30, 30, 30, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin-top: auto;
}

.showcase-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.showcase-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.showcase-demo {
    flex: 2;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.showcase-demo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.code-viewer {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.code-header {
    background: rgba(30, 30, 30, 0.9);
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--medium-emphasis);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-viewer pre {
    padding: 15px;
    overflow: auto;
    height: calc(100% - 40px);
    margin: 0;
    color: var(--high-emphasis);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.compiler-demo {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
    padding: 15px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px;
}

.code-editor {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.9);
}

.code-editor textarea {
    width: 100%;
    height: calc(100% - 40px);
    padding: 15px;
    border: none;
    background: rgba(20, 20, 20, 0.9);
    color: var(--high-emphasis);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: none;
}

.code-editor textarea:focus {
    outline: none;
}

.compile-button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compile-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.output-viewer {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.9);
}

.output-viewer pre {
    padding: 15px;
    margin: 0;
    height: calc(100% - 40px);
    overflow: auto;
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.section-experience {
    background-color: var(--background);
}

.experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--primary-light),
        var(--secondary),
        var(--primary-light),
        transparent);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--on-primary);
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-icon.animate {
    opacity: 1;
    transform: scale(1);
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-light);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.timeline-details {
    color: var(--medium-emphasis);
}

.timeline-details ul {
    list-style-type: none;
    margin: 15px 0;
}

.timeline-details ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.timeline-details ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.timeline-links {
    margin-top: 20px;
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.timeline-link:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.section-contact {
    background-color: var(--background);
    position: relative;
}

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

.contact-form-container {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1rem;
    color: var(--medium-emphasis);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--high-emphasis);
    background: transparent;
    border: none;
    outline: none;
}

.form-group .form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--medium-emphasis);
}

.form-group .form-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line::after,
.form-group textarea:focus ~ .form-line::after {
    width: 100%;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    transform: translateY(-20px) scale(0.8);
    color: var(--primary-light);
}

.submit-button {
    align-self: flex-start;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.submit-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-button:hover {
    box-shadow: 0 5px 15px rgba(98, 0, 234, 0.3);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-header {
    background: var(--primary);
    padding: 20px;
}

.contact-info-header h3 {
    color: var(--on-primary);
    font-size: 1.5rem;
}

.contact-info-body {
    padding: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: rgba(98, 0, 234, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-detail:hover i {
    background-color: var(--primary);
    transform: scale(1.1);
}

.contact-detail h4 {
    font-size: 1.1rem;
    color: var(--high-emphasis);
    margin-bottom: 5px;
}

.contact-detail p {
    color: var(--medium-emphasis);
}

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

.contact-detail a:hover {
    color: var(--secondary);
}

.interactive-element {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

#contact-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

footer {
    background-color: var(--surface);
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--medium-emphasis);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--medium-emphasis);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--on-primary);
    transform: translateY(-5px);
}

.footer-copyright {
    color: var(--disabled);
    text-align: center;
    font-size: 0.9rem;
}

.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-nav-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--on-primary);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-nav-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.floating-nav-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-nav.active .floating-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--surface);
    color: var(--medium-emphasis);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.floating-nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.floating-nav-item.active, 
.floating-nav-item:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.floating-nav-item:hover span {
    opacity: 1;
    width: auto;
    margin-left: 5px;
}

@media (max-width: 1200px) {
    .section {
        padding: 80px 30px;
    }
    
    .home-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .home-text {
        text-align: center;
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column-reverse;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .showcase-content {
        flex-direction: column;
    }
    
    .showcase-info {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .showcase-item {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 0;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .showcase-container {
        min-height: 450px;
    }
    
    .showcase-content {
        flex-direction: column;
    }
    
    .showcase-info {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .showcase-demo {
        height: 350px;
    }
    
    .project-cards {
        gap: 20px;
    }
    
    .floating-nav-item span {
        opacity: 1;
        width: auto;
    }
    
    .floating-nav-menu {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .home-visual {
        height: 300px;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .skill-categories {
        grid-template-columns: 1fr;
    }
    
    .showcase-container {
        min-height: 400px;
    }
    
    .showcase-demo {
        height: 300px;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .animated-icon {
        width: 60px;
        height: 60px;
    }
}

.animated-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.svg-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--primary-dark);
    color: var(--on-primary);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-15deg) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.lottie-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}