:root {
  --primary-grad-1: #667eea;
  --primary-grad-2: #764ba2;
  --accent-grad-1: #00d4ff;
  --accent-grad-2: #ff6b6b;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --card-light: #f9f9f9;
  --card-dark: #1e1e1e;
  --text-light: #333;
  --text-dark: #eee;
  --text-muted-light: #666;
  --text-muted-dark: #aaa;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);

  --transition-speed: 0.5s;
}

/* Dark Mode */
body.dark-mode {
  --bg-light: #121212;
  --bg-dark: #ffffff;
  --card-light: #1e1e1e;
  --card-dark: #f9f9f9;
  --text-light: #eee;
  --text-dark: #333;
  --text-muted-light: #aaa;
  --text-muted-dark: #666;
  --shadow-light: rgba(0, 0, 0, 0.5);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.1);
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  /* background: linear-gradient(
    45deg,
    var(--text-muted-light),
    var(--bg-dark)
  ); */
  backdrop-filter: blur(15px);
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
}
.logo {
  height: 40px;
  width: auto;
  display: block;
  /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); */
  filter: drop-shadow(0 0 10px var(--accent-grad-2)) brightness(1.1);
  transition: filter 0.3s ease;
}
.logo:hover {
  filter: drop-shadow(0 0 6px var(--accent-grad-1));
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 25px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
  color: var(--accent-grad-1);
  background: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
  margin-left: 15px;
}
.theme-switch input {
  display: none;
}
.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 16px;
  border-radius: 50%;
}
input:checked + .slider {
  background: linear-gradient(
    45deg,
    var(--accent-grad-1),
    var(--accent-grad-2)
  );
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider .fa-moon {
  position: absolute;
  left: 5px;
  top: 4px;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s;
}
.slider .fa-sun {
  position: absolute;
  right: 5px;
  top: 4px;
  color: #fff;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.4s;
}
input:checked + .slider .fa-moon {
  opacity: 1;
}
input:checked + .slider .fa-sun {
  opacity: 0;
}

.burger {
  display: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url("./assets//herobg.gif");
  background-repeat: no-repeat;
  background-size: cover;
  /* background: linear-gradient(
    135deg,
    var(--primary-grad-1),
    var(--primary-grad-2)
  ); */
  color: white;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, var(--accent-grad-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(
    45deg,
    var(--accent-grad-1),
    var(--accent-grad-2)
  );
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

/* Section Styles */
.section {
  padding: 100px 5vw;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-light);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    45deg,
    var(--accent-grad-1),
    var(--accent-grad-2)
  );
  border-radius: 2px;
}

/* Services Section - Flip Cards */
#services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  perspective: 1000px;
}

.service-card {
  background-color: transparent;
  height: 350px;
  border-radius: 20px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px var(--shadow-light);
  border-radius: 20px;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.service-card-front {
  background-color: var(--card-light);
  color: var(--text-light);
  border: 1px solid var(--border-light);
}
.sofdev {
  background-image: url("./assets/softdev.png");
  background-size: cover;
}
.webdev {
  background-image: url("./assets/webdev.png");
  background-size: cover;
}
.appdev {
  background-image: url("./assets/appdev.png");
  background-size: cover;
}
.digimark {
  background-image: url("./assets/digimark.png");
  background-size: cover;
}
.service-card-back {
  background: linear-gradient(135deg, var(--primary-grad-1), var(--bg-dark));
  color: white;
  transform: rotateY(180deg);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--accent-grad-2);
}

.service-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card-back p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Projects Section - Auto Scroll */
.projects-section {
  background-color: var(--bg-light);
  padding: 100px 0;
}

.scroller {
  max-width: 1200px;
  margin: 60px auto 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.scroller:hover .scroller-inner {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 15px));
  }
}

.project-card {
  background-color: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  width: 380px;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-light);
}

.project-card p {
  color: var(--text-muted-light);
  margin-bottom: 15px;
}

.project-card .client {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}
@media (max-width: 768px) {
  .scroller-inner {
    gap: 20px;
  }

  .project-card {
    width: 280px;
    min-height: 280px;
    padding: 20px;
    font-size: 0.95rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .project-card .client {
    font-size: 0.8rem;
  }
}

/* About Section - Timeline */
/* About Section (Updated Layout) */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-muted-light);
  line-height: 1.7;
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.about-card {
  flex: 1 1 400px;
  background-color: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-light);
  padding: 30px;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
}

.about-card h3 {
  font-size: 1.6rem;
  color: var(--accent-grad-2);
  margin-bottom: 15px;
}

.about-card p,
.about-card ul {
  color: var(--text-muted-light);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

.about-card ul {
  padding-left: 20px;
  list-style: none;
}

.about-card ul li {
  margin-bottom: 10px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.team-card {
  background-color: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card strong {
  display: block;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.team-card span {
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    45deg,
    var(--accent-grad-1),
    var(--accent-grad-2)
  );
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.team-card:hover .team-social-overlay {
  height: 60px;
}

.team-social-overlay a {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.team-social-overlay a:hover {
  transform: scale(1.2);
}

/* Blog Section */
.blog-section {
  background-color: var(--bg-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.blog-card {
  background-color: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-light);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.blog-card-content p {
  color: var(--text-muted-light);
  margin-bottom: 20px;
}

.blog-card-content a {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-grad-1);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #1e1e1e, #333333);
  color: white;
  text-align: center;
}

.contact-section .section-title {
  color: white;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 15px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--accent-grad-1);
  transform: translateY(-5px);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  .burger div {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  nav.active {
    display: flex;
  }
  .theme-switch-wrapper {
    margin-top: 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }

  .timeline::after {
    left: 30px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }
  .timeline-container.left::after,
  .timeline-container.right::after {
    left: 18px;
  }
  .timeline-container.right {
    left: 0%;
  }
}


