* {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 15px 8%;
  z-index: 1000;
}
.header .logo a {
  font-size: 24px;
  margin-left: 15px;
  text-decoration: none;
  color: #6c3cff;
  font-weight: 700;
}

.navbar .ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
.ul li a {
  text-decoration: none;
  color: #533;
  font-weight: 500;
  position: relative;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.buttons .theme-btn {
  background-color: #6c3cff;
  color: #fff;
  font-weight: 600;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border: 2px solid #6c3cff;
  border-radius: 8px;

  background-color: #6c3cff;
  color: #fff;

  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.3s ease;
}

.cv-btn:hover {
  background-color: transparent;
  color: #6c3cff;
  transform: translateY(-2px);
}
.hero {
  min-height: calc(500px - 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 60px 8%;
}
.me {
  flex: 1;
  max-width: 600px;
}

.me span {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.me h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.me p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-btn {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;
  border-radius: 8px;

  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  transition: 0.3s ease;
}

.projects-btn {
  background-color: #6c3cff;
  color: white;
  border: 2px solid #6c3cff;
}

.projects-btn:hover {
  transform: translateY(-3px);
}

.contact-btn {
  background-color: transparent;
  color: #6c3cff;
  border: 2px solid #6c3cff;
}

.contact-btn:hover {
  background-color: #6c3cff;
  color: white;
  transform: translateY(-3px);
}
.image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
}
/* ==================== ABOUT & SKILLS ==================== */

.about-skills {
  padding: 100px 8%;
  background-color: #f8f8fb;
}

/* ===== Section Title ===== */

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  color: #6c3cff;
  font-size: 15px;
  font-weight: 600;
}

.section-title h2 {
  margin-top: 8px;
  font-size: 38px;
}

/* ===== Main Content ===== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1200px;
  margin: auto;
}

/* ===== About ===== */

.about h3,
.skills h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about > p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #555;
}

/* ===== About Info ===== */

.about-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-item i {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #6c3cff;
  color: white;
  border-radius: 10px;
}

.info-item h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.info-item span {
  font-size: 14px;
  color: #777;
}

/* ===== Skills ===== */

.skill-group {
  margin-bottom: 30px;
}

.skill-group h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

/* ===== Skills List ===== */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 11px 16px;

  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  transition: 0.3s ease;
}

.skill i {
  font-size: 18px;
  color: #6c3cff;
}

.skill:hover {
  transform: translateY(-3px);
  border-color: #6c3cff;
}
/* ==================== PROJECTS ==================== */

.projects {
  padding: 100px 8%;
  background-color: #ffffff;
}

/* ===== Projects Container ===== */

.projects {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;

  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* ===== Project Card ===== */

.card {
  width: 340px;

  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition: 0.3s ease;
}

/* ===== Card Hover ===== */

.card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

  border-color: #6c3cff;
}

/* ===== Project Image ===== */

.card > img {
  width: 100%;
  height: 190px;

  object-fit: cover;

  display: block;

  transition: 0.4s ease;
}

.card:hover > img {
  transform: scale(1.03);
}

/* ===== Card Content ===== */

.card-content {
  padding: 20px;

  display: flex;
  flex-direction: column;
}

/* ===== Title ===== */

.card-content h3 {
  font-size: 20px;
  margin-bottom: 10px;

  color: #222;
}

/* ===== Description ===== */

.card-content > p {
  color: #666;

  font-size: 14px;
  line-height: 1.7;

  margin-bottom: 16px;
}

/* ===== Technologies ===== */

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 20px;
}

.technologies span {
  padding: 6px 10px;

  background-color: #f1edff;
  color: #6c3cff;

  border-radius: 6px;

  font-size: 12px;
  font-weight: 600;
}

/* ===== Project Link ===== */

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 15px;

  background-color: #6c3cff;
  color: #ffffff;

  border: 2px solid #6c3cff;
  border-radius: 8px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  transition: 0.3s ease;
}

.project-link:hover {
  background-color: transparent;
  color: #6c3cff;
}
/* ==================== CONTACT ==================== */

.contact {
  padding: 100px 8%;
  background-color: #f8f8fb;
}

/* ===== Section Title ===== */

.contact .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.contact .section-title p {
  max-width: 600px;
  margin: 12px auto 0;

  color: #666;
  line-height: 1.7;
}

/* ===== Contact Container ===== */

.contact-container {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

/* ===== Contact Info ===== */

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.contact-info > p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* ===== Contact Item ===== */

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-bottom: 22px;
}

/* ===== Contact Icon ===== */

.contact-item i {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background-color: #6c3cff;
  color: #ffffff;

  border-radius: 10px;
}

/* ===== Contact Text ===== */

.contact-item h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.contact-item span,
.contact-item a {
  color: #777;
  font-size: 14px;
  text-decoration: none;

  transition: 0.3s ease;
}

/* ===== Contact Links Hover ===== */

.contact-item a:hover {
  color: #6c3cff;
}

/* ===== Contact Form ===== */

.contact-form {
  background-color: #ffffff;

  padding: 30px;

  border: 1px solid #e5e5e5;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== Input Group ===== */

.input-group {
  display: flex;
  flex-direction: column;

  margin-bottom: 20px;
}

.input-group label {
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 600;
}

/* ===== Inputs ===== */

.input-group input,
.input-group textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;

  border: 1px solid #ddd;
  border-radius: 8px;

  outline: none;

  font-family: inherit;
  font-size: 14px;

  transition: 0.3s ease;
}

.input-group textarea {
  resize: vertical;
}

/* ===== Input Focus ===== */

.input-group input:focus,
.input-group textarea:focus {
  border-color: #6c3cff;

  box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.08);
}

/* ===== Send Button ===== */

.send-btn {
  width: 100%;

  padding: 12px;

  border: 2px solid #6c3cff;
  border-radius: 8px;

  background-color: #6c3cff;
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.send-btn:hover {
  background-color: transparent;
  color: #6c3cff;
}
/* ==================== FOOTER ==================== */

.footer {
    background-color: #17151f;
    color: #ffffff;
    padding-top: 60px;
}


/* ===== Footer Container ===== */

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 8% 50px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}


/* ===== Footer Logo / About ===== */

.footer-logo h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.footer-logo p {
    max-width: 350px;

    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}


/* ===== Footer Headings ===== */

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    margin-bottom: 20px;
}


/* ===== Footer Links ===== */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    width: fit-content;

    color: #aaa;
    text-decoration: none;

    font-size: 14px;

    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}


/* ===== Social Icons ===== */

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #444;
    border-radius: 8px;

    color: #aaa;
    text-decoration: none;

    transition: 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    border-color: #6c3cff;
    background-color: #6c3cff;

    transform: translateY(-4px);
}


/* ===== Footer Bottom ===== */

.footer-bottom {
    border-top: 1px solid #333;

    padding: 20px 8%;

    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 13px;
}
/* ==================== DARK MODE ==================== */

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .about-skills,
body.dark-mode .projects,
body.dark-mode .contact {
    background-color: #121212;
}

body.dark-mode .card,
body.dark-mode .contact-form,
body.dark-mode .skill {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .card-content h3,
body.dark-mode .about h3,
body.dark-mode .skills h3,
body.dark-mode .contact-info h3 {
    color: #ffffff;
}

body.dark-mode .card-content > p,
body.dark-mode .about > p,
body.dark-mode .contact-info > p {
    color: #aaa;
}

body.dark-mode .section-title h2,
body.dark-mode .info-item h4 {
    color: #ffffff;
}

body.dark-mode .contact-item span,
body.dark-mode .contact-item a {
    color: #aaa;
}

body.dark-mode .contact-form {
    box-shadow: none;
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea {
    background-color: #252525;
    color: #ffffff;
    border-color: #444;
}

body.dark-mode .skill {
    background-color: #1e1e1e;
}

body.dark-mode .footer {
    background-color: #0b0b0b;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 992px) {
  .header { padding: 14px 5%; gap: 20px; }
  .navbar .ul { gap: 18px; }
  .buttons { gap: 8px; }
  .cv-btn { padding: 9px 14px; font-size: 14px; }
  .hero { padding: 60px 5%; gap: 35px; }
  .me h2 { font-size: 42px; }
  .me p { font-size: 16px; }
  .image img { width: 300px; height: 300px; }
  .about-skills, .projects, .contact { padding-left: 5%; padding-right: 5%; }
  .about-content { gap: 40px; }
  .contact-container { gap: 35px; }
  .footer-container { padding-left: 5%; padding-right: 5%; gap: 35px; }
}

@media (max-width: 768px) {
  .header { flex-wrap: wrap; justify-content: center; padding: 12px 5%; }
  .header .logo { margin-right: auto; }
  .buttons { margin-left: auto; }
  .navbar { order: 3; width: 100%; }
  .navbar .ul { justify-content: center; gap: 20px; flex-wrap: wrap; }
  .hero { min-height: auto; flex-direction: column-reverse; text-align: center; padding: 55px 5%; gap: 35px; }
  .me { max-width: 100%; }
  .me h2 { font-size: 38px; line-height: 1.2; }
  .me p { line-height: 1.7; margin-bottom: 25px; }
  .hero-btn { justify-content: center; flex-wrap: wrap; }
  .image img { width: 260px; height: 260px; }
  .about-skills, .projects, .contact { padding-top: 75px; padding-bottom: 75px; }
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 32px; }
  .about-content { grid-template-columns: 1fr; gap: 50px; }
  .skills-list { justify-content: flex-start; }
  .projects { width: auto; max-width: none; margin: 0; }
  .card { width: min(100%, 420px); }
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 25px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .header { padding: 12px 4%; }
  .header .logo a { font-size: 22px; margin-left: 0; }
  .buttons { gap: 6px; }
  .buttons .theme-btn { width: 36px; height: 36px; }
  .cv-btn { padding: 8px 11px; font-size: 12px; }
  .navbar .ul { gap: 12px; justify-content: space-between; }
  .ul li a { font-size: 13px; }
  .hero { padding: 45px 4%; }
  .image img { width: 210px; height: 210px; }
  .me span { font-size: 17px; }
  .me h2 { font-size: 30px; }
  .me p { font-size: 14px; line-height: 1.8; }
  .hero-btn { flex-direction: column; width: 100%; gap: 10px; }
  .hero-btn a { width: 100%; box-sizing: border-box; }
  .about-skills, .projects, .contact { padding: 60px 4%; }
  .section-title { margin-bottom: 35px; }
  .section-title span { font-size: 13px; }
  .section-title h2 { font-size: 27px; }
  .about h3, .skills h3, .contact-info h3 { font-size: 24px; }
  .about > p, .contact-info > p { font-size: 14px; }
  .info-item { align-items: flex-start; }
  .info-item i, .contact-item i { width: 40px; height: 40px; flex-shrink: 0; }
  .info-item h4, .contact-item h4 { font-size: 14px; }
  .info-item span, .contact-item span, .contact-item a { font-size: 12px; overflow-wrap: anywhere; }
  .skill { padding: 9px 12px; font-size: 13px; }
  .skill i { font-size: 16px; }
  .card { width: 100%; }
  .card > img { height: 180px; }
  .card-content { padding: 17px; }
  .card-content h3 { font-size: 18px; }
  .card-content > p { font-size: 13px; }
  .contact-form { padding: 20px 16px; }
  .input-group input, .input-group textarea { font-size: 13px; }
  .footer { padding-top: 45px; }
  .footer-container { grid-template-columns: 1fr; padding: 0 4% 35px; gap: 30px; text-align: center; }
  .footer-logo { grid-column: auto; }
  .footer-logo p { margin: 0 auto; }
  .footer-links { align-items: center; }
  .social-icons { justify-content: center; }
  .footer-bottom { padding: 18px 4%; }
  .footer-bottom p { font-size: 11px; line-height: 1.6; }
}

@media (max-width: 360px) {
  .header .logo a { font-size: 20px; }
  .cv-btn { padding: 7px 8px; font-size: 11px; }
  .navbar .ul { gap: 8px; }
  .ul li a { font-size: 12px; }
  .image img { width: 180px; height: 180px; }
  .me h2 { font-size: 27px; }
  .section-title h2 { font-size: 24px; }
}
