@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Color Palette */
:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #e6f2ff;
  --dark: #1f2937;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-lighter: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Header / Hero Section */
header {
  padding: 3rem 0;
}

.intro-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 60vh;
}

.intro-text-container h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.intro-text-container p {
  font-size: clamp(1rem, 1.2vw + 0.75rem, 1.15rem);
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
}

.intro-container img.profile-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  border-radius: 1rem;
  display: block;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background: var(--gray-lighter);
  border-radius: 1rem;
  margin: 4rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.skill-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.skill-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
}

.skill-icon svg {
  width: 2rem;
  height: 2rem;
  stroke-width: 2;
}

.skill-card h5 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.skill-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--primary);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-image {
  height: 220px;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--gray-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h5 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.project-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-dark:hover {
  background: #111827;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--gray-lighter);
}

.contact-card {
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-info {
  padding: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-item svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  stroke: var(--white);
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.contact-item p:last-child {
  margin: 0;
  font-size: 1rem;
}

.socials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--white);
}

/* Contact Form */
.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.form-styled {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  transition: all 0.3s ease;
  background: var(--gray-lighter);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #d1d5db;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #9ca3af;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #d1d5db;
}

.social-link:hover svg {
  fill: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu,
  .nav-buttons {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile nav open state */
  .nav-container {
    position: relative;
  }

  .navbar.nav-open .nav-menu,
  .navbar.nav-open .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  header {
    padding: 1.5rem 0;
  }

  .intro-container {
    gap: 1.5rem;
    min-height: auto;
  }

  .intro-text-container {
    text-align: center;
  }

  .intro-text-container p {
    max-width: 100%;
  }

  .contact-info {
    padding: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .skill-card {
    padding: 2rem;
  }

  .project-content {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-container {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-description {
    max-width: 600px;
  }
}

@media (min-width: 960px) {
  .intro-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Utility Classes */
.profile-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Backend Portfolio Specific Styles */

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text h3,
.about-highlights h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlights-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--gray);
  line-height: 1.7;
}

.highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.skill-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.skill-level {
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}

.level-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Experience Timeline */
.experience {
  padding: 5rem 0;
  background: var(--gray-lighter);
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.experience-item {
  margin-left: 2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.experience-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.company-name {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.date-range {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
}

.role-description {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.responsibilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.responsibilities li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.responsibilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Education */
.education {
  padding: 5rem 0;
}

.education-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.education-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.education-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.education-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.institution {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.graduation {
  color: var(--gray);
  font-size: 0.9rem;
}

.education-content {
  color: var(--gray);
  line-height: 1.7;
}

.education-content p {
  margin-bottom: 0.75rem;
}

.education-content strong {
  color: var(--dark);
}

.certifications {
  background: var(--gray-lighter);
  padding: 2.5rem;
  border-radius: 1rem;
}

.certifications h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.cert-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.cert-list li {
  padding: 1rem;
  background: var(--white);
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
  color: var(--dark);
  font-weight: 500;
}

/* Project Details */
.project-details {
  margin-bottom: 1.5rem;
}

.project-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.project-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-details li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.project-details li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.6rem;
  top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .education-list {
    grid-template-columns: 1fr;
  }

  .cert-list {
    grid-template-columns: 1fr;
  }

  .experience-timeline {
    padding-left: 0;
  }

  .experience-timeline::before {
    left: 0;
  }

  .experience-item {
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
