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

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent-blue: #00f2fe;
    --accent-purple: #764ba2;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Advanced animated background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 242, 254, 0.1), rgba(118, 75, 162, 0.1));
    animation: float-complex 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 70%;
    right: -5%;
    animation-delay: -7s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 80%;
    animation-delay: -14s;
}

@keyframes float-complex {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-60px) translateX(-10px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-20px) translateX(-30px) rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Modern glassmorphism header */
header {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
}

.hero-content {
    max-width: 800px;
    animation: hero-entrance 1.5s ease-out;
}

@keyframes hero-entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    position: relative;
    margin-bottom: 3rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--accent-blue);
    font-weight: 500;
    max-width: 600px;
    margin: 3rem auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--accent-gradient);
    color: white;
}

.cta-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.3);
}

/* Modern navigation */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    background: var(--accent-gradient);
    color: white;
}

/* Main content styling */
main {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin-bottom: 8rem;
    padding: 4rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

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

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), rgba(118, 75, 162, 0.05));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    flex: 1;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 25px 50px rgba(0, 242, 254, 0.15);
}

.timeline-badge {
    position: absolute;
    left: -25px;
    top: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid #1a1a2e;
}

.education-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.education-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Modern skills grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.2);
}

.skill-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.skill-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: rgba(0, 242, 254, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-item:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.05);
}

/* Projects showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 25px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.15);
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: rgba(118, 75, 162, 0.2);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(118, 75, 162, 0.3);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-grid a, a:hover, a:active, a:visited {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.contact-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 2rem;
        border-radius: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .section {
        padding: 2rem 1.5rem;
        margin-bottom: 4rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-badge {
        display: none;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}

/* Smooth animations */
* {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}