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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

/* Color Palette Variables */
:root {
  --black: #010101;
  --light-gray: #E5E5DD;
  --white: #ffffff;
  
  --bg: var(--black);
  --text: var(--light-gray);
  --primary: var(--light-gray);
  --secondary: #0f0f0f;
  --accent: var(--light-gray);
  --card-bg: #111111;
  --shadow: rgba(0, 0, 0, 0.2);
}

/* Dark mode removed */

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(1, 1, 1, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

/* Dark mode removed */

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 80%;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(229, 229, 221, 0.1);
  transform: translateY(-2px);
}

/* Theme toggle removed */

/* Sections */
.section {
  padding: 6rem 5%;
  position: relative;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-size: 2.5rem;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--card-bg));
  padding: 8rem 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23E5E5DD" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  text-align: left;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Photo Styles */
.hero-photo {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.hero p {
  margin: 1.5rem 0;
  font-size: 1.2rem;
  color: var(--text);
}

.hero-buttons {
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  text-decoration: none;
  border-radius: 50px;
  margin: 0 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 229, 221, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 229, 221, 0.4);
}

.btn.secondary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skills-grid div {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.skills-grid div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skills-grid div:hover::before {
  transform: scaleX(1);
}

.skills-grid div:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--primary);
}

.skills-grid h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover::before {
  opacity: 0.1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow);
  border-color: var(--primary);
}

.card > * {
  position: relative;
  z-index: 2;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--secondary);
}

.tech-stack {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(229, 229, 221, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.click-hint {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.card:hover .click-hint {
  opacity: 1;
  transform: translateX(5px);
}

/* Graphic Design Projects */
.graphic-design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

/* Enhanced Design Card Styles */
/* Enhanced Design Card Animations */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes imageGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(229, 229, 221, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(229, 229, 221, 0.2);
  }
}

.design-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  height: fit-content;
  transform: translateY(0);
  animation: cardFloat 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

.design-card:nth-child(2) {
  animation-delay: 0.5s;
}

.design-card:nth-child(3) {
  animation-delay: 1s;
}

.design-card:nth-child(4) {
  animation-delay: 1.5s;
}

.design-card:nth-child(5) {
  animation-delay: 2s;
}

.design-card:nth-child(6) {
  animation-delay: 2.5s;
}

.design-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.design-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 3;
}

.design-card:hover::before {
  opacity: 0.08;
}

.design-card:hover::after {
  transform: scaleX(1);
}

.design-card:hover {
  animation: none;
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px var(--shadow);
  border-color: var(--primary);
}

.design-card > * {
  position: relative;
  z-index: 2;
}

.design-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
  background: var(--secondary);
  animation: imageGlow 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-card:hover .design-image {
  animation: none;
}

.design-image img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
  min-width: 100%;
  min-height: 100%;
  flex-shrink: 0;
}

.design-card:hover .design-image img {
  transform: scale(1.15);
  filter: brightness(1.05);
}

/* Ensure square aspect ratio on all screen sizes */
@media (max-width: 768px) {
  .design-image {
    height: 250px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .design-image {
    height: 200px;
    aspect-ratio: 1 / 1;
  }
}

.design-content {
  padding: 1.8rem;
  background: var(--card-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.design-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.design-card:hover .design-content h3 {
  color: var(--accent);
}

.design-content p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  flex: 1;
}

.design-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--secondary);
}

.design-category {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  background: rgba(229, 229, 221, 0.12);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(229, 229, 221, 0.2);
  transition: all 0.3s ease;
}

.design-card:hover .design-category {
  background: rgba(229, 229, 221, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.click-hint {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.click-hint::after {
  content: '→';
  transition: transform 0.3s ease;
}

.design-card:hover .click-hint {
  opacity: 1;
  transform: translateX(5px);
}

.design-card:hover .click-hint::after {
  transform: translateX(3px);
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.3s ease-out;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary);
}

/* Enhanced Modal Image and Video Styles */
.modal-body img,
.modal-body video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 1rem 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.modal-body img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Video-specific styles - no hover effects */
.modal-body video {
  background: #000;
  cursor: pointer;
  /* Remove hover transform to prevent darkening */
}

.modal-body video::-webkit-media-controls {
  border-radius: 15px;
}

.modal-body video::-webkit-media-controls-panel {
  background: rgba(0,0,0,0.8);
  border-radius: 15px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary);
  transform: scale(1.1);
  background: rgba(229, 229, 221, 0.1);
}

.modal-title {
  color: var(--primary);
  font-size: 2rem;
  margin: 0;
}

.modal-body {
  color: var(--text);
  line-height: 1.8;
}

.modal-body h4 {
  color: var(--accent);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.3rem;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body .project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 15px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 3rem;
  opacity: 0.8;
}

.modal-body .project-image:hover {
  transform: scale(1.05);
  opacity: 1;
}

.modal-body .project-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-body .project-links a {
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: var(--black);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 229, 221, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body .project-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 229, 221, 0.4);
  background: var(--accent);
}

.modal-body .project-links a::before {
  content: '🔗';
  font-size: 1.1rem;
}

.modal-body h4 {
  color: var(--accent);
  margin: 1.5rem 0 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 0.5rem;
}

.modal-body li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* Timeline */
.timeline {
  border-left: 4px solid var(--primary);
  padding-left: 2rem;
  margin-top: 3rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--card-bg);
}

.timeline-item span {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  color: var(--text);
  font-size: 1.3rem;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cert-grid div {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cert-grid div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-grid div:hover::before {
  opacity: 0.1;
}

.cert-grid div:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 3rem auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.5rem;
  border: 2px solid var(--secondary);
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 229, 221, 0.1);
  transform: translateY(-2px);
}

.contact-form button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 229, 221, 0.3);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 229, 221, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--secondary);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

footer p {
  color: var(--text);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-left {
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-photo {
    width: 200px;
    height: 200px;
  }
  
  .section {
    padding: 4rem 5%;
  }
  
  .projects-grid,
  .skills-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .graphic-design-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .design-card {
    margin: 0 0.5rem;
  }
  
  .design-image {
    height: 250px;
  }
  
  .design-content {
    padding: 1.5rem;
  }
  
  .design-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .btn {
    margin: 0.5rem;
    padding: 0.8rem 1.5rem;
  }
  
  .modal-content {
    padding: 2rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-photo {
    width: 150px;
    height: 150px;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .card,
  .skills-grid div,
  .cert-grid div {
    padding: 1.5rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
}

/* Smooth scrolling improvements */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.nav-links a:focus,
.modal-close:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enhanced card interactions */
.card:active {
  transform: scale(0.98);
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection styling */
::selection {
  background: var(--primary);
  color: var(--black);
}

::-moz-selection {
  background: var(--primary);
  color: var(--black);
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s ease;
}
