@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap";

:root {
  --primary-dark: #1a1a1a;
  --primary-light: #ffffff;
  --accent: #007bff;
  --accent-dark: #0056b3;
  --bg-light: #ffffff;
  --bg-dark: rgb(15, 23, 42);
  --bg-secondary: #e8ecef;
  --bg-secondary-dark: #2a344f;
  --card-bg: #ffffff;
  --card-bg-dark: #1f2b4a;
  --transition: 0.3s ease;
  --error-color: #d9534f;
}

[data-theme="dark"] {
  --bg-light: var(--bg-dark);
  --primary-dark: var(--primary-light);
  --bg-secondary: var(--bg-secondary-dark);
  --accent: var(--accent-dark);
  --card-bg: var(--card-bg-dark);
}

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

html {
  font-size: 10px;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--primary-dark);
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

p {
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: 400;
  margin: 8px 0;
  color: var(--primary-dark);
}

.section-title {
  font-size: 3.2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.cta {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.cta:hover {
  background-color: var(--accent);
  color: var(--primary-light);
}

.brand h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.brand h1 span {
  color: var(--accent);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.8);
  transition: var(--transition);
}

#header .nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

#header .nav-list ul {
  list-style: none;
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: left var(--transition);
}

#header .nav-list ul.active {
  left: 0;
}

#header .nav-list ul li {
  margin: 12px 0;
}

#header .nav-list ul a {
  font-size: 1.8rem;
  color: var(--primary-dark);
  font-weight: 500;
  padding: 10px;
  min-height: 48px;
  display: inline-block;
  transition: var(--transition);
}

#header .nav-list ul a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-light);
  min-height: 48px;
}

#theme-toggle .icon {
  transition: var(--transition);
}

[data-theme="dark"] #theme-toggle .icon::before {
  content: "🌙";
}

#header .hamburger {
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#header .hamburger .bar {
  width: 18px;
  height: 2px;
  background-color: var(--primary-light);
  position: relative;
}

#header .hamburger .bar::before,
#header .hamburger .bar::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  position: absolute;
  transition: var(--transition);
}

#header .hamburger .bar::before {
  top: -5px;
}

#header .hamburger .bar::after {
  top: 5px;
}

#header .hamburger.active .bar::before {
  top: 0;
  transform: rotate(45deg);
}

#header .hamburger.active .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

#header .hamburger.active .bar {
  background: transparent;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
}

#hero .hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

#hero .hero-content {
  flex: 1;
  min-width: 280px;
}

#hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

#hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--accent);
}

#hero .hero-image {
  flex: 1;
  max-width: 360px;
  margin-left: 15px;
}

#hero .hero-image img {
  border: 3px solid var(--primary-dark);
  border-radius: 50%;
}

/* Services Section */
#services {
  scroll-margin-top: 70px;
  background-color: var(--bg-light);
  padding: 50px 0;
}

#services .services {
  text-align: center;
}

#services .service-top {
  max-width: 600px;
  margin: 0 auto;
}

#services .service-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

#services .service-item {
  flex: 1 1 220px;
  margin: 8px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#services .service-item:hover {
  transform: translateY(-4px);
}

#services .service-item .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

#services .service-item h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

/* Projects Section */
#projects {
  scroll-margin-top: 70px;
  padding: 50px 0;
}

#projects .all-projects {
  display: flex;
  flex-direction: column;
}

#projects .project-item {
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#projects .project-info {
  flex: 1 1 50%;
  padding: 15px;
}

#projects .project-info h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--primary-dark);
}

#projects .project-info h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 8px 0;
  color: var(--primary-dark);
}

#projects .project-info .project-link {
  color: var(--accent);
  font-weight: 500;
}

#projects .project-img {
  flex: 1 1 50%;
  max-height: 280px;
}

#projects .project-img img {
  transition: var(--transition);
}

#projects .project-item:hover .project-img img {
  transform: scale(1.05);
}

/* About Section */
#about {
  scroll-margin-top: 70px;
  background-color: var(--bg-light);
  padding: 50px 0;
}

#about .about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#about .col-left {
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
}

#about .col-right {
  flex: 2;
  padding: 15px;
}

#about .about-img {
  border: 4px solid var(--primary-dark);
  border-radius: 6px;
}

/* Certifications Section */
#certifications {
  scroll-margin-top: 70px;
  padding: 50px 0;
  background-color: var(--bg-light);
}

#certifications .certifications {
  text-align: center;
}

#certifications .certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

#certifications .certification-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#certifications .certification-card:hover {
  transform: translateY(-4px);
}

#certifications .certification-card h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

#certifications .certification-card .issuer {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-dark);
  opacity: 0.8;
  margin-bottom: 5px;
}

#certifications .certification-card .credential-id {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

#certifications .certification-card .skills {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#certifications .certification-card .certification-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.3rem;
  padding: 5px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: var(--transition);
}

#certifications .certification-card .certification-link:hover {
  background-color: var(--accent);
  color: var(--primary-light);
}

/* Get in Touch Section */
#contact {
  scroll-margin-top: 70px;
  padding: 60px 0;
  background-color: var(--bg-light);
}

#contact .contact-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

#contact .contact-header p {
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: var(--primary-dark);
  opacity: 0.9;
}

#contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

#contact .contact-info,
#contact .contact-form {
  flex: 1 1 300px;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#contact .contact-info:hover,
#contact .contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#contact .contact-info h2,
#contact .contact-form h2 {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

#contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

#contact .contact-item .icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

#contact .contact-info-details h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

#contact .contact-info-details p,
#contact .contact-info-details a {
  font-size: 1.5rem;
  color: var(--primary-dark);
  transition: var(--transition);
}

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

#contact .contact-form form {
  display: flex;
  flex-direction: column;
}

#contact .form-group {
  margin-bottom: 20px;
}

#contact .form-group label {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

#contact .form-group .required {
  color: var(--error-color);
  margin-left: 5px;
  font-size: 1.2rem;
}

#contact .form-group input,
#contact .form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 1.5rem;
  border: 1px solid var(--primary-dark);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--primary-dark);
  transition: var(--transition);
}

#contact .form-group input:focus,
#contact .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

#contact .form-group input:invalid:focus,
#contact .form-group textarea:invalid:focus {
  border-color: var(--error-color);
}

#contact .form-group textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

#contact .contact-form .cta {
  align-self: flex-start;
  padding: 12px 30px;
  font-size: 1.6rem;
}

/* Footer */
#footer {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  padding: 25px 0;
}

#footer .footer {
  text-align: center;
}

#footer h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 8px 0;
  color: var(--primary-dark);
}

#footer .social-icon {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

#footer .social-item {
  width: 28px;
  height: 28px;
  margin: 0 8px;
}

#footer .social-item img {
  filter: grayscale(0.7);
  transition: var(--transition);
}

#footer .social-item:hover img {
  filter: grayscale(0);
}

#footer p {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

/* Media Queries */
@media (min-width: 768px) {
  #header .nav-list ul {
    position: static;
    height: auto;
    width: auto;
    background: none;
    display: flex;
    flex-direction: row;
  }

  #header .nav-list ul li {
    margin: 0 8px;
  }

  #header .nav-list ul a {
    font-size: 1.5rem;
  }

  #header .hamburger {
    display: none;
  }

  #hero h1 {
    font-size: 4.5rem;
  }

  #hero .hero-image {
    display: block;
  }

  #projects .project-item {
    flex-wrap: nowrap;
  }

  #projects .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  #about .col-left {
    max-width: 360px;
  }

  #contact .contact-info,
  #contact .contact-form {
    flex: 1 1 45%;
  }
}

@media (min-width: 1200px) {
  #services .service-item {
    flex: 1 1 22%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 9px;
  }

  #hero h1 {
    font-size: 3rem;
  }

  #hero .hero-image {
    margin: 15px auto;
  }

  #certifications .certifications-grid {
    grid-template-columns: 1fr;
  }

  #contact .contact-info,
  #contact .contact-form {
    flex: 1 1 100%;
  }

  #contact .contact-form .cta {
    align-self: stretch;
    text-align: center;
  }
}
/* Get in Touch Section Styling */
#contact {
  scroll-margin-top: 70px;
  padding: 80px 0;
  background-color: var(--bg-light);
}

#contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#contact .contact-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

#contact .section-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
}

#contact .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 10px auto 0;
}

#contact .contact-header p {
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: var(--primary-dark);
  opacity: 0.9;
}

#contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

#contact .contact-form {
  flex: 1 1 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#contact .contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#contact .contact-form h2 {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 25px;
}

#contact .form-group {
  margin-bottom: 20px;
}

#contact .form-group label {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

#contact .form-group .required {
  color: var(--error-color);
  margin-left: 5px;
  font-size: 1.2rem;
}

#contact .form-group input,
#contact .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.5rem;
  font-family: "Montserrat", sans-serif;
  color: var(--primary-dark);
  background-color: var(--card-bg);
  border: 1px solid var(--primary-dark);
  border-radius: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#contact .form-group input:focus,
#contact .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

#contact .form-group input:invalid:focus,
#contact .form-group textarea:invalid:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 8px rgba(217, 83, 79, 0.2);
}

#contact .form-group textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

#contact .contact-form .cta {
  align-self: stretch;
  padding: 12px 30px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-light);
  background-color: var(--accent);
  border: none;
  border-radius: 5px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

#contact .contact-form .cta:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

#contact .contact-form .cta:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  #contact {
    padding: 60px 0;
  }

  #contact .section-title {
    font-size: 2.8rem;
  }

  #contact .contact-header p {
    font-size: 1.4rem;
  }

  #contact .contact-form {
    padding: 20px;
  }

  #contact .contact-form h2 {
    font-size: 2rem;
  }

  #contact .form-group input,
  #contact .form-group textarea {
    font-size: 1.4rem;
    padding: 10px 12px;
  }

  #contact .contact-form .cta {
    font-size: 1.4rem;
    padding: 10px 25px;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 40px 0;
  }

  #contact .section-title {
    font-size: 2.4rem;
  }

  #contact .contact-header p {
    font-size: 1.3rem;
  }

  #contact .contact-form {
    padding: 15px;
  }

  #contact .contact-form h2 {
    font-size: 1.8rem;
  }
}
