:root {
  --bg-color: #131313;
  --bg-darker: #0a0a0a;
  --accent-color: #ffffff;
  --text-muted: #888888;
  --sidebar-width: 250px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background-color: var(--bg-color);
  color: var(--accent-color);
  font-family: "Source Code Pro", monospace;
  overflow-x: hidden;
}

.animated-bg .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  animation: float 10s infinite;
}

.animated-bg .circle:nth-child(2) {
  width: 60px;
  height: 60px;
  animation-duration: 12s;
  left: 30%;
}
.animated-bg .circle:nth-child(3) {
  width: 30px;
  height: 30px;
  animation-duration: 8s;
  left: 60%;
}
.animated-bg .circle:nth-child(4) {
  width: 50px;
  height: 50px;
  animation-duration: 14s;
  left: 80%;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  animation: pulse 2s infinite;
}

.loader-line {
  width: 0;
  height: 2px;
  background: white;
  margin-top: 10px;
  animation: lineGrow 1.5s forwards;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: var(--bg-darker);
  border-right: 1px solid #222;
  padding: 3rem 2rem;
  z-index: 1000;
}
.sidebar-bg-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 1px,
    transparent 1px
  );
  background-size: 10px 10px;
  animation: floatDots 10s linear infinite;
}

@keyframes floatDots {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: 0 -100%;
  }
}
.brand-logo {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.brand-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.nav-brand .brand-name {
  margin-top: 0.5rem;
  text-align: center;
}

.nav-menu li {
  margin-bottom: 1.5rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.nav-menu li a i {
  margin-right: 8px;
  color: #fff;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
  padding-left: 10px;
}

.nav-menu a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 10px;
}
.nav-footer .social-icons a {
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-footer .social-icons a:hover {
  color: #131313;
  background-color: #ffffff;
  transform: scale(1.1);
}

.main-content {
  min-height: 100vh;
}

.section-padding {
  padding: 100px 0;
}

.bg-darker {
  background-color: var(--bg-darker);
}

.hero-section {
  min-height: 100vh;
  padding: 100px 0;
}

.badge-top {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: #fff;
  background-color: #222;
  animation: fadeLoop 2s infinite;
}

@keyframes fadeLoop {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.text-outline {
  -webkit-text-stroke: 1px white;
  color: transparent;
}

.tagline {
  max-width: 500px;
  color: var(--text-muted);
}

.profile-frame {
  position: relative;
  display: inline-block;
}

.profile-frame::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid #333;
  z-index: -1;
}

.profile-img {
  width: 350px;
  height: 450px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}

.profile-img:hover {
  filter: grayscale(0%);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.section-header .scroll-controls {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}
.horizontal-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 30px;
  padding-bottom: 20px;
}

.horizontal-slider::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 350px;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #888;
  margin: 50px 0;
  opacity: 0.5;
}

.about-card,
.ref-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  height: 100%;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover,
.ref-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.modern-ref {
  display: flex;
  gap: 20px;
  border-radius: 15px;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modern-ref:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ref-quote-icon {
  font-size: 3rem;
  color: #ff7f50;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 5px;
}

.ref-content p {
  margin: 0 0 10px 0;
  color: #f0f0f0;
  line-height: 1.6;
  font-style: italic;
}

.ref-author {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 10px;
}

.ref-author strong {
  color: #fff;
}

.ref-author span {
  color: #aaa;
  font-size: 0.9rem;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .modern-ref {
    flex-direction: column;
    gap: 15px;
  }

  .ref-quote-icon {
    font-size: 2.5rem;
  }
}

.timeline-card {
  width: 40%;
}

.timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.timeline-mini .t-item {
  background: #1a1a1a;
  padding: 15px 20px;
  border: 1px solid #222;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-mini .t-item:hover {
  transform: translateY(-5px);
  border-color: #444;
}

.horizontal-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 30px;
  padding-bottom: 20px;
}

.horizontal-slider::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 350px;
}

.scroll-btn {
  background: transparent;
  border: 1px solid #333;
  color: white;
  width: 45px;
  margin: 10px;
  height: 45px;
  border-radius: 50%;
  margin-left: 10px;
  transition: var(--transition);
}

.scroll-btn:hover {
  background: white;
  color: black;
}

.modern-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.why-work-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.why-icon {
  font-size: 1.5rem;
  color: #ff7f50;
  flex-shrink: 0;
}

.why-text {
  margin: 0;
  color: #f0f0f0;
  line-height: 1.5;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

.service-card {
  padding: 40px;
  border: 1px solid #222;
  height: 100%;
  transition: var(--transition);
}

.service-card:hover {
  background: #1a1a1a;
}

.service-icon {
  margin-bottom: 25px;
}

.horizontal-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 10px;
}

.slider-item {
  min-width: 300px;
  flex-shrink: 0;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #111;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  color: #fff;
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.portfolio-card:hover img {
  transform: scale(1.15);
  filter: brightness(0.8);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.portfolio-overlay h3,
.portfolio-overlay p {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay h3,
.portfolio-card:hover .portfolio-overlay p {
  transform: translateY(0);
  opacity: 1;
}
.blog-card {
  padding: 30px;
  border-bottom: 1px solid #222;
  transition: var(--transition);
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 15px;
}

.blog-card:hover {
  background: #151515;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.read-more {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.slider-item {
  min-width: 280px;
  margin-right: 20px;
}

.form-control {
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  padding: 15px;
  border-radius: 0;
}

.form-control:focus {
  background: #222;
  border-color: #555;
  color: white;
  box-shadow: none;
}

.btn-primary {
  background: white;
  border: none;
  color: black;
  padding: 15px 30px;
  font-weight: 700;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: #ddd;
  color: black;
}

.btn-outline-light-2 {
  border-radius: 0;
  padding: 15px 30px;
}

.btn-outline-light-2 {
  border-color: var(--bg-color);
  color: var(--bg-color);
}

.btn-outline-light-2:hover {
  background-color: var(--bg-color);
  color: #ffffff;
}
.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transition: all 0.4s ease;
  z-index: 0;
}

.social-icon:hover::before {
  left: 0;
}

.social-icon:hover {
  color: #131313;

  transform: scale(1.05);
}

.social-icon span {
  position: relative;
  z-index: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 25px;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  border-bottom: 1px solid #222;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: #111;
  z-index: 1000;
  padding: 20px 0;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 15px 0;
}

.mobile-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  .mobile-nav,
  .mobile-menu {
    display: none;
  }
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 0;
}

.skill-tags span {
  display: inline-block;
  padding: 5px 12px;
  background: #222;
  margin: 0 5px 10px 0;
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .main-content {
    padding-top: 70px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .display-1 {
    font-size: 3.5rem;
  }
}
