/* Main stylesheet for portfolio website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import 'reset.css';

/* CSS Variables for RGB values */
:root {
  /* Gray with purple accents theme */
  --color-text-rgb: 245, 245, 250;
  --color-accent-rgb: 149, 128, 255;
  --color-background-rgb: 40, 42, 54;
  --cursor-size: 8px;
  --cursor-outline-size: 40px;
  --cursor-transition: 0.2s cubic-bezier(0.75, -0.27, 0.3, 1.33);
  
  /* Additional colors for components */
  --color-primary: #9580FF;
  --color-secondary: #BD93F9;
  --color-success: #50FA7B;
  --color-danger: #FF5555;
  --color-warning: #FFB86C;
  --color-info: #8BE9FD;
  
  /* Derived color variables */
  --text-color: rgb(var(--color-text-rgb));
  --accent-color: rgb(var(--color-accent-rgb));
  --bg-color: rgb(var(--color-background-rgb));
  
  /* Specific colors */
  --primary-color: var(--color-primary);
}

/* Prevent scrolling on home page only */
html, body {
  height: 100%;
  cursor: none; /* Hide the default cursor on desktop */
}

body.home-page {
  overflow: hidden; /* Only prevent scrolling on home page */
}

body:not(.home-page) {
  overflow-y: auto; /* Allow scrolling on other pages */
}

/* Ensure about page is scrollable */
body.about-page {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
}

html.about-page {
  overflow-y: auto !important;
  height: auto !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
}

/* Layout and container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}

/* Responsive container sizing */
@media (min-width: 992px) {
  .container {
    padding: 0 clamp(30px, 5vw, 60px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 clamp(15px, 3vw, 25px);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(25, 26, 33, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(21, 22, 30, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.logo-link:hover {
  color: var(--primary-color);
}

.cloud-logo {
  margin-right: 0.5rem;
}

.cloud-path {
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

.logo-link:hover .cloud-path {
  fill: var(--accent-color);
}

.logo-text {
  font-weight: 600;
  font-size: 1.2rem;
}

.logo-image {
  height: 40px;
  width: auto;
  margin-right: 0;
  transition: transform 0.3s ease;
  object-fit: contain;
  max-width: 120px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.nav-logo:hover .logo-image {
  transform: scale(1.05);
}

/* Menu */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(25, 26, 33, 0.98);
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.main-nav.active {
  opacity: 1;
  visibility: visible;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast), transform 0.3s ease;
  font-weight: 500;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  opacity: 0;
}

.main-nav.active .nav-link {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

.main-nav.active .nav-list li:nth-child(2) .nav-link {
  transition-delay: 0.3s;
}

.main-nav.active .nav-list li:nth-child(3) .nav-link {
  transition-delay: 0.4s;
}

.main-nav.active .nav-list li:nth-child(4) .nav-link {
  transition-delay: 0.5s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu toggle - Enhanced for better touch targets */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  cursor: none;
  z-index: 101;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  transition: all var(--transition-standard);
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition-standard);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.menu-toggle.active .hamburger span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Hero section */
.hero {
  height: 100vh; /* Changed from min-height to height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 0 20px;
  }
  
  .hero-content {
    padding-top: 60px;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 0 15px;
  }
  
  .hero-content {
    padding-top: 50px;
  }
}

.hero-content {
  padding-top: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-secondary);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: 0.3s;
}

.hero-headline.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-subheadline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.1s;
}

.hero-subheadline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  line-height: 1.4;
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.5s;
}

.hero-description.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.7s;
  flex-wrap: wrap;
}

/* Mobile CTA adjustments - Keep same layout as desktop */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  
  .btn {
    width: auto;
    min-width: 140px;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    gap: 12px;
    margin-top: 28px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    min-height: 44px;
    min-width: 120px;
  }
}

.hero-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: none;
  min-height: 44px;
  min-width: 120px;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: rgb(21, 22, 30);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(149, 128, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(149, 128, 255, 0.5);
  background-color: var(--color-secondary);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: rgba(149, 128, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* Projects section */
.projects {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  opacity: 0.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background-color: rgba(33, 34, 44, 0.7);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
  border: 1px solid rgba(68, 71, 90, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
}

.project-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.project-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-standard);
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-info {
  padding: var(--space-md);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.project-description {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(149, 128, 255, 0.15);
  color: var(--color-secondary);
  border-radius: 2px;
  border: 1px solid rgba(149, 128, 255, 0.3);
}

.view-all {
  text-align: center;
  margin-top: var(--space-xl);
}

.projects-header {
  padding: var(--space-xl) 0;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Prevent default cursor everywhere */
* {
  cursor: none !important;
}

/* Enhanced Custom cursor */
.custom-cursor {
  width: 4px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              background-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: difference;
  box-shadow: 0 0 8px var(--color-primary);
  will-change: transform, width, height, background-color, box-shadow;
}

.cursor-follower {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 15px rgba(149, 128, 255, 0.3);
  will-change: transform, width, height, border-color, box-shadow;
}

/* Cursor hover states */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.btn:hover ~ .custom-cursor,
.three-dot-menu:hover ~ .custom-cursor,
.nav-logo:hover ~ .custom-cursor {
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary);
  box-shadow: 0 0 12px var(--color-secondary);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower,
.btn:hover ~ .cursor-follower,
.three-dot-menu:hover ~ .cursor-follower,
.nav-logo:hover ~ .cursor-follower {
  width: 40px;
  height: 40px;
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.4);
}

/* Enhanced cursor click animation */
@keyframes cursorClick {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
    background-color: var(--color-primary);
  }
  30% { 
    transform: translate(-50%, -50%) scale(1.8); 
    opacity: 0.9; 
    background-color: var(--color-success);
  }
  60% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 1; 
    background-color: var(--color-success);
  }
  100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
    background-color: var(--color-primary);
  }
}

.custom-cursor.clicking {
  animation: cursorClick 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 20px var(--color-success);
  width: 6px;
  height: 6px;
}

@keyframes followerClick {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.7; 
    border-color: var(--color-primary);
    width: 30px;
    height: 30px;
  }
  30% { 
    transform: translate(-50%, -50%) scale(0.2); 
    opacity: 0.9; 
    border-color: var(--color-success);
    width: 4px;
    height: 4px;
  }
  50% { 
    transform: translate(-50%, -50%) scale(0.15); 
    opacity: 1; 
    border-color: var(--color-success);
    width: 3px;
    height: 3px;
  }
  70% { 
    transform: translate(-50%, -50%) scale(0.3); 
    opacity: 0.8; 
    border-color: var(--color-success);
    width: 5px;
    height: 5px;
  }
  100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.7; 
    border-color: var(--color-primary);
    width: 30px;
    height: 30px;
  }
}

.cursor-follower.clicking {
  animation: followerClick 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.8);
  transition: none; /* Disable normal transition during animation */
}

/* Ensure smooth return to normal state after click */
.cursor-follower:not(.clicking) {
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cursor selecting state */
.custom-cursor.selecting {
  background-color: var(--color-info);
  box-shadow: 0 0 15px var(--color-info);
}

.cursor-follower.selecting {
  border-color: var(--color-info);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
}

/* Media queries for better responsiveness */
@media (max-width: 992px) {
  html, body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 clamp(15px, 3vw, 30px);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    cursor: auto;
  }
  
  body:not(.home-page) {
    overflow-y: auto;
  }
  
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }
  
  * {
    cursor: auto !important;
  }
  
  .about-content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
}

/* Form element updates */
.form-input {
  background-color: rgba(33, 34, 44, 0.8);
  border: 1px solid rgba(68, 71, 90, 0.8);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(149, 128, 255, 0.3);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-secondary);
}

/* Main Navigation */
.main-navigation {
  padding: 2rem 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  z-index: 2;
  cursor: default; /* Prevent cursor change */
  opacity: 0;
  transform: translateX(-20px);
  transition-delay: 0.2s;
  pointer-events: auto !important; /* Ensure clicks are captured */
}

.nav-logo:hover {
  transform: translateY(-2px);
  color: var(--color-primary);
}

.nav-logo.visible {
  opacity: 1;
  transform: translateX(0);
}

.abstract-logo {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default; /* Prevent cursor change */
}

.logo-circle {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: absolute;
  animation: rotate 8s linear infinite;
}

.logo-line {
  width: 2px;
  height: 24px;
  background-color: var(--color-primary);
  position: absolute;
  transform-origin: center;
  animation: rotate 4s linear infinite reverse;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  cursor: default; /* Prevent cursor change */
}

.nav-logo:hover .logo-circle {
  border-color: var(--color-accent);
  animation-duration: 4s;
}

.nav-logo:hover .logo-line {
  background-color: var(--color-accent);
  animation-duration: 2s;
}

.nav-logo:hover .logo-dot {
  background-color: var(--color-accent);
  animation-duration: 1s;
}

.theme-toggle {
  display: none !important; /* Force hide the theme toggle button */
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.theme-toggle:hover {
  background-color: rgba(var(--color-accent-rgb), 0.1);
  transform: translateX(-50%) scale(1.1);
}

.theme-toggle:active {
  transform: translateX(-50%) scale(0.95);
}

.theme-toggle i {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

/* NEW FULLSCREEN NAVIGATION */
.fullscreen-nav-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease;
  transition-delay: 0.2s;
  border-radius: 8px;
}

.fullscreen-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.fullscreen-nav-toggle.visible {
  opacity: 1;
  transform: translateX(0);
}

.fullscreen-nav-toggle:hover .nav-toggle-line {
  background-color: var(--color-primary);
}

.nav-toggle-line {
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.nav-toggle-line:nth-child(1) {
  transform: translateY(-8px);
}

.nav-toggle-line:nth-child(3) {
  transform: translateY(8px);
}

.fullscreen-nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.fullscreen-nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.fullscreen-nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 27, 38, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.fullscreen-nav.active {
  opacity: 1;
  visibility: visible;
}

.nav-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

.nav-container {
  position: relative;
  width: 100%;
  padding: 0 10%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.nav-items {
  list-style: none;
  margin-top: 10vh;
}

.nav-item {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fullscreen-nav.active .nav-item {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-nav.active .nav-item:nth-child(1) {
  transition-delay: 0.3s;
}

.fullscreen-nav.active .nav-item:nth-child(2) {
  transition-delay: 0.4s;
}

.fullscreen-nav.active .nav-item:nth-child(3) {
  transition-delay: 0.5s;
}

.fullscreen-nav.active .nav-item:nth-child(4) {
  transition-delay: 0.6s;
}

.nav-item-number {
  display: block;
  font-size: 0.9rem;
  color: rgba(var(--color-text-rgb), 0.3);
  margin-bottom: 5px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
}

.nav-item-link {
  font-size: 3.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  display: inline-block;
  z-index: 2;
  transition: color 0.3s ease, transform 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  mix-blend-mode: difference;
}

.nav-item-link:hover {
  color: rgba(var(--color-text-rgb), 1);
  transform: translateX(10px);
}

.nav-item-link.active {
  color: var(--color-primary);
}

.nav-item-background {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 0;
  height: 120%;
  background: var(--color-primary);
  opacity: 0;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  z-index: 1;
  border-radius: 2px;
  filter: blur(5px);
}

.nav-item-link:hover ~ .nav-item-background {
  width: 140%;
  opacity: 0.2;
}

.nav-social {
  position: absolute;
  bottom: 5vh;
  display: flex;
  gap: 20px;
}

.nav-social a {
  color: rgba(var(--color-text-rgb), 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: 
    color 0.3s ease,
    transform 0.6s ease,
    opacity 0.6s ease;
  letter-spacing: 1px;
}

.fullscreen-nav.active .nav-social a {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-nav.active .nav-social a:nth-child(1) {
  transition-delay: 0.7s;
}

.fullscreen-nav.active .nav-social a:nth-child(2) {
  transition-delay: 0.8s;
}

.nav-social a:hover {
  color: rgba(var(--color-text-rgb), 1);
  transform: translateY(-5px);
}

.nav-social a i {
  margin-right: 5px;
}

.nav-blob {
  position: absolute;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15), transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(50px);
  z-index: 0;
  animation: float-slow 10s infinite alternate ease-in-out;
  transform-origin: center;
}

.nav-blob:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15), transparent 70%);
}

.nav-blob:nth-child(2) {
  bottom: 10%;
  right: 20%;
  animation-delay: 5s;
  background: radial-gradient(circle, rgba(189, 147, 249, 0.1), transparent 70%);
  width: 40vw;
  height: 40vh;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 2%) scale(1.05); }
  100% { transform: translate(-2%, -2%) scale(0.95); }
}

@media (max-width: 992px) {
  .nav-item-link {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }
  
  .nav-item-number {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }
  
  .nav-social {
    bottom: 3vh;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .fullscreen-nav-toggle {
    width: 44px;
    height: 44px;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .nav-item-link {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  .nav-item-number {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
  
  .nav-social {
    bottom: 2vh;
  }
  
  .nav-social a {
    font-size: 0.9rem;
    padding: 8px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-social a i {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .fullscreen-nav-toggle {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }
  
  .nav-item-link {
    font-size: clamp(1.8rem, 5vw, 2rem);
    letter-spacing: 0.5px;
  }
  
  .nav-item-number {
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }
  
  .nav-social {
    bottom: 1.5vh;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem;
  }
  
  .nav-social a {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    min-height: 40px;
  }
  
  .nav-container {
    padding: 1rem;
  }
}

/* Reset animations for nav elements */
.nav-logo, .fullscreen-nav-toggle {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: all !important;
}

/* Animated Background */
#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
}

/* Performance Toggle Button */
#performance-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 1000;
}

#performance-toggle:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

#performance-toggle:active {
  transform: translateY(0);
}

/* Add styles for the coming soon message */
.coming-soon-message {
  margin-top: 80px;
  margin-bottom: 100px;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  background-color: var(--color-card-bg, rgba(255, 255, 255, 0.05));
}

.coming-soon-message p {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-muted, #777);
  font-style: italic;
}

/* Dark theme adjustments */
.dark-theme .coming-soon-message {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
}

.dark-theme .coming-soon-message p {
  color: rgba(255, 255, 255, 0.6);
}

/* About Page Modern Split Layout */
.about-modern {
  margin-top: 2rem;
  min-height: 80vh;
}

.about-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-content-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content-left {
  flex: 1;
  padding: 4rem 3rem;
  background-color: #1a1a1a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content-right {
  flex: 1;
  position: relative;
  background-color: #f5f5f5;
  overflow: hidden;
}

.about-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.about-text-modern {
  max-width: 90%;
}

.about-intro {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: var(--accent-color);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.cv-download-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-download-link i {
  margin-right: 0.5rem;
}

.cv-download-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-image-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic {
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(149,128,255,0.10);
  object-fit: cover;
  width: 100%;
  max-width: 340px;
  max-height: 440px;
  margin: 0 auto;
  display: block;
  background: #23243a;
}
@media (max-width: 576px) {
  .profile-pic {
    max-width: 90vw;
    max-height: 320px;
  }
}

/* Dark mode styles for about page */
.dark-theme .about-content-right {
  background-color: #252525;
}

.dark-theme .about-content-left {
  background-color: #121212;
}

/* Media queries for about page */
@media (max-width: 992px) {
  .about-content-wrapper {
    flex-direction: column;
  }
  
  .about-content-left {
    padding: 3rem 2rem;
  }
  
  .about-content-right {
    min-height: 400px;
  }
  
  .about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .about-text-modern {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .about-content-left {
    padding: 2rem 1.5rem;
  }
  
  .about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .about-intro {
    font-size: 1.2rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
}

/* Unique Logo Implementation */
.logo-watermark {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0.07;
  width: 200px;
  height: 200px;
  background-image: url('assets/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
  animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.07; }
  50% { transform: scale(1.1); opacity: 0.05; }
  100% { transform: scale(1); opacity: 0.07; }
}

/* Enhanced Logo Loader with Loading Bar */
.logo-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.logo-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-loader-icon {
  width: 120px;
  height: 120px;
  background-image: url('assets/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 40px;
  position: relative;
  animation: float 3s infinite ease-in-out;
}

.logo-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  text-align: center;
}

.loading-bar-container {
  width: 300px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
  transition: width 0.2s ease-out;
  position: relative;
  animation: glow 1.5s infinite alternate;
}

.loading-fact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 80%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-style: italic;
  line-height: 1.6;
}

.loading-fact.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-progress {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  letter-spacing: 1px;
  font-family: monospace;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(149, 128, 255, 0.5); }
  100% { box-shadow: 0 0 15px rgba(189, 147, 249, 0.8); }
}

/* Smart Logo Navigation Animation */
.nav-logo {
  position: relative;
  overflow: hidden;
}

.nav-logo::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: transform 0.3s ease;
  transform: translateY(0);
}

.nav-logo:hover::after {
  transform: translateY(-10px);
}

/* Logo appears in selection */
::selection {
  background: rgba(var(--color-accent-rgb), 0.3);
  color: var(--text-color);
  background-image: url('assets/images/logo.png');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: right;
  background-blend-mode: overlay;
}

/* Page Content Reveal Animations */
.reveal-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-animation.left {
  transform: translateX(-30px);
}

.reveal-animation.right {
  transform: translateX(30px);
}

.reveal-animation.visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Special animations for hero elements */
.hero-headline {
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: 0.3s;
}

.hero-headline.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-subheadline {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.1s;
}

.hero-subheadline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.5s;
}

.hero-description.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.7s;
}

.hero-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo, .fullscreen-nav-toggle {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nav-logo {
  transform: translateX(-20px);
  transition-delay: 0.2s;
}

.fullscreen-nav-toggle {
  transform: translateX(20px);
  transition-delay: 0.2s;
}

.nav-logo.visible, .fullscreen-nav-toggle.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Additional responsive improvements */
@media (max-height: 600px) and (max-width: 992px) {
  .nav-items {
    margin-top: 5vh;
  }
  
  .nav-item {
    margin-bottom: 10px;
  }
  
  .nav-item-link {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .nav-social {
    bottom: 1vh;
  }
}

/* Better support for ultra-wide screens */
@media (min-width: 1921px) {
  .container {
    max-width: 1600px;
  }
  
  .modern-about {
    max-width: 1400px;
  }
}

/* Better support for devices with notches/safe areas */
@supports (padding: max(0px)) {
  .container, main, header, footer, .fullscreen-nav {
    padding-left: max(clamp(20px, 3vw, 40px), env(safe-area-inset-left));
    padding-right: max(clamp(20px, 3vw, 40px), env(safe-area-inset-right));
  }
  
  .nav-logo {
    margin-left: max(0px, env(safe-area-inset-left));
  }
  
  .fullscreen-nav-toggle {
    margin-right: max(0px, env(safe-area-inset-right));
  }
}

/* Enhanced mobile performance and usability */
@media (max-width: 768px) {
  /* Improve scrolling performance */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better text selection */
  ::selection {
    background-color: rgba(149, 128, 255, 0.3);
    color: var(--text-color);
  }
  
  /* Improve tap highlights */
  a, button, .btn, .nav-item-link, .cv-link, .contact-link, .github-link {
    -webkit-tap-highlight-color: rgba(149, 128, 255, 0.2);
    -webkit-touch-callout: none;
  }
  
  /* Better focus states for keyboard navigation */
  a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
  }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
  /* Better hover states for desktop */
  .btn:hover, .cv-link:hover, .contact-link:hover, .github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Improved navigation hover effects */
  .nav-item-link:hover {
    transform: translateX(8px);
  }
  
  /* Better image hover effects */
  .about-image:hover, .project-image:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Skip to content for keyboard users */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  button, 
  .btn,
  .nav-item-link,
  .cv-link,
  .contact-link,
  .github-link {
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
  }
  
  .nav-social a {
    padding: 10px 14px;
    min-height: 48px;
  }
  
  /* Ensure text is readable on mobile */
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  
  .hero-subheadline {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  /* Extra small mobile adjustments */
  .hero-headline {
    font-size: clamp(2rem, 12vw, 3rem);
    letter-spacing: -0.01em;
    line-height: 1.05;
  }
  
  .hero-subheadline {
    font-size: clamp(1rem, 5vw, 1.3rem);
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 4vw, 1rem);
    padding: 0 15px;
    line-height: 1.5;
  }
  
  /* Ensure all interactive elements are touch-friendly */
  a, button, .btn, .nav-item-link, .cv-link, .contact-link, .github-link {
    min-height: 48px;
    padding: 12px 16px;
  }
  
  /* Improve container padding for very small screens */
  .container {
    padding: 0 12px;
  }
}

/* Prevent users from being able to select placeholder image */
.about-image {
  user-select: none;
  -webkit-user-select: none;
}

/* Improve image loading behavior */
img {
  transition: opacity 0.3s ease;
}

img.loading {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Mobile adjustments - restore scrolling for other pages */
body:not(.home-page) {
  overflow-y: auto;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    cursor: auto;
  }
  
  body:not(.home-page) {
    overflow-y: auto;
  }
  
  /* Ensure proper text wrapping and readability */
  * {
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
  
  /* Improve text contrast and readability */
  .hero-description,
  .about-text,
  .contact-intro,
  .project-coming-soon p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  /* Ensure proper spacing for mobile content */
  .container {
    padding: 0 clamp(15px, 3vw, 25px);
  }
  
  /* Improve loading performance on mobile */
  .logo-loader {
    will-change: opacity;
  }
  
  /* Better touch feedback */
  .btn:active, .cv-link:active, .contact-link:active, .github-link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

@media (max-width: 576px) {
  /* Extra small screen optimizations */
  .container {
    padding: 0 15px;
  }
  
  /* Ensure minimum font sizes for readability */
  body {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Improve button and link visibility */
  .btn, .cv-link, .contact-link, .github-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .btn:hover, .cv-link:hover, .contact-link:hover, .github-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
} 

.cv-link-bottom-center {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  margin-top: auto;
  margin-bottom: 40px;
}
@media (max-width: 992px) {
  .cv-link-bottom-center {
    margin-top: 32px;
    margin-bottom: 24px;
    align-items: center;
    height: auto;
  }
} 

/* Remove pointer cursor for all interactive elements on desktop */
a, button, .btn, .fullscreen-nav-toggle, .nav-logo, .cv-link, .nav-item-link, .menu-toggle, .hamburger {
  cursor: none !important;
}

@media (max-width: 768px) {
  a, button, .btn, .fullscreen-nav-toggle, .nav-logo, .cv-link, .nav-item-link, .menu-toggle, .hamburger {
    cursor: pointer !important;
  }
} 