* {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  padding: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  display: flex;
  background: whitesmoke;
  backdrop-filter: blur(5px);
  border-bottom: 3px solid #68002f;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}
.brand {
  font-family: "Inter", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #68002f;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}

/* The Glowing Dot */
.brand .dot {
  color: #00d4ff;
  font-size: 2.2rem;
  margin-right: 2px;
}

/* The Animated X */
.brand .x-mark {
  color: #68002f;
  display: inline-block;
  margin-left: 2px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover .x-mark {
  color: #00d4ff;
  transform: rotate(15deg) scale(1.1);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.links {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}
.links:hover {
  color: white;
  background: purple;
  padding: 1px 3px;
  filter: brightness(1.1);
  border-radius: 10px;
  padding: 2px 5px;
}
.links.active {
  font-weight: 700px;
  border-bottom: 3px solid purple;
  border-radius: 10px;
  padding: 2px 5px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 4px;
  background-color: black;
  border-radius: 3px;
  transition: 0.3s ease;
  display: block;
}

/* 768 screen */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
    margin: 0;
  }
  .ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: whitesmoke;
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 3px solid #68002f;
  }
  .ul.active {
    display: flex;
  }
  .ul li {
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
    margin: 0;
  }
  .ul li a {
    display: block;
    color: #1a1a1a;
    transition: 0.3s ease;
  }
  .ul li a:hover {
    color: white;
    background: purple;
    border-radius: 10px;
    filter: brightness(1.1);
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}
/* 360 screen */
@media (max-width: 360px) {
  .navbar {
    padding: 0.4rem 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .brand span {
    display: none;
  }
  .brand img {
    height: 30px;
  }
  .ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: whitesmoke;
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 3px solid #68002f;
  }
  .ul.active {
    display: flex;
  }
  .ul li {
    border-bottom: 1px solid #ddd;
    padding: 0.8rem 1rem;
    margin: 0;
  }
  .ul li a {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    transition: 0.3s ease;
  }
  .ul li a:hover {
    color: white;
    background: purple;
    border-radius: 10px;
    filter: brightness(1.1);
  }
  .hamburger {
    gap: 4px;
    margin-right: 6px;
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* main */
main {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #f3e8ff, #ffffff);
}

.welcome-image {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/bgimage.jpg");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-text h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.btn-main {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #ff4d4d;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.portfolio-container {
  padding: 80px 10%;
  background: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: #333;
}

.card-link {
  text-decoration: none;
  color: #ff4d4d;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

/* About Page*/
.about-hero {
  padding: 120px 5% 80px;
  background: #0a0a0a;
  color: white;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.subheading {
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.9rem;
}

.about-text h1 {
  font-size: 3.5rem;
  margin: 20px 0;
  line-height: 1.1;
}

.about-text h1 span {
  color: #00d4ff;
}

.about-text p {
  color: #aaa;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.stat p {
  font-size: 0.9rem;
  color: #555;
}

.visual-box {
  width: 100%;
  height: 450px;
  background: linear-gradient(45deg, #111, #222);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  position: relative;
}
.visual-box img {
  width: 700px;
  height: 450px;
  border-radius: 20px;
}

.visual-box::after {
  content: "X";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  color: rgba(0, 212, 255, 0.03);
  font-weight: 900;
}

.expertise {
  padding: 80px 5%;
  background: #0f0f0f;
}

.expertise-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  background: #151515;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.skill-card:hover {
  border-color: #00d4ff;
  transform: translateY(-5px);
}

.skill-card h3 {
  color: #00d4ff;
  margin-bottom: 15px;
}

.skill-card p {
  color: #888;
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats {
    justify-content: center;
  }
  .about-text h1 {
    font-size: 2.5rem;
  }
}

/* Services */
.services-header {
  text-align: center;
  padding: 120px 5% 40px;
  background: #0a0a0a;
  color: #68002f;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
  padding: 0 10% 100px;
  background: #0a0a0a;
  max-width: 1400px;
  margin: 0 auto;
}

.service-item {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-item.featured {
  grid-row: span 2;
}

.service-item.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.service-item .icon {
  font-size: 2.5rem;
  color: #00d4ff;
  margin-bottom: 20px;
}

.service-item h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.service-item p {
  color: #777;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tag {
  align-self: flex-start;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 20px;
}

.service-item:hover {
  background: #161616;
  border-color: rgba(0, 212, 255, 0.4);
  transform: scale(0.98);
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 5% 80px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .service-item.featured,
  .service-item.wide {
    grid-row: span 1;
    grid-column: span 1;
    flex-direction: column;
  }
}

/* --- Portfolio --- */
.portfolio-header {
  text-align: center;
  padding: 120px 5% 60px;
  background: #0a0a0a;
  color: white;
}

.portfolio-header p {
  color: #888;
  margin-top: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 10% 100px;
  background: #0a0a0a;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay .category {
  color: #00d4ff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-overlay h3 {
  color: #fff;
  margin: 10px 0 20px;
  font-size: 1.4rem;
}

.view-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #00d4ff;
  padding-bottom: 5px;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 5% 80px;
  }
  .project-media img {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blog Page --- */
.blog-header {
  text-align: center;
  padding: 120px 5% 40px;
  background: #0a0a0a;
}

.featured-blog {
  padding: 0 10% 80px;
  background: #0a0a0a;
}

.featured-card {
  display: flex;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-img {
  flex: 1.2;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 10% 100px;
  background: #0a0a0a;
}

.post-card {
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: #00d4ff;
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.post-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: 0.4s;
}

.post-card:hover .post-img img {
  filter: grayscale(0%);
}

.post-content {
  padding: 25px;
}

.post-content h3 {
  color: #fff;
  margin: 10px 0;
  font-size: 1.4rem;
}

.post-content p {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
}

.date,
.tag {
  color: #00d4ff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .featured-card {
    flex-direction: column;
  }

  .featured-content {
    padding: 40px;
  }

  .blog-header h1 {
    font-size: 2.5rem;
  }
}

/* --- Contact Page Styling --- */
.contact-hero {
  padding: 120px 10% 100px;
  background: #0a0a0a;
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.contact-info h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 20px 0;
}

.contact-info h1 span {
  color: #00d4ff;
}

.info-items {
  margin: 40px 0;
}

.item {
  margin-bottom: 25px;
}

.item h4 {
  color: #555;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.item a,
.item p {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  margin-top: 5px;
  display: block;
}

/* --- Form Styling --- */
.contact-form-wrapper {
  background: #111;
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  color: #fff;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00d4ff;
  background: rgba(255, 255, 255, 0.07);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: #00d4ff;
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contact-info h1 {
    font-size: 2.5rem;
  }
}

/* footer */
.small-footer {
  background-color: #0a0a0a;
  padding: 40px 5% 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-email {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-email:hover {
  color: #00d4ff;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.5;
  transition: 0.3s;
}

.footer-socials a:hover {
  opacity: 1;
  color: #00d4ff;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.footer-copyright p {
  color: #444;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    gap: 15px;
  }
}
