


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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --background: #ffffff;
  --background-light: #f8fafc;
  --background-gray: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-light);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.3" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="0.4" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.tagline {
  font-size: 1rem;
  opacity: 0.8;
  font-style: italic;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: var(--shadow-sm);
}

nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

nav li {
  display: flex;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-medium);
  padding: 1rem 0.5rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Remove all special styling from resume and linkedin links */
.resume-link, .linkedin-link {
  background: none !important;
  color: var(--text-medium) !important;
  padding: 1rem 0.5rem !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent !important;
  position: relative;
  overflow: visible;
}

.resume-link:hover, .linkedin-link:hover {
  background: none !important;
  color: var(--primary-color) !important;
  transform: none !important;
  box-shadow: none !important;
  border-bottom-color: var(--primary-color) !important;
}

.resume-link::before, .linkedin-link::before {
  display: none;
}

/* Section Styles */
section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-sm);
}

/* Objective Section */
.objective {
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-gray) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  position: relative;
}

.objective::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

.objective h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.objective p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* About Section Text */
#about p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

/* Job Styles */
.job {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.job:hover {
  box-shadow: var(--shadow-lg);
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.job h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.job h4 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-color);
}

.duration {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--background-gray);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.role-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--background);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.achievements h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--background-gray);
}

.achievements ul {
  list-style: none;
  margin-bottom: 1rem;
}

.achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.skill-category:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.skill-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3::before {
  content: '●';
  color: var(--primary-color);
  font-size: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.skill-tag {
  background: var(--background);
  color: var(--text-medium);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

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

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

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

.skill-tag:active {
  transform: translateY(0) scale(1.02);
}

/* Certifications */
.certifications {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.certifications h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.cert-list {
  display: grid;
  gap: 1rem;
}

.certification {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.certification strong {
  color: var(--text-dark);
  font-weight: 600;
}

.cert-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.cert-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.cert-link::after {
  content: ' 🔗';
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-link:hover::after {
  opacity: 1;
}

.certification span {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--text-dark);
  color: white;
  margin-top: 4rem;
}

footer p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Responsive Design - All Mobile Devices */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .container {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }
  
  .header-content h1 {
    font-size: 2.25rem;
  }
  
  section {
    margin: 2rem 1rem;
    padding: 4rem 1.5rem 2rem 1.5rem; /* Add top padding to clear sticky nav */
    scroll-margin-top: 80px; /* Offset for smooth scrolling */
  }
  
  section h2 {
    margin-top: 0; /* Remove default margin from section titles */
  }
  
  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .duration {
    align-self: flex-start;
  }
  
  /* Horizontal scrolling mobile navigation */
  nav {
    padding: 0.4rem 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  
  nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 1rem !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    max-width: none !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  }
  
  nav ul::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  nav li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    display: flex !important;
  }
  
  nav a {
    display: block !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    border-bottom: none !important;
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    min-width: 60px !important;
    white-space: nowrap !important;
  }
  
  nav a:hover, nav a:active {
    background: rgba(59, 130, 246, 0.2) !important;
    border-bottom: none !important;
  }
  
  .resume-link, .linkedin-link {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
  }
  
  .resume-link:hover, .linkedin-link:hover {
    background: rgba(16, 185, 129, 0.2) !important;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-img {
    width: 120px;
    height: 120px;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.125rem;
  }
  
  section {
    padding: 1.5rem 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
  }
  
  nav a, .resume-link, .linkedin-link {
    padding: 0.75rem 1rem !important;
    margin: 0.125rem 0;
    display: block;
    text-align: center;
    border-radius: var(--radius-sm) !important;
  }
  
  .scroll-percentage {
    right: 5px;
    top: 8px;
    font-size: 9px;
    padding: 1px 6px;
  }
}

/* Widget styles for mobile */
@media (max-width: 768px) {
  .status-indicator {
    bottom: 15px !important;
    left: 10px !important;
    font-size: 11px !important;
    padding: 10px 12px !important;
  }
  
  .small-weather-widget {
    bottom: 15px !important;
    right: 10px !important;
    font-size: 10px !important;
    padding: 8px 12px !important;
  }
  
  .scroll-percentage {
    right: 5px !important;
    top: 8px !important;
    font-size: 9px !important;
    padding: 1px 6px !important;
  }
}

@media (max-width: 480px) {
  .status-indicator {
    bottom: 10px !important;
    left: 5px !important;
    font-size: 10px !important;
    padding: 8px 10px !important;
  }
  
  .small-weather-widget {
    bottom: 10px !important;
    right: 5px !important;
    font-size: 9px !important;
    padding: 6px 10px !important;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  nav {
    display: none;
  }
  
  section {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  .job {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: none;
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Skill tag enhanced interactions */
.skill-tag {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced skill tag styles */
.skill-tag.favorited {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--accent-color));
  width: 0%;
  transition: width 0.3s ease;
}

.scroll-percentage {
  position: absolute;
  right: 10px;
  top: 6px;
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

/* Rainbow animation for Easter egg */
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing cursor animation */
@keyframes blink {
  0%, 50% { border-color: transparent; }
  51%, 100% { border-color: white; }
}

.tagline {
  animation: blink 1s infinite;
}
