/* ========= PROFESSIONAL FONT IMPORTS ========= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Sacramento&display=swap');

/* ========= REFINED THEME TOKENS ========= */
:root {
  --bg: #CBF1F5;              /* Your beautiful turquoise */
  --text: #1e293b;             /* Professional dark slate */
  --brand: #0f766e;            /* Deeper teal for better contrast */
  --accent: #059669;           /* Refined emerald accent */
  --card: #ffffff;
  --shadow: rgba(0,0,0,0.08);
  --text-light: #475569;       /* Subtle secondary text */
  --border: rgba(15, 118, 110, 0.2);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #e2e8f0;
  --brand: #22d3ee;
  --accent: #06b6d4;
  --card: #1e293b;
  --shadow: rgba(0,0,0,0.4);
  --text-light: #94a3b8;
  --border: rgba(34, 211, 238, 0.2);
}

/* ========= RESET & BASE ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 400;
  padding-top: 80px;           /* Space for fixed navbar */
}

/* ========= ENHANCED TYPOGRAPHY ========= */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.5rem 0;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 1rem 0;
  opacity: 0.9;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 1rem 0;
}

/* ========= ENHANCED BUTTONS ========= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  margin: 10px 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.2);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

/* ========= FIXED NAVBAR ========= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(15, 118, 110, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active { 
  color: #a7f3d0; 
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  cursor: pointer;
}

#themeToggle {
  margin-left: auto;
  font-size: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#themeToggle:hover { 
  transform: scale(1.05);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 2rem;
  height: 3px;
  background: linear-gradient(90deg, #a7f3d0, #6ee7b7);
  width: 0;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* ========= ENHANCED HERO SECTION ========= */
.hero {
  padding: 60px 20px 100px 20px;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-height: calc(100vh - 80px);
  justify-content: center;
}

.hero-text {
  text-align: center;
  z-index: 1;
  max-width: 600px;
}

.hero-text h1 {
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h2 {
  font-weight: 400;
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.15);
  transition: all 0.4s ease;
}

.hero-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(15, 118, 110, 0.25);
}

/* ========= ENHANCED SECTIONS ========= */
.about, 
.skills,
.projects, 
.internships, 
.work-experience,
.contact {
  padding: 80px 20px;
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  border: 4px solid var(--brand);
  box-shadow: 0 8px 30px rgba(15, 118, 110, 0.2);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.3);
}

/* ========= SKILLS SECTION WITH PERCENTAGES ========= */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.skill-card {
  background: var(--card);
  padding: 30px 25px;
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(15, 118, 110, 0.15);
}

.skill-card h3 {
  color: var(--brand);
  margin-bottom: 15px;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-bar {
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  height: 24px;
  margin-top: 15px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 12px;
  transition: width 0.8s ease-out;
  position: relative;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
  padding-right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ========= CARDS (Projects, Timeline) ========= */
.projects-container,
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.project-card,
.timeline-item {
  background: var(--card);
  padding: 30px;
  width: 350px;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
}

.project-card:hover,
.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(15, 118, 110, 0.15);
}

.project-card h3,
.timeline-item h3 {
  color: var(--brand);
  margin-bottom: 10px;
  text-align: center;
}

/* ========= PROJECT BUTTON STYLING ========= */
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.project-btn:active {
  transform: translateY(0);
}

.project-btn svg {
  transition: transform 0.2s ease;
}

.project-btn:hover svg {
  transform: translate(2px, -2px);
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-card a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ========= CONTACT SECTION ========= */
.contact {
  color: var(--text);
}

.contact .social-links a {
  margin: 0 20px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.contact .social-links a:hover { 
  color: var(--accent);
  transform: translateY(-2px);
}

/* ========= ENHANCED FOOTER ========= */
footer {
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f766e, #059669);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

footer p {
  margin: 0;
  color: #ffffff;
  opacity: 1;
  letter-spacing: 0.5px;
}

[data-theme="dark"] footer {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #e2e8f0;
  border-top: 1px solid rgba(226,232,240,0.1);
}

[data-theme="dark"] footer p {
  color: #e2e8f0;
}

/* ========= REVEAL ANIMATION ========= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========= RESPONSIVE DESIGN ========= */
@media(max-width: 900px) {
  #navbar { 
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .nav-link { 
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  
  .nav-underline {
    left: 1.5rem;
  }
  
  body {
    padding-top: 70px;
  }
  
  .hero {
    min-height: calc(100vh - 70px);
    padding-top: 40px;
  }
  
  .skills-container,
  .projects-container,
  .timeline {
    flex-direction: column;
    align-items: center;
  }
}

@media(max-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.3rem; }
  
  #navbar {
    gap: 0.8rem;
    padding: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    flex-shrink: 0;
  }
  
  .nav-underline {
    left: 1rem;
  }
  
  body {
    padding-top: 65px;
  }
  
  .hero {
    padding: 80px 20px;
    min-height: calc(100vh - 65px);
  }
  
  .hero-img {
    max-width: 260px;
  }
  
  .skill-card,
  .project-card,
  .timeline-item {
    width: 100%;
    max-width: 400px;
  }
}

@media(max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.1rem; }
  
  #navbar {
    gap: 0.4rem;
    padding: 0.8rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  
  .nav-underline {
    left: 0.8rem;
  }
  
  body {
    padding-top: 60px;
  }
  
  .hero {
    min-height: calc(100vh - 60px);
  }
  
  .hero-img {
    max-width: 200px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
