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

:root {
    --primary-purple: #6C3FE4;
    --dark-purple: #1a0b2e;
    --medium-purple: #2d1b4e;
    --light-purple: #8b5cf6;
    --accent-purple: #a78bfa;
    --text-white: #ffffff;
    --text-gray: #b4b4b4;
    --gradient-1: linear-gradient(135deg, #6C3FE4 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0118;
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 63, 228, 0.1);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.nav-icons i {
    font-size: 1.2rem;
}

.icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 1, 24, 0.6);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.profile-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 5px;
    animation: float 3s ease-in-out infinite;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 4rem;
    color: var(--accent-purple);
}

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

.greeting {
    font-size: 1.2rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(108, 63, 228, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(108, 63, 228, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

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

.services {
    padding: 4rem 0 0 0;
}

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

.service-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.projects {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: left;
}

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

.project-card {
    background: var(--gradient-2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 63, 228, 0.4);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 1, 24, 0.5) 100%);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary-purple);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-purple);
}

.about {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(108, 63, 228, 0.05) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    margin: 2rem 0;
}

.skills-list li {
    padding: 0.75rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 2rem;
}

.skills-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

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

.floating-avatar {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 8px;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(108, 63, 228, 0.5);
}

.avatar-emoji {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-emoji i {
    font-size: 6rem;
    color: var(--accent-purple);
}

.floating-icon {
    position: absolute;
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-icon i {
    font-size: 2.5rem;
    color: var(--light-purple);
}

.icon-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1s;
}

.icon-3 {
    top: 50%;
    right: -15%;
    animation-delay: 2s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.contact {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2.5rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-purple);
    color: var(--text-white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--gradient-2);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

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

.contact-form .btn {
    width: 100%;
}

.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(108, 63, 228, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-gray);
}

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

.social-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-purple);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .project-item,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item.reverse {
        direction: ltr;
    }

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

    .contact-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
