html{
    scroll-behavior: smooth;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  .logo-container{
    color: white;
    background-color: #121212;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.menu-icon {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding-bottom: 2rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: 70px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 60%;
  align-items: flex-end;
}

.nav-links.show {
  display: flex;
}

.nav-links a,
.nav-links button {
  padding: 0.5rem ;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  color: #1a1a1a;
}



.nav-links{
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100%;
  z-index: 1000;
}

#menu-icon.show {
  display: flex;
}

#menu-icon{
  font-size: 2rem;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  z-index: 1001;
  margin-right: 1rem;
}



/* Desktop Nav */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    gap: 1.5rem;
    align-items: center;
    padding: 0;
    width: auto;
    justify-content: flex-end;
    overflow-x: hidden;
  }

  .menu-icon {
    display: none;
  }

  .nav-links button {
    text-align: center;
    width: auto;
  }
}

/* HERO */
.hero {
  background: #e6e6e8;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2rem;
  color: #222;
}

.hero-text p {
  font-size: 1.1rem;
  color: #141414;
}

/* ABOUT */
.about {
  padding: 3rem 1.5rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.about-photo img {
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text {
  max-width: 600px;
  text-align: center;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .about-text {
    text-align: left;
  }

  
}

/* PROJECTS */

/* PROJECTS */
.projects {
  padding: 2rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

/* 3 cards in a row on desktop */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.5rem;
}

/* Compact project card */
.project-card {
  background: #fff;
  padding: 0.7rem;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

/* Image */
.project-card img {
  border-radius: 5px;
  margin-bottom: 0.4rem;
  width: 100%;
  height: auto;
}

/* Title (smaller + clean) */
.project-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 6px 0;
}

/* Button */
.project-card a {
  display: inline-block;
  padding: 6px 12px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  margin-top: 4px;
}

/* Hover effect (optional, classy) */
.project-card:hover {
  transform: translateY(-3px);
}

/* Responsive – phones/tablets go back to 1 card per row */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.projView {
  border: 0;
  border-radius: 3rem;
  padding-top: 1rem;
  padding-left: 2rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  background-color: #181818;
  font-size: 20px;
  font-weight: 600;
  justify-content: center;
}


.projView a{
  text-decoration: none;
  color: #e6e6e8;
}


.projView a:hover{
  text-decoration: underline;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

   body.dark .menu-icon {
    color: white;
  }
}



/* INSIGHT */
.insight {
  padding: 3rem 1.5rem;
  text-align: center;
  font-style: italic;
  color: #555;
}

.about-section {
  max-width: 1000px;
  margin: auto;
  padding: 40px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.about-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin: 20px auto;
  max-width: 800px;
}

.image-block {
  margin: 30px 0;
}

.image-block img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

.caption {
  margin-top: 10px;
  font-style: italic;
  color: #555;
}


/* WHY ME */
.why-me {
  padding: 3rem 1.5rem;
  text-align: center;
}

.why-me ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.why-me li {
  margin-bottom: 0.5rem;
}

/* CONTACT */
.contact {
  padding: 3rem 1.5rem;
  background: #e6e6e8;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 1.8rem;
}

.contact-links a {
  color: #333;
  transition: color 0.3s;
}

.contact-links a:hover {
  color: #040404;
}

/* DARK MODE */
body.dark {
  background: #121212;
  color: #eee;
}

body.dark .navbar,
body.dark .nav-links,
body.dark .project-card {
  background: #1f1f1f;
}

body.dark .hero {
  background: #181818;
}

body.dark .nav-links a,
body.dark .contact-links a {
  color: #eee;
}

body.dark .contact {
  background: #222;
}
body.dark .hero-text h1{
  color: white;
}

body.dark .hero-text p{
  color: white;
}

body.dark .my-project h2{
  color: black;
}

body.dark .logo-container{
  color: white;
}
body.dark .menu-icon{
  color: white;
}





.mt_8{
    margin-top: 8rem;
}

.mb_8{
    margin-bottom: 8rem;
}

.mt_7{
    margin-top: 7rem;
}

.mb_7{
    margin-bottom: 7rem;
}

.mt_6{
    margin-top: 6rem;
}

.mb_6{
    margin-bottom: 6rem;
}

.mt_5{
    margin-top: 5rem;
}

.mb_5{
    margin-bottom: 5rem;
}

.mt_4{
    margin-top: 4rem;
}

.mb_4{
    margin-bottom: 4rem;
}

.mt_3{
    margin-top: 3rem;
}

.mb_3{
    margin-bottom: 3rem;
}

.mt_2{
    margin-top: 2rem;
}

.mb_2{
    margin-bottom: 1rem;
}

.mt_1{
    margin-top: 1rem;
}

.mb_1{
    margin-bottom: 1rem;
}


.pt_8{
    padding-top: 8rem;
}

.pb_8{
    padding-bottom: 8rem;
}

.pt_7{
    padding-top: 7rem;
}

.pb_7{
    padding-bottom: 7rem;
}

.pt_6{
    padding-top: 6rem;
}

.pb_6{
    padding-bottom: 6rem;
}
.pt_5{
    padding-top: 5rem;
}

.pb_5{
    padding-bottom: 5rem;
}
.pt_4{
    padding-top: 4rem;
}

.pb_4{
    padding-bottom: 4rem;
}

.pt_3{
    padding-top: 3rem;
}

.pb_3{
    padding-bottom: 3rem;
}
.pt_2{
    padding-top: 2rem;
}

.pb_2{
    padding-bottom: 2rem;
}

.pt_1{
    padding-top: 1rem;
}

.pb_1{
    padding-bottom: 1rem;
}

.ml_8{
    margin-left: 8rem;
}
.mr_8{
    margin-right: 8rem;
}

.ml_7{
    margin-left: 7rem;
}
.mr_7{
    margin-right: 7rem;
}

.ml_6{
    margin-left: 6rem;
}
.mr_6{
    margin-right: 6rem;
}

.ml_5{
    margin-left: 5rem;
}
.mr_5{
    margin-right: 5rem;
}

.ml_4{
    margin-left: 4rem;
}
.mr_4{
    margin-right: 4rem;
}

.ml_3{
    margin-left: 3rem;
}
.mr_3{
    margin-right: 3rem;
}

.ml_2{
    margin-left: 2rem;
}
.mr_2{
    margin-right: 2rem;
}

.ml_1{
    margin-left: 1rem;
}
.mr_1{
    margin-right: 1rem;
}

.pl_8{
    padding-left: 8rem;
}

.pr_8{
    padding-right: 8rem;
}

.pl_7{
    padding-left: 7rem;
}

.pr_7{
    padding-right: 7rem;
}

.pl_6{
    padding-left: 6rem;
}

.pr_6{
    padding-right: 6rem;
}

.pl_5{
    padding-left: 5rem;
}

.pr_5{
    padding-right: 5rem;
}

.pl_4{
    padding-left: 4rem;
}

.pr_4{
    padding-right: 4rem;
}
.pl_3{
    padding-left: 3rem;
}

.pr_3{
    padding-right: 3rem;
}

.pl_2{
    padding-left: 2rem;
}

.pr_2{
    padding-right: 2rem;
}

.pl_1{
    padding-left: 1rem;
}

.pr_1{
    padding-right: 1rem;
}


  #dahzickMarquee .carousel-item {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  #dahzickMarquee {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
  }


  .hero-section {
  position: relative;
  height: 300px; /* Smaller height */
  background: url('images/dahzick2.jpg') no-repeat center center;
  background-size: contain; /* So image remains its natural size */
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Soft overlay */
}

.hero-text {
  z-index: 2;
  position: relative;
}

.fade-text {
  opacity: 0;
  animation: fadeInOut 8s ease-in-out infinite;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  50% { opacity: 1; }
  90% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; }
}


/* === Hero Box Animation on Mobile === */
.hero-text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
}

.box-content {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: slideInMobile 1s ease-out forwards;
}

/* Slide from right on mobile */
@keyframes slideInMobile {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Remove animation on desktop */
@media (min-width: 768px) {
  .box-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .about-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
  }

    .about-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .about-pair .image-block,
  .about-pair .about-text {
    flex: 1;
  }

  .about-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .caption {
    font-style: italic;
    margin-top: 0.5rem;
    color: #555;
    text-align: center;
  }
}

/* Mobile styles: stack vertically, text first */
@media (max-width: 767px) {
  .about-pair {
    flex-direction: column;
  }

  .about-pair .image-block {
    order: 2; /* image second */
  }

  .about-pair .about-text {
    order: 1; /* text first */
  }
}

.why-me {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers content horizontally */
  justify-content: center; /* centers in case it's inside a flex parent */
  max-width: 800px;
  margin: 0 auto; /* centers the section itself */
  padding: 2rem 1rem;
  text-align: left;
}

.why-me h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.why-me ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.why-me li {
  margin-bottom: 1rem;
  line-height: 1.6;
}


#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

#backToTop:hover {
  background-color: #555;
}

#backToTop svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    padding: 10px;
  }
}


.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background: #1f1f1f;
  padding: 2rem;
  
  color: #fff;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #333;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form button {
  padding: 0.8rem;
  background-color: #f8f7f5;
  color: #181818;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #151514;
  color:white;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.contact-info a {
  color: #fdfcfa;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}



.support-image {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
}



/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #fff;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

/* FOOTER SECTIONS */
.footer-box {
  flex: 1 1 250px;
}

.footer-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 0.6rem;
}

.footer-box ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer-box ul li a:hover {
  color: white;
  text-decoration: underline;
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #fff;
  color: #111;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  color: #bbb;
  font-size: 0.95rem;
}

/* DARK MODE SUPPORT */
body.dark footer {
  background: #000;
}

body.dark .footer-box ul li a {
  color: #ccc;
}

body.dark .footer-social a {
  background: #222;
  color: #eee;
}

body.dark .footer-social a:hover {
  background: #fff;
  color: #000;
}



/* ARTICLES SECTION */
.articles {
  padding: 2rem 1rem;
  background: #f4f4f4;
  text-align: center;
}

.articles-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.articles-header p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Grid layout for articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

/* Image */
.article-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

/* Title */
.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0;
  color: #333;
}

/* Description */
.article-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* Button */
.article-card a {
  display: inline-block;
  padding: 6px 12px;
  background: #333;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
}

/* Hover animation */
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Fade-in animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ARTICLES SECTION */
.articles {
  padding: 2rem 1rem;
  background: #f4f4f4;
  text-align: center;
}

.articles .articles-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.articles .articles-header p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Grid Layout: 3 cards per row */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

/* Card Image */
.article-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  transition: transform 0.4s ease;
}

/* Hover Animation */
.article-card:hover img {
  transform: scale(1.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Card Title & Description */
.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.article-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* Read More Button */
.article-card a {
  display: inline-block;
  padding: 6px 12px;
  background: #333;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.article-card a:hover {
  background: #555;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .about-text {
    text-align: left;
  }

  
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
