/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Roboto+Mono&display=swap');

/* Font Pairing */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

code, .tech-accent {
  font-family: 'Roboto Mono', monospace;
}

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

/* Theme Variables */
:root {
  --bg-dark: #121212;
  --bg-light: #ffffff;
  --text-dark: #f5f5f5;
  --text-light: #333333;
  --accent: #00bcd4;
  --accent-hover: #ff9800;
  --card-dark: #1f1f1f;
  --card-light: #f2f2f2;
}

/* Body & Theme */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  border-bottom: 2px solid #444;
}

header h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
  color: var(--accent);
}

body.light-mode header h1 {
  color: #0077b6;
}

header .tagline {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #bbbbbb;
}

body.light-mode header .tagline {
  color: #555555;
}

/* Profile Picture */
.profile-pic {
  width: 170px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Contact Info */
.contact-info {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent-hover);
}

/* Phone number color fix */
.contact-info span:nth-child(3) {
  color: var(--accent);
}

.divider {
  margin: 0 0.5rem;
  color: #888;
}

/* Action Buttons */
.action-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.resume-btn, .theme-btn {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px; /* uniform button width */
}

.resume-btn:hover, .theme-btn:hover {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Sections */
section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3rem;
}

body.light-mode section h2 {
  border-bottom: 2px solid #0077b6;
}

/* About Section - Justify text */
#about p {
  text-align: justify;
}

/* Skills */
.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.skills-list li {
  background: var(--card-dark);
  padding: 1rem;
  border-radius: 8px;
  min-height: 80px;
  display: flex;
  flex-direction: row; /* horizontal layout for icon + text */
  align-items: center; /* vertical alignment fix */
  justify-content: flex-start; /* align items to left */
  gap: 0.8rem; /* spacing between icon and text */
  transition: transform 0.3s ease, background 0.3s ease;
}

.skills-list li i {
  font-size: 1.4rem;
  flex-shrink: 0; /* prevents icon from resizing */
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-list li:hover {
  transform: scale(1.05);
  background: #2c2c2c;
}

body.light-mode .skills-list li {
  background: var(--card-light);
}


/* Certifications */
#certifications ul {
  list-style: square;
  padding-left: 1.5rem;
}

/* Projects */
.project-card {
  background: var(--card-dark);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

body.light-mode .project-card {
  background: var(--card-light);
}

/* Experience */
.job {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card-dark);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.job:hover {
  transform: translateY(-5px);
}

body.light-mode .job {
  background: var(--card-light);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.9;
}

.timeline {
  font-style: italic;
  color: #bbbbbb;
  line-height: 1.9;
}

body.light-mode .timeline {
  color: #666666;
}

/* Work Experience bullet spacing + justify */
.job ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.job ul li {
  line-height: 1.9;
  text-align: justify;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--card-dark);
  border-top: 2px solid #444;
  margin-top: 2rem;
  color: var(--text-dark);
}

body.light-mode footer {
  background: var(--card-light);
  color: var(--text-light);
  border-top: 2px solid #ccc;
}
