/* Global Styles & Variables */
:root {
  --color-bg-dark: #181818;
  --color-bg-card: #252525;
  --color-text-white: #ffffff;
  --color-text-gray: #909090;
  --color-blue-accent: #0088ff;
  --color-blue-accent-rgb: 0, 136, 255;
  --color-border: rgba(144, 144, 144, 0.25);
  --color-border-hover: rgba(0, 136, 255, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  cursor: none;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-card);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue-accent);
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--color-blue-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(0, 136, 255, 0.4);
  background-color: rgba(0, 136, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translate(-50%, -50%);
}

/* Hero Section Styles */
.hero-title .line {
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(100%);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Custom Styles */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid var(--color-border);
  transition: all 0.5s ease;
}

.timeline-item:hover {
  border-left-color: var(--color-blue-accent);
}

.timeline-dot {
  position: absolute;
  left: -14px;
  top: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #181818;
  border: 2px solid rgba(144, 144, 144, 0.2);
  color: #909090;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.timeline-item:hover .timeline-dot {
  background: var(--color-blue-accent);
  border-color: var(--color-blue-accent);
  color: #ffffff;
  box-shadow: 0 0 10px var(--color-blue-accent);
}

/* Cards & Hover Glows */
.skill-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-blue-accent);
  box-shadow: 0 12px 30px rgba(0, 136, 255, 0.15);
  background: rgba(37, 37, 37, 0.8);
}

.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-blue-accent);
  box-shadow: 0 15px 35px rgba(0, 136, 255, 0.2);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 136, 255, 0.08),
    transparent
  );
  transition: left 0.8s ease;
}

.project-card:hover::before {
  left: 100%;
}

/* Button & Link Effects */
.btn-accent {
  background-color: var(--color-blue-accent);
  color: var(--color-text-white);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.5);
  transform: scale(1.05);
}

.glow-text-hover:hover {
  color: var(--color-blue-accent);
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

/* Image Gallery Carousel custom transitions */
.gallery-slide {
  transition: opacity 0.5s ease-in-out;
}

/* Active links in navbar */
.nav-link {
  color: var(--color-text-gray);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-blue-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}


body.loaded {
  opacity: 1;
}

/* Hexagon background pattern with fade */
.hexagon-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='138.56' viewBox='0 0 80 138.56'%3E%3Cpath d='M40 0 L80 23.09 L80 69.28 L40 92.38 L0 69.28 L0 23.09 Z M40 138.56 L80 115.47 L80 69.28 L40 92.38 L0 69.28 L0 115.47 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1.2'/%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.8;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}
