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

:root {
    --midnight-purple: #1a0b2e;
    --deep-purple: #2d1b4e;
    --accent-purple: #8b5cf6;
    --light-purple: #a78bfa;
    --text-light: #e2e8f0;
    --text-dim: #94a3b8;
    --card-bg: rgba(45, 27, 78, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--midnight-purple);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Animated Starfield Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='20' cy='30' r='1' fill='%23fff' opacity='0.8'/%3E%3Ccircle cx='100' cy='80' r='1' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='150' cy='120' r='1' fill='%23fff' opacity='0.9'/%3E%3Ccircle cx='70' cy='160' r='1' fill='%23fff' opacity='0.7'/%3E%3C/svg%3E") repeat;
    animation: stars 50s linear infinite;
}

.stars2 {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Ccircle cx='30' cy='40' r='1.5' fill='%238b5cf6' opacity='0.5'/%3E%3Ccircle cx='110' cy='90' r='1.5' fill='%238b5cf6' opacity='0.4'/%3E%3C/svg%3E") repeat;
    animation: stars 100s linear infinite;
}

.stars3 {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Ccircle cx='50' cy='60' r='2' fill='%23a78bfa' opacity='0.3'/%3E%3Ccircle cx='180' cy='140' r='2' fill='%23a78bfa' opacity='0.4'/%3E%3C/svg%3E") repeat;
    animation: stars 150s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
}

/* Navigation */
.header {
    animation: fadeInDown 1s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--light-purple);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: center;
}

/* Hero Section */
.hero-section {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    animation: slideInLeft 0.8s ease backwards;
}

.hero-title .greeting {
    transition: opacity 0.3s ease;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.6s;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    animation: fadeIn 1s ease 0.8s backwards;
}

/* Profile Card */
.profile-card {
    position: relative;
    animation: fadeInRight 1s ease;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple), var(--accent-purple));
    border-radius: 30px;
    filter: blur(20px);
    opacity: 0.5;
    animation: rotate 3s linear infinite;
}

.card-content {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.card-content:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    border: 3px solid var(--midnight-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.card-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease 0.3s backwards;
}

.card-title {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.4s backwards;
}

/* Stats */
.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 1s ease backwards;
}

.stat:nth-child(1) { animation-delay: 0.5s; }
.stat:nth-child(2) { animation-delay: 0.6s; }
.stat:nth-child(3) { animation-delay: 0.7s; }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Skills */
.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease backwards;
}

.skill-tag:nth-child(1) { animation-delay: 0.8s; }
.skill-tag:nth-child(2) { animation-delay: 0.9s; }
.skill-tag:nth-child(3) { animation-delay: 1s; }
.skill-tag:nth-child(4) { animation-delay: 1.1s; }

.skill-tag:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Social Links */
.card-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.social-link:hover {
    color: var(--light-purple);
    background: rgba(139, 92, 246, 0.1);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    animation: fadeIn 1s ease 1.2s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 0;
    color: var(--text-dim);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    animation: fadeIn 1s ease 1.4s backwards;
}

/* Projects Section */
.projects-section {
    max-width: 1400px;
    margin: 8rem auto 0;
    padding: 4rem 2rem;
    animation: fadeIn 1s ease;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-purple);
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--deep-purple);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dim);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--light-purple);
}

.project-link {
    display: inline-block;
    color: var(--light-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.project-link:hover {
    color: var(--accent-purple);
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    max-width: 1400px;
    margin: 8rem auto 0;
    padding: 4rem 2rem;
    animation: fadeIn 1s ease;
}

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

.contact-intro {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    display: block;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-purple);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-purple);
}

.contact-card p {
    color: var(--text-dim);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px var(--accent-purple));
    }
    to {
        filter: drop-shadow(0 0 20px var(--light-purple));
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .highlight {
        font-size: 3.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .card-content {
        padding: 2rem;
    }

    .card-stats {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .highlight {
        font-size: 2.5rem;
    }

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

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .card-name {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
