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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo-m {
    color: #a855f7;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a855f7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.mobile-nav-link {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.profile-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.name-first {
    color: #a855f7;
}

.name-last {
    color: #d1d5db;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #9ca3af;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Button Styles */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #7c3aed;
    color: #ffffff;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
}

.btn-secondary:hover {
    background: #a855f7;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.highlight {
    color: #a855f7;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: #a855f7;
    margin: 0 auto;
}

/* About Section */
.about {
    background: rgba(15, 23, 42, 0.5);
}

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

.about-text p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact details in about section */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.contact-details .contact-icon {
    font-size: 1.2rem;
}

.contact-details a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ffffff;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.category-title {
    color: #a855f7;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.skill-name {
    min-width: 120px;
    color: #ffffff;
    font-weight: 500;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out 0.5s;
}

.skill-percentage {
    min-width: 40px;
    text-align: right;
    color: #a855f7;
    font-weight: bold;
}

/* Projects Section */
.projects {
    background: rgba(15, 23, 42, 0.5);
}

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

.project-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.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-content {
    padding: 1.5rem;
}

.project-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tag {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
}

/* Interests Section */
.interests-section {
    margin-top: 4rem;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.section-subtitle {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.interest-item {
    background: rgba(30, 41, 59, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #d1d5db;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(168, 85, 247, 0.3);
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-dot {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #a855f7;
    border-radius: 50%;
    border: 4px solid #0f172a;
}

.education-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-level {
    color: #a855f7;
    font-size: 1.3rem;
}

.education-period {
    color: #9ca3af;
    font-size: 0.9rem;
}

.education-institution {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.education-grade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.grade-label {
    color: #9ca3af;
}

.grade-value {
    color: #a855f7;
    font-weight: bold;
    font-size: 1.1rem;
}

.education-description {
    color: #d1d5db;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: rgba(15, 23, 42, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #a855f7;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.contact-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.contact-value {
    color: #ffffff;
    font-weight: 500;
}

/* Form Styles */
.contact-form {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    background: rgba(17, 24, 39, 0.8);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

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

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

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav.active {
        display: flex;
    }

    .container {
        padding: 0 1rem;
    }

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

    .stats {
        gap: 2rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education-item {
        padding-left: 3rem;
    }

    .timeline-line {
        left: 1rem;
    }

    .timeline-dot {
        left: 0.25rem;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .contact-details {
        gap: 0.8rem;
    }
    
    .contact-details .contact-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skill-name {
        min-width: auto;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for skill bars */
.skills-section.in-view .skill-progress {
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--target-width);
    }
}
