/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b8ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Intro Animation */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease forwards 8s;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192,192,192,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.intro-text {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.initials {
    font-size: 6rem;
    color: #C0C0C0;
    opacity: 0;
    animation: initialsGlow 2s ease forwards;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5),
                 0 0 20px rgba(192, 192, 192, 0.3),
                 0 0 30px rgba(192, 192, 192, 0.2);
    letter-spacing: 8px;
    font-weight: 800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #C0C0C0, #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.name {
    font-size: 4.5rem;
    color: #C0C0C0;
    opacity: 0;
    animation: nameExpand 2s ease forwards 2.5s;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5),
                 0 0 20px rgba(192, 192, 192, 0.3),
                 0 0 30px rgba(192, 192, 192, 0.2);
    letter-spacing: 2px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: visible;
    background: linear-gradient(45deg, #C0C0C0, #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    text-align: center;
}

.name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) scale(0.5);
    animation: bulletFire 1.5s ease forwards;
}

.name span:nth-child(1) { animation-delay: 2.5s; }
.name span:nth-child(2) { animation-delay: 3.0s; }
.name span:nth-child(3) { animation-delay: 3.5s; }
.name span:nth-child(4) { animation-delay: 4.0s; }
.name span:nth-child(5) { animation-delay: 4.5s; }
.name span:nth-child(6) { animation-delay: 5.0s; }
.name span:nth-child(7) { animation-delay: 5.5s; }
.name span:nth-child(8) { animation-delay: 6.0s; }
.name span:nth-child(9) { animation-delay: 6.5s; }
.name span:nth-child(10) { animation-delay: 7.0s; }
.name span:nth-child(11) { animation-delay: 7.5s; }

@keyframes bulletFire {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes initialsGlow {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotate(10deg);
    }
}

@keyframes nameExpand {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
        letter-spacing: 8px;
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
        letter-spacing: 2px;
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        letter-spacing: 2px;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 8.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
    overflow: hidden;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

.logo-short, .logo-full {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #00ff87, #60efff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    transition: all 0.5s ease;
    white-space: nowrap;
    display: block;
}

.logo-short {
    font-size: 2.2rem;
    animation: showShort 4s ease infinite;
    opacity: 1;
    z-index: 2;
}

.logo-full {
    font-size: 1.8rem;
    animation: showFull 4s ease infinite;
    opacity: 0;
    z-index: 1;
}

@keyframes showShort {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

@keyframes showFull {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00ff87, #60efff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.logo:hover::after {
    width: 80%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: transparent;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 157, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    color: var(--text-primary);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(0, 255, 157, 0.1) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(0, 255, 157, 0.1) 50%, transparent 55%);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(10, 10, 10, 0.7);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 157, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    animation: imageGlow 3s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 157, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1);
}

.profile-image-container:hover::after {
    opacity: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: lineWidth 3s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
    }
}

@keyframes lineWidth {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 200px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add floating elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 40%; left: 40%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 80%; left: 20%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 30%; left: 70%; animation-delay: 4s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: right 0.5s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(0, 255, 157, 0.1);
        transform: translateX(10px);
    }

    .burger {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .about {
        padding: 4rem 1rem;
    }

    .about h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .skills h3 {
        font-size: 1.5rem;
    }

    .skills ul {
        gap: 0.5rem;
    }

    .skills li {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .projects {
        padding: 4rem 1rem;
    }

    .projects h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    .project-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .project-tech {
        gap: 0.5rem;
    }

    .project-tech span {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact {
        padding: 4rem 1rem;
    }

    .contact h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .contact-content {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }

    .social-links {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    footer {
        padding: 1rem;
        text-align: center;
    }

    footer p {
        font-size: 0.9rem;
    }

    .initials {
        font-size: 4rem;
        letter-spacing: 4px;
    }

    .name {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

    .project-card img {
        height: 200px;
    }

    .initials {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .name {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 2rem;
}

.thanks-content {
    text-align: center;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.1);
    max-width: 500px;
    width: 100%;
}

.thanks-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thanks-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.thanks-content .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.thanks-content .cta-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}

/* About Section */
.about {
    padding: 8rem 10%;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.about-content:hover::before {
    transform: translateX(100%);
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.15);
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.skills h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skills li {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.skills li:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.3);
}

.skills li:hover::before {
    left: 100%;
}

/* Projects Section */
.projects {
    padding: 5rem 10%;
    background-color: var(--dark-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
    margin: 1rem 0;
}

.project-tech span {
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 157, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

.project-card h3 {
    padding: 1rem;
    color: var(--primary-color);
    margin: 0;
}

.project-card p {
    padding: 0 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin: 0;
}

.project-link {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Contact Section */
.contact {
    padding: 8rem 10%;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-content:hover::before {
    transform: translateX(100%);
}

.contact-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.15);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 0.5rem;
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 2px solid rgba(0, 255, 157, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
    outline: none;
}

.submit-btn {
    padding: 1.2rem 2rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a:hover::before {
    transform: scaleX(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--darker-bg);
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 255, 157, 0.1);
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.burger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.burger div {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Error Blossoms */
.error-blossoms {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.error-blossom {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: #ff4444;
    font-size: 1.2rem;
    opacity: 0;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: blossomFloat 4s ease-in-out infinite;
}

.error-blossom:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.error-blossom:nth-child(2) { left: 80%; top: 40%; animation-delay: 1s; }
.error-blossom:nth-child(3) { left: 40%; top: 60%; animation-delay: 2s; }
.error-blossom:nth-child(4) { left: 60%; top: 70%; animation-delay: 3s; }
.error-blossom:nth-child(5) { left: 30%; top: 80%; animation-delay: 4s; }

@keyframes blossomFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translateY(0) rotate(5deg);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(0deg);
    }
}

/* Error Screen Animation */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    animation: showError 0.5s ease forwards 3.5s, hideError 0.5s ease forwards 6s;
}

.error-terminal {
    font-family: 'Courier New', monospace;
    color: #ff4444;
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 2rem;
    border: 1px solid #ff4444;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: terminalAppear 0.5s ease forwards 3.7s;
}

.error-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 68, 68, 0.1) 50%);
    background-size: 100% 4px;
    animation: scanline 0.5s linear infinite;
}

.error-message {
    opacity: 0;
    animation: typeError 2s ease forwards 4s;
}

.error-message span {
    display: inline-block;
    opacity: 0;
    animation: blink 0.5s ease infinite;
}

@keyframes showError {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes hideError {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes terminalAppear {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes typeError {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

@keyframes imageGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Profile Stats */
.profile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-overlay {
    opacity: 1;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Typing Text Animation */
.typing-text {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.typing-prefix {
    color: var(--text-primary);
}

.typing-words {
    display: inline-block;
    position: relative;
    color: var(--primary-color);
}

.typing-words span {
    display: none;
    position: absolute;
    left: 0;
    animation: typing 3s infinite;
}

.typing-words span:nth-child(1) { animation-delay: 0s; }
.typing-words span:nth-child(2) { animation-delay: 3s; }
.typing-words span:nth-child(3) { animation-delay: 6s; }

@keyframes typing {
    0%, 100% { display: none; }
    10%, 90% { display: inline-block; }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Project Card Enhancements */
.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--secondary-color);
}

/* Form Enhancements */
.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.form-group input:focus ~ i,
.form-group textarea:focus ~ i {
    color: var(--primary-color);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Social Links Enhancement */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
}

.social-link i {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 157, 0.15);
    transform: translateY(-3px);
}

.social-link:hover i {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

.social-link:hover span {
    color: var(--primary-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scroll-indicator::before {
    content: '';
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* Section Transitions */
.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.section-transition:hover::before {
    transform: translateX(100%);
}

/* Skills Enhancement */
.skills li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills li i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }
} 