@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #050505;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #8b5cf6;
    --accent-light: #c4b5fd;
    --accent-glow: #a78bfa;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.4);
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.gradient-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1;
    animation: float 12s infinite alternate ease-in-out;
    pointer-events: none;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.4);
    top: -200px;
    left: -100px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.3);
    bottom: -100px;
    right: -100px;
    animation-delay: -6s;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 80px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

#about {
    padding: 60px 0 20px;
    scroll-margin-top: 100px;
}

.alt-bg {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s var(--ease-out);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    opacity: 1;
    color: var(--accent-light);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav-item:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text);
    border-radius: 3px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    transition: right 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.7;
    transition: all 0.3s;
    letter-spacing: -1px;
}

.mobile-nav-item:hover {
    opacity: 1;
    color: var(--accent-light);
    transform: scale(1.05);
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    text-align: center;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.greeting {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 20px 0 30px;
    line-height: 1.3;
    color: #f4f4f5;
}

.profile-bio {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: all 0.3s var(--ease-out);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
}

.social-icon:hover svg {
    fill: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    background-size: 200% auto;
    color: white;
    margin-right: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
    background-position: right center;
}

.btn.secondary {
    border: 1px solid var(--border);
    color: white;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.marquee-wrapper {
    overflow: hidden;
    margin: 60px 0;
}

.marquee-container {
    background: rgba(139, 92, 246, 0.1);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-light);
    padding: 30px 0;
    overflow: hidden;
    display: flex;
    position: relative;
    transform: rotate(-1.5deg) scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.05);
}

.marquee-content {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.8rem;
    animation: marquee 35s linear infinite;
    padding-right: 50px;
    letter-spacing: 1px;
}

.marquee-content span {
    -webkit-text-stroke: 1px rgba(196, 181, 253, 0.5);
    color: transparent;
    transition: 0.3s;
}

.marquee-content span:hover {
    color: var(--accent-light);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 15px rgba(196, 181, 253, 0.5);
}

.sep {
    opacity: 0.3;
    color: white !important;
    -webkit-text-stroke: 0 !important;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

.bio-wrapper {
    max-width: 900px;
}

.bio-text {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #d4d4d8;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 300;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.column-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    font-weight: 700;
    color: #fff;
}

.icon-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 45px;
    transition: 0.3s;
}

.timeline-item:hover {
    border-left-color: var(--accent);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: 0.3s;
}

.timeline-item:hover::before {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
}

.timeline-place {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
}

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

.skill-category {
    background: var(--glass-bg);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-pills span {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    transition: 0.3s;
    font-weight: 500;
}

.skill-category:hover .skill-pills span {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.skill-pills span:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(139, 92, 246, 0.1),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: -1;
}

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

.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.1);
}

.card-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-image {
    transform: scale(1.1) rotate(1deg);
}

.card-info {
    padding: 35px;
    padding-bottom: 95px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 0;
}

.tags span {
    font-size: 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--accent-light);
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    transition: 0.3s;
    position: absolute;
    bottom: 35px;
    left: 35px;
}

.project-status {
    position: absolute;
    bottom: 35px;
    left: 35px;
    right: 35px;
    font-size: 0.9rem;
    color: #a0a0a0;
    font-style: italic;
}

.link-arrow svg {
    transition: transform 0.3s;
    stroke: var(--accent-light);
}

.link-arrow:hover {
    color: var(--accent-light);
}

.link-arrow:hover svg {
    transform: translateX(6px);
}

.contact-container {
    max-width: 650px;
    position: relative;
}

.contact-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--accent-light);
    background: var(--bg);
    padding: 0 8px;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 18px;
}

.form-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
    z-index: 10;
}

.form-success.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    animation: successPop 0.5s var(--ease-out);
}

.form-success h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.form-success p {
    font-size: 1rem;
    color: var(--text-muted);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.15);
    }

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

footer {
    border-top: 1px solid var(--border);
    padding: 50px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 80px;
    background: rgba(0, 0, 0, 0.3);
}

.reveal-text,
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active,
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

@media (max-width: 900px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .section {
        padding: 70px 0;
    }

    .navbar {
        padding: 15px 24px;
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .logo {
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-cta .btn {
        width: 100%;
        margin: 0 0 15px 0;
    }

    .profile-bio {
        text-align: center;
    }

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

    .marquee-content {
        font-size: 1.4rem;
        padding-right: 30px;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }
}