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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f0f23;
    --darker: #050510;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --glass: rgba(15, 15, 35, 0.7);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(600px circle at 50% 300px, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(400px circle at 80% 0px, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(400px circle at 0% 50%, rgba(6, 182, 212, 0.15), transparent);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

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

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 2rem;
}

nav:hover {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 90vw;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.2s both;
}

.hero-badge::before {
    content: '✨';
    animation: pulse 2s ease-in-out infinite;
}

.summary {
  display: flex;
  align-items: center;
}

img[alt="profile_image"] {
  width: 350px;
  height: 350px;
  border-radius: 100%;
}

.summary h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 1s ease 0.4s both;
}

.summary .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 1rem 0;
    text-wrap: balance;
    animation: slideUp 1s ease 0.6s both;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.orb1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

.orb3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    bottom: 20%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Experience & Projects Section */
.experience, .projects {
    padding: 8rem 0;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.experience-card, .project-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

:is(.experience-card, .project-card)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

:is(.experience-card, .project-card):hover::before {
    opacity: 1;
}

:is(.experience-card, .project-card):hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(15, 15, 35, 0.8);
}

.project-status {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-card div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.experience-card img {
  width: 300px;
  height: 50px;
}

.experience-card p:nth-child(2) {
  text-align: end;
}

.experience-card p:nth-child(3) {
  padding-top: 1rem;
}

.project-card img {
  display: block;
  width: 100%;
  height: 230px;
  padding-bottom: 5px;
  border-radius: 30px;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.experience-card .project-stack {
  margin-top: 2rem;
  margin-bottom: 0;
}

.tech-tag {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Skills Section */
.skills {
    padding-bottom: 8rem;
    background: rgba(15, 15, 35, 0.3);
}

.skills-content h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.skills-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    text-wrap: balance;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 0.4fr);
    justify-content: center;
    gap: 1rem;
}

.skills-section {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skills-section:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.skills-section > p {
    font-size: 1.2rem;
    font-weight: 400;
    background: linear-gradient(var(--primary), var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}

.skill-item {
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    background: rgba(15, 15, 35, 0.8);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
      gap: 0.2rem;
    }

    .summary {
        display: flex;
        flex-direction: column;
    }

    img[alt="profile_image"] {
      width: 200px;
      height: 200px;
      margin-bottom: 1rem;
    }

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

@media (max-width: 480px) {
    nav {
        top: 10px;
        padding: 0.5rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}
