@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Base Styles with Dark Mode Colors */
:root,
[data-theme="dark"] {
  /* Dark Mode Colors for background*/
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #64ffda;
  --text-color: #e6e6e6;
  --light-bg: #121212;
  --card-bg: #1e1e1e;
  --white: #ffffff;
  --dark-navy: #0a192f;
  --navy: #112240;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
  --green: #64ffda;
  --light-slate: #a8b2d1;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

/* Light Mode Colors */
[data-theme="light"] {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #0891b2;
  --text-color: #1f2937;
  --light-bg: #f9fafb;
  --card-bg: #ffffff;
  --white: #1f2937;
  --dark-navy: #ffffff;
  --navy: #f3f4f6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --green: #0891b2;
  --light-slate: #4b5563;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  transition: background-color 0.5s ease;
}

/* All container */
.container {
  max-width: 80vw;
  margin: 0 auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-color);
  padding: 10px 20px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  color: var(--dark-navy);
}

/* Header */
header {
  background-color: rgba(10, 25, 47, 0.9);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-3px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--dark-navy);
  transform: rotate(15deg);
}

.theme-toggle-mobile {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1rem;
}

.theme-toggle-mobile:hover {
  background: var(--accent-color);
  color: var(--dark-navy);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 102;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--accent-color);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 10px;
}

.hamburger span:nth-child(4) {
  top: 20px;
}

.hamburger.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.hamburger.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: var(--navy);
  padding: 80px 20px 20px;
  transition: right 0.3s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.mobile-menu ul li {
  margin: 20px 0;
  text-align: center;
}

.mobile-menu ul li a {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--accent-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  /* height: 100vh; */
  background-color: var(--dark-navy);
  padding-top: 10rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.65s;
  left: 0 !important;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.8s;
}

.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 1.1s;
}

.hero-image {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 1s forwards 1.2s;
  padding-bottom: 2rem;
}

.hero-image img {
  width: 80%;
  height: 80%;
  border-radius: 100%;
  object-fit: cover;
  margin: auto;
  display: block;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
}

.hero-content,
.hero-image {
  flex: 1;
}

.hero-content {
  padding-right: 3rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* This is the styling for all h2 under each section */
section h2 {
  font-size: 1.8rem;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

section h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

section:hover h2::after {
  width: 100px;
}

.section-description {
  text-align: center;
  padding: 1rem 0;
  opacity: 0;
  transform: translateY(20px);
}

section.in-view .section-description {
  animation: fadeInUp 1s forwards;
}

/* About Me Section */
.about {
  background-color: var(--dark-navy);
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.about-image {
  flex: 1;
  opacity: 0;
  transform: translateX(-20px);
}

section.in-view .about-image {
  animation: fadeInRight 1s forwards;
}

.about-image img {
  max-width: 100%;
  height: 25rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

.about-text {
  flex: 1;
  opacity: 0;
  transform: translateX(20px);
}

section.in-view .about-text {
  animation: fadeInLeft 1s forwards 0.3s;
}

.about-text p {
  margin-bottom: 15px;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Statistics Section */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(100,255,218,0.1)"/></svg>');
  opacity: 0.3;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.stat-item i {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  margin: 1rem 0;
}

.stat-item p {
  color: var(--light-slate);
  font-size: 1.1rem;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background-color: var(--navy);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 10rem;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

section.in-view .skill-card {
  animation: fadeInUp 0.6s forwards;
}

section.in-view .skill-card:nth-child(2) {
  animation-delay: 0.2s;
}

section.in-view .skill-card:nth-child(3) {
  animation-delay: 0.3s;
}

section.in-view .skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

section.in-view .skill-card:nth-child(5) {
  animation-delay: 0.5s;
}

section.in-view .skill-card:nth-child(6) {
  animation-delay: 0.6s;
}

section.in-view .skill-card:nth-child(7) {
  animation-delay: 0.7s;
}

section.in-view .skill-card:nth-child(8) {
  animation-delay: 0.8s;
}

section.in-view .skill-card:nth-child(9) {
  animation-delay: 0.9s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.skill-card i {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.skill-card:hover i {
  transform: scale(1.2);
}

/* Education Section */
.education {
  background-color: var(--dark-navy);
  padding: 5rem 0;
}

.timeline {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 30px;
  position: relative;
  width: 50%;
  margin-bottom: 30px;
  opacity: 0;
}

section.in-view .timeline-item {
  animation: fadeIn 0.8s forwards;
}

section.in-view .timeline-item:nth-child(2) {
  animation-delay: 0.3s;
}

section.in-view .timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

section.in-view .timeline-item:nth-child(4) {
  animation-delay: 0.9s;
}

section.in-view .timeline-item:nth-child(5) {
  animation-delay: 1.2s;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--dark-navy);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.timeline-item:hover::after {
  background-color: var(--accent-color);
}

.timeline-item:nth-child(odd)::after {
  right: -12px;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Interests Section */
.interests {
  background-color: var(--navy);
  padding: 5rem 0;
}

.interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.interest-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

section.in-view .interest-card:nth-child(1) {
  animation: fadeInUp 0.8s forwards;
}

section.in-view .interest-card:nth-child(2) {
  animation: fadeInUp 0.8s forwards 0.3s;
}

section.in-view .interest-card:nth-child(3) {
  animation: fadeInUp 0.8s forwards 0.6s;
}

.interest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.interest-card h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.interest-card i {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.interest-card:hover i {
  transform: scale(1.2);
}

/* Projects Section */
.projects {
  background-color: var(--dark-navy);
  padding: 5rem 0;
}

/* Project Filter Buttons */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--light-slate);
  border: 1px solid var(--light-slate);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--green);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--dark-navy);
  border-color: var(--green);
  transform: translateY(-2px);
}

.filter-btn.active {
  font-weight: 600;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--accent-color);
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--light-slate);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  background: rgba(100, 255, 218, 0.1);
  color: var(--green);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links .btn2 {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 0.3rem;
}

.project-links .btn2:hover {
  background-color: var(--green);
  color: #0a192f;
  transition: ease-in-out;
  transition-duration: 300ms;
}

/* Show More Button */
.show-more-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 5px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background-color: var(--green);
  color: #0a192f;
  transition: ease-in-out;
  transition-duration: 300ms;
}

/* Animation */
section.in-view .project-card {
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section.in-view .project-card:nth-child(n) {
  animation-delay: calc(0.1s * var(--i));
}

/* Testimonials Section */
.testimonials {
  background-color: var(--navy);
  padding: 5rem 0;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--dark-navy);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.15);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.quote-icon {
  font-size: 2rem;
  color: var(--green);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-content p {
  color: var(--light-slate);
  font-style: italic;
  line-height: 1.8;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.author-info h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-info p {
  color: var(--green);
  font-size: 0.85rem;
}

/* Blog Section */
.blog {
  background-color: var(--dark-navy);
  padding: 5rem 0;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--green);
  color: var(--dark-navy);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-date i {
  margin-right: 5px;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.blog-content p {
  color: var(--light-slate);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.read-more {
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 1rem;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Contact Section */
.contact {
  background-color: var(--navy);
  padding: 5rem 0;
}

.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  opacity: 0;
  transform: translateX(-20px);
}

section.in-view .contact-info {
  animation: fadeInRight 0.8s forwards;
}

.contact-info h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
}

.contact-method i {
  font-size: 24px;
  color: var(--accent-color);
  margin-right: 15px;
}

.contact-form {
  flex: 1;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(20px);
}

section.in-view .contact-form {
  animation: fadeInLeft 0.8s forwards;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(1, 47, 36, 0.2);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-navy);
  color: var(--text-color);
  text-align: center;
  padding: 30px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  color: var(--text-color);
  font-size: 24px;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
}

.form-status {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(75, 181, 67, 0.1);
  color: #4bb543;
  border: 1px solid #4bb543;
}

.form-status.error {
  display: block;
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid #ff0000;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
  /* .hero {
    height: auto;
    min-height: 50vh;
  } */

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content {
    flex-direction: column;
  }

  .timeline-item {
    width: 100%;
    left: 0;
  }

  .timeline::after {
    left: 30px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 21px;
  }

  .contact-container {
    flex-direction: column;
  }

  .project-card {
    width: 45%;
  }

  .projects-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    max-width: 90vw;
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    flex: 1;
    margin-top: 20px;
    padding-right: 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 100%;
  }

  .project-links {
    flex-direction: column;
  }

  /* Responsive filter buttons */
  .project-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 80%;
    max-width: 250px;
  }

  /* Responsive stats */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Responsive testimonials */
  .testimonials-container {
    grid-template-columns: 1fr;
  }

  /* Responsive blog */
  .blog-container {
    grid-template-columns: 1fr;
  }

  /* Hide theme toggle in nav, show in mobile menu */
  .nav-links .theme-toggle {
    display: none;
  }
}
