/* =========================================
   GLOBAL VARIABLES
   ========================================= */
:root {
  --bg-dark: #000000;
  --bg-dark-accent: #080808;
  --bg-light: #ffffff;
  --text-light: #f5f5f5;
  --text-light-muted: #aaaaaa;
  --text-dark: #1a1a1a;
  --primary: #00ffff;
  --primary-glow: rgba(0, 255, 255, 0.3);
  --primary-dark: #00b3b3;
  --secondary: #ff3366;
  --accent: #ffaa00;
  --font-headline: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-medium: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --easing-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --easing-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
  --easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --z-navigation: 1000;
  --z-overlay: 500;
  --z-modal: 2000;
  --z-loader: 3000;
  --shadow-subtle: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 6px 18px rgba(0,0,0,0.15);
  --shadow-strong: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Cross-browser compatibility for hiding scrollbars */
/* Method 1: For Webkit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Method 2: General styling for all browsers */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* IE and Edge */
  -ms-overflow-style: none;
  /* Modern way to handle scrollbars - will be ignored by unsupported browsers */
  /* @supports selector can be used for conditional styling if needed */
}

/* Ensure content is scrollable but scrollbar is hidden visually */
body {
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: opacity 0.5s ease;
}

body.loading {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-glow);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

/* =========================================
   UTILITIES
   ========================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  border: none;
  text-transform: uppercase;
  font-family: var(--font-headline);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  position: relative;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 1s;
}

.btn-primary:hover:before {
  transform: translateX(100%);
}

.btn-primary:hover {
  background-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

/* =========================================
   NAVIGATION
   ========================================= */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navigation);
  padding: 1.5rem 2rem;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-nav.scrolled {
  background-color: rgba(5, 5, 5, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-light);
  letter-spacing: -0.02em;
  position: relative;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-logo:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.nav-logo:hover:after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 3.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--primary);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%),
              linear-gradient(145deg, rgba(5, 5, 5, 1) 0%, rgba(0, 0, 0, 1) 100%);
  opacity: 1;
  z-index: 1;
}

.hero-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
  opacity: 0.4;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
}

.headline {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.headline-wide {
  font-family: var(--font-headline);
  letter-spacing: -0.01em;
  font-weight: 800;
}

.headline .line {
  display: block;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0.5rem;
}

.subheadline {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  color: var(--text-light-muted);
  margin-bottom: 4rem;
  letter-spacing: 0;
  font-weight: 300;
  opacity: 0;
}

.hero-cta {
  margin-top: 2.5rem;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator:before {
  content: "";
  position: absolute;
  left: -3.5rem;
  width: 3rem;
  height: 1px;
  background-color: var(--primary);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.scroll-indicator:after {
  content: "";
  position: absolute;
  right: -3.5rem;
  width: 3rem;
  height: 1px;
  background-color: var(--primary);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 60px;
  position: relative;
  margin: 0 auto 0.5rem auto;
}

.wheel {
  width: 3px;
  height: 6px;
  background: var(--primary);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  animation: mouse-wheel 1.5s ease-in-out infinite;
}

@keyframes mouse-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-section {
  position: relative;
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-dark-accent);
  overflow: hidden;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.section-title .line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateY(60px) scale(0.95);
  opacity: 0;
  display: block;
  text-decoration: none;
  color: var(--text-light);
}

.card-content {
  position: relative;
  height: 100%;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, #131313, #0a0a0a);
  border-radius: var(--radius-lg);
  z-index: 1;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-medium);
}

.project-card:hover .card-content {
  transform: translateY(-8px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 255, 0.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(0, 255, 255, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--text-light), var(--text-light-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all var(--transition-medium);
}

.project-card:hover .project-title {
  background: linear-gradient(to right, var(--primary), var(--text-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.project-description {
  color: var(--text-light-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--text-light-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}

.project-card:hover .project-tags span {
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--primary);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-md);
  align-items: center;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.8);
}

.avatar {
  width: 100%;
  height: 100%;
  background-image: url('./images/profilePic2.jpeg');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
  transition: box-shadow var(--transition-medium);
  filter: grayscale(100%);
}

.avatar-outline {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid var(--primary-dark);
  border-radius: 50%;
  opacity: 0.3;
  transition: all var(--transition-medium);
}

.avatar-container:hover .avatar {
  box-shadow: 0 0 40px var(--primary-glow);
}

.avatar-container:hover .avatar-outline {
  transform: scale(1.1);
  opacity: 0.5;
  border-color: var(--primary);
}

.about-content h2 {
  margin-bottom: 2rem;
  overflow: hidden;
}

.about-content h2 .line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-light-muted);
  max-width: 650px;
  transform: translateY(30px);
  opacity: 0;
  line-height: 1.7;
}

.about-content p:first-of-type {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
}

.about-content p:nth-of-type(3) {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  background: rgba(0, 255, 255, 0.05);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.skill-tag {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.5), rgba(10, 10, 10, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
}

.skill-tag:hover {
  background-color: rgba(0, 255, 255, 0.1);
  border-color: var(--primary-glow);
  color: var(--primary);
  transform: translateY(-3px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(180deg, var(--bg-dark-accent), var(--bg-dark));
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 255, 0.1),
    transparent);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light-muted);
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

.social-link .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
  fill: currentColor;
}

.social-link span {
  font-size: 0.875rem;
  font-weight: 500;
}

.copyright {
  text-align: center;
  color: var(--text-light-muted);
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 3rem;
  opacity: 0;
}

/* =========================================
   CURSOR
   ========================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-overlay);
  pointer-events: none;
  visibility: hidden;
}

.cursor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-outline {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

/* For interactive elements */
a:hover ~ .custom-cursor .cursor-outline,
button:hover ~ .custom-cursor .cursor-outline {
  width: 60px;
  height: 60px;
  border: 1px solid var(--primary);
}

/* =========================================
   LOADER
   ========================================= */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  position: relative;
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary);
  transition: width 0.5s ease;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .hero-section {
    min-height: 600px;
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 1.5rem;
  }
}

/* For desktop screens */
@media (min-width: 1025px) {
  .custom-cursor {
    visibility: visible;
  }
  
  body {
    cursor: none;
  }
  
  a, button, .project-card {
    cursor: none;
  }
}

/* FOOTER STYLES */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 2rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact, .footer-socials {
  flex: 1 1 300px;
}

.footer-contact h3,
.footer-socials h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-contact input,
.footer-contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.footer-contact textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-contact button {
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-contact button:hover {
  background-color: #ccc;
}

.footer-socials ul {
  list-style: none;
  padding: 0;
}

.footer-socials ul li {
  margin-bottom: 0.5rem;
}

.footer-socials ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials ul li a:hover {
  color: #aaa;
}

.footer-disclaimer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}
