/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: transform 0.3s ease-out, background 0.3s ease;
    background: transparent;
    transform: translateZ(0);
}

.main-nav.shrink {
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 18, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Updated Navigation Layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Logo Text Styling */
.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-white);
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
}

.nav-links {
    display: none;
        align-items: center;
    justify-content: center;
    margin-left: 40px;
    font-size: 22px;
    padding: .25em;
    cursor: pointer;
     gap: 2rem;
     letter-spacing: 0.05em;
}

.nav-links.visible {
    display: flex;
    animation: fadeInRight 0.4s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(10px);
}

/* Menu Button */
.menu-toggle {
    margin-left: auto;
    z-index: 1001;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.125rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: all var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-light);
    opacity: 0.8;
    font-size: 0.875rem;
}

.scroll-hint svg {
    width: 1.5rem;
    height: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Titles */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0.8;
}

/* Project Cards */
.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-info {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.project:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project:hover .project-image img {
    transform: scale(1.05);
}


.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
    mix-blend-mode: difference;
}

.cursor.active {
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(212, 175, 55, 0.9);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: var(--color-primary);
    opacity: 0.6;
}

/* Section Divider */

.section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
    opacity: 0.01;
}

.divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.2;
}


/* Custom Cursor Styles */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.custom-cursor__inner {
  position: absolute;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  transition: 
    transform 0.15s ease, 
    width 0.2s ease, 
    height 0.2s ease,
    background-color 0.2s ease;
  pointer-events: none;
  will-change: transform;
}

.custom-cursor__outer {
  position: absolute;
  border-radius: 50%;
  border: 1px solid white;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  pointer-events: none;
  will-change: transform;
}

/* Custom cursor states */
.custom-cursor--hover .custom-cursor__inner {
  width: 24px;
  height: 24px;
}

.custom-cursor--click .custom-cursor__inner {
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.8);
}

.custom-cursor--drag .custom-cursor__inner {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
}

/* Navbar hide/show transitions */
.main-nav.hide-navbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
    transition: transform 0.3s ease-out;
}

/* Category filter fixed state */
.category-filter.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(10, 10, 18, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-filter.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Add to components.css */
.dynamic-underline {
    display: inline-block;
    position: relative;
}

.dynamic-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-underline:hover::after {
    width: 100%;
}

button.loading span::after {
    content: '';
    margin-left: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
