/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --danger-color: #e74c3c;
  --success-color: #2ecc71;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

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

section {
  padding: 8rem 0;
}

.section {
  padding: 8rem 0;
}

.heading {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 5rem;
  color: var(--dark-color);
  position: relative;
}

.heading i {
  color: var(--primary-color);
  margin-right: 1rem;
}

.heading span {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(-1px);
}

/* Navbar Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 2.5rem;
  color: var(--dark-color);
  font-weight: 600;
  text-decoration: none;
}

header .logo i {
  color: var(--primary-color);
}

header .navbar ul {
  list-style: none;
  display: flex;
}

header .navbar ul li {
  margin-left: 3.5rem;
}

header .navbar ul li a {
  font-size: 1.7rem;
  color: var(--dark-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

header .navbar ul li a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

header .navbar ul li a:hover::before {
  width: 100%;
}

header .navbar ul li a.active {
  color: var(--primary-color);
}

header .navbar ul li a.active::before {
  width: 100%;
}

#menu {
  font-size: 2.5rem;
  color: var(--dark-color);
  cursor: pointer;
  display: none;
}

/* Hero Section */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9%;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.home .content {
  max-width: 60rem;
  z-index: 10;
}

.home .content h2 {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

.home .content h2 span {
  color: var(--primary-color);
}

.home .content p {
  font-size: 1.8rem;
  margin: 2rem 0 4rem;
}

.home .image {
  width: 35%;
  animation: float 3s linear infinite;
}

.home .image img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0rem);
  }
  50% {
    transform: translateY(-3.5rem);
  }
}

/* Social Icons */
.socials {
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  gap: 2rem;
}

.social-icons li {
  list-style: none;
}

.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 0.2rem solid var(--primary-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons li a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-0.3rem);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6rem;
}

.about .row .image {
  flex: 1 1 40rem;
}

.about .row .image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.about .row .content {
  flex: 1 1 50rem;
}

.about .row .content h3 {
  font-size: 3.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.about .row .content .tag {
  font-size: 1.7rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 2rem;
  display: inline-block;
}

.about .row .content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 3rem;
}

.about .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about .box-container .box {
  flex: 1 1 25rem;
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about .box-container .box p {
  font-size: 1.5rem;
  line-height: 2;
  color: #666;
}

.about .box-container .box p span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.skill-item {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-1rem);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-item i {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skill-item span {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* Brand / third-party icons sizing (e.g., Adobe logos SVGs) */
.brand-icon {
  width: 3.6rem; /* matches font/icon sizing used elsewhere */
  height: 3.6rem;
  display: inline-block;
  vertical-align: middle;
}

.brand-logolist {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* Education Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 5rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 1rem;
}

.timeline-item {
  padding: 1rem 4rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  right: -1.25rem;
  background: #fff;
  border: 0.5rem solid var(--primary-color);
  top: 1.5rem;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.timeline-item .content {
  padding: 2rem 3rem;
  background: #fff;
  position: relative;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item .content h3 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.timeline-item .content p {
  font-size: 1.5rem;
  color: #666;
  line-height: 1.6;
}

.timeline-item .content p:first-of-type {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Work Experience Section */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.work-item {
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.work-item:hover {
  transform: translateY(-1rem);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.work-item h3 {
  font-size: 2.2rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.work-item p {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.work-item ul {
  list-style-position: inside;
}

.work-item ul li {
  font-size: 1.5rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* Projects grid and cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.project-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
}

.project-body h3 {
  font-size: 2rem;
  color: var(--dark-color);
}

.project-desc {
  color: #666;
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}

.project-meta {
  display:flex;
  gap: .6rem;
  flex-wrap:wrap;
}

.project-meta .tech {
  background: #f3f6fb;
  color: var(--dark-color);
  padding: .4rem .8rem;
  border-radius: .6rem;
  font-size: 1.3rem;
}

.project-card .btn {
  margin-top: auto;
  width: fit-content;
}

/* Project card action buttons (live / code) */
.project-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
}

.project-actions a.card-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  background: var(--light-color);
  color: var(--dark-color);
  border-radius: .6rem;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  font-size: 1.4rem;
}

.project-actions a.card-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Toast notifications (used by script.js) */
#toast-container {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2000;
}

.toast {
  background: rgba(44, 62, 80, 0.95);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: .6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(1rem);
  transition: all 300ms ease;
  font-size: 1.4rem;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project modal styles */
.project-modal { display: none; position: fixed; inset: 0; z-index: 3000; }
.project-modal[aria-hidden="false"] { display: block; }
.project-modal .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.project-modal .modal-dialog { position: relative; max-width: 1100px; margin: 5vh auto; z-index: 1; }
.project-modal .modal-content { background: #fff; border-radius: 12px; overflow: hidden; display: flex; gap: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.project-modal .modal-image { flex: 1 1 50%; min-height: 28rem; }
.project-modal .modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal .modal-info { flex: 1 1 50%; padding: 2.4rem; display: flex; flex-direction: column; }
.project-modal .modal-info h3 { font-size: 2.6rem; margin-bottom: 1rem; }
.project-modal .modal-info p { color: #666; font-size: 1.6rem; line-height: 1.6; margin-bottom: 1.5rem; }
.project-modal .modal-actions { margin-top: auto; }
.project-modal .modal-actions { margin-top: auto; display: flex; gap: 1rem; }
.project-modal .modal-actions a.btn { padding: .8rem 1.4rem; font-size: 1.4rem; }
.project-modal .modal-close { position: absolute; right: 1rem; top: 1rem; background: transparent; border: none; font-size: 3rem; color: #fff; z-index: 2; cursor: pointer; }

@media (max-width: 768px) {
  .project-modal .modal-content { flex-direction: column; }
  .project-modal .modal-image { min-height: 18rem; }
}

/* Contact Section */
.contact-form {
  background: #fff;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 15rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.info-item p {
  font-size: 1.6rem;
  color: #666;
}

/* Footer */
.footer {
  background: var(--dark-color);
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  font-size: 1.6rem;
  color: #fff;
}

.footer p i {
  color: var(--danger-color);
  margin: 0 0.5rem;
}

.footer p span {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  
  header {
    padding: 2rem;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .home {
    padding: 0 4%;
    flex-direction: column;
    text-align: center;
  }
  
  .home .content {
    max-width: 100%;
    margin-bottom: 5rem;
  }
  
  .home .image {
    width: 70%;
  }
  
  .timeline::after {
    left: 3.1rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 7rem;
    padding-right: 2.5rem;
  }
  
  .timeline-item::after {
    left: 1.8rem;
  }
  
  .left, .right {
    left: 0;
  }
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }
  
  header .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  header .navbar.active {
    left: 0;
  }
  
  header .navbar ul {
    flex-direction: column;
    padding: 2rem;
  }
  
  header .navbar ul li {
    margin: 1.5rem 0;
  }
  
  .home .content h2 {
    font-size: 4.5rem;
  }
  
  .about .row {
    flex-direction: column;
  }
  
  .about .row .image {
    margin-bottom: 5rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  
  .home .content h2 {
    font-size: 3.5rem;
  }
  
  .heading {
    font-size: 3.5rem;
  }
}