/* Theme Variables */
:root {
  --primary-color: #0f3754;
  --secondary-color: #556e87;
  --accent-color: #356edd;
  --background-color: #f5f7fa;
  --card-color: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  padding-top: 80px; /* space for fixed header */
}

img {
  display: block;
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero-card {
  background: var(--card-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-image {
  flex: 1 1 40%;
  min-width: 250px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}

.hero-content {
  flex: 1 1 60%;
  padding: 2rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.hero-details li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

/* Emoji icons used instead of external icon fonts */
.emoji {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  display: inline-block;
}

.status-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #43c463;
  margin-right: 0.5rem;
}

/* Location indicator */
.location-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-color);
  margin-right: 0.5rem;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  background: var(--card-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Text inside social buttons */
/* Size and color adjustments for inline SVG icons in social links */
.hero-socials a svg,
.contact-socials a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
}

.hero-socials a:hover {
  background: var(--accent-color);
  color: #fff;
}

/* About Section */
.about-card {
  background: var(--card-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.about-image {
  flex: 1 1 45%;
  min-width: 250px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1 1 55%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.about-content .button {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: background 0.3s ease;
}

.about-content .button:hover {
  background: var(--primary-color);
}

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

.skill-item {
  text-align: center;
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 0.5rem auto;
}

.skill-name {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Experience Section */
.experience-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.experience-card {
  background: var(--card-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.experience-card .company {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.experience-card .role {
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.experience-card .exp-desc {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.experience-card .dates {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--card-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.project-tags {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  text-transform: capitalize;
}

.project-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card-color);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: background 0.3s ease, color 0.3s ease;
}

.project-link:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Contact Section */
.contact-section {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.contact-section .section-label {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.contact-section .section-title {
  color: #fff;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.6rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}


.copy-btn {
  background: none;
  border: none;
  color: #fff;
  margin-left: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: var(--accent-color);
}

.contact-note {
  color: #d3e1ea;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

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

/* Footer */
.footer {
  background: var(--card-color);
  text-align: center;
  padding: 1rem 0;
  color: var(--secondary-color);
  font-size: 0.85rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: var(--card-color);
    padding: 1rem;
    box-shadow: var(--card-shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.open ul {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
}

@media (min-width: 768px) {
  .experience-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .experience-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
  }
  .hero-image img {
    border-radius: 20px 20px 0 0;
  }
  .about-card {
    flex-direction: column;
  }
  .about-image img {
    border-radius: 20px 20px 0 0;
  }
}