/* Custom CSS Variables */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121318;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-color: #ff5252;
  --accent-gradient: linear-gradient(135deg, #ff5252 0%, #ff7b54 100%);
  --text-main: #f0f0f5;
  --text-muted: #a0a0b0;
  --nav-bg: rgba(18, 19, 24, 0.85);
  --transition: all 0.3s ease;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background: linear-gradient(-45deg, #090a0f, #121520, #0a0a0c, #1a101f);
  background-size: 400% 400%;
  animation: gradientAnimation 12s ease infinite;
  min-height: 100vh;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Containers & Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--accent-gradient);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Card Styling */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

nav h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}

.avatar-wrapper img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.3);
  margin-bottom: 24px;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* About Section */
.about-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* Internship Section */
.internship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.internship-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.badge {
  background: rgba(255, 82, 82, 0.15);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.internship-card .role {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.internship-card .description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects Section */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  justify-items: center;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  width: 100%;
  max-width: 160px;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.2);
}

.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Contact Section */
.contact-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.contact-info a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-color);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.contact-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 82, 82, 0.2);
  border-color: var(--accent-color);
}

.contact-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 180px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .internship-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
