/* General Reset */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --light-bg: #f8fafc;
  --text-light: #e2e8f0;
  --text-dark: #1e293b;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body { 
  font-family: 'Inter', 'Inter-fallback', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--light-bg);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* Focus indicators for accessibility */
*:focus {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* Font Awesome icon placeholder to prevent CLS */
i.fas, i.fab {
  display: inline-block;
  min-width: 1em;
  text-align: center;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* Fixed height to prevent CLS */
  height: 80px;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo i, .logo svg {
  color: #667eea;
  -webkit-text-fill-color: #667eea;
  /* Only animate on larger screens */
}

/* Disable heavy animations on mobile */
@media (min-width: 769px) {
  .logo i, .logo svg {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% { 
    transform: translateY(-30px) rotate(0deg);
  }
  75% {
    transform: translateY(-20px) rotate(-5deg);
  }
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0, 0) skew(0deg);
    opacity: 0.15;
  }
  20% {
    transform: translate(-2px, 2px) skew(1deg);
    opacity: 0.2;
  }
  40% {
    transform: translate(2px, -2px) skew(-1deg);
    opacity: 0.15;
  }
  60% {
    transform: translate(-2px, -2px) skew(1deg);
    opacity: 0.25;
  }
  80% {
    transform: translate(2px, 2px) skew(-1deg);
    opacity: 0.15;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), inset 0 0 20px rgba(102, 126, 234, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5), inset 0 0 30px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #667eea;
  transform: translateY(-2px);
}

.nav-links .cv-link {
  background: var(--gradient-1);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  color: white;
}

.nav-links .cv-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #0f172a);
  background-size: 400% 400%;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Simplified animation with will-change for better performance */
  will-change: background-position;
}

/* Simplified gradient animation - only on non-mobile devices */
@media (min-width: 769px) {
  .hero {
    animation: gradientShift 15s ease infinite;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  /* Remove animation on mobile for better performance */
}

/* Only animate on larger screens */
@media (min-width: 769px) {
  .hero::before {
    animation: rotate 20s linear infinite;
    will-change: transform;
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
  /* Use opacity-only animation to prevent CLS */
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  will-change: opacity;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.5);
  border-radius: 50px;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.2s forwards;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.4s forwards;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 5rem;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.8s forwards;
  max-width: 700px;
  margin: 0 auto;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.floating-shape {
  position: absolute;
  opacity: 0.15;
  backdrop-filter: blur(2px);
}

.shape-1 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 10%;
  /* Disable on mobile for better performance */
}

/* Only animate on larger screens */
@media (min-width: 769px) {
  .shape-1 {
    animation: glitch 8s ease-in-out infinite, float 10s ease-in-out infinite;
    animation-delay: 0s;
    will-change: transform;
  }
}

.shape-1::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: -10px;
  left: -10px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(240, 147, 251, 0.12), rgba(245, 87, 108, 0.12));
  border: 2px solid rgba(240, 147, 251, 0.25);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: 20%;
  right: 15%;
}

/* Only animate on larger screens */
@media (min-width: 769px) {
  .shape-2 {
    animation: pulse-glow 6s ease-in-out infinite, float 12s ease-in-out infinite;
    animation-delay: 2s;
    will-change: transform;
  }
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
  border: 2px solid rgba(79, 172, 254, 0.3);
  border-radius: 20px;
  top: 50%;
  right: 10%;
  transform: rotate(45deg);
}

/* Only animate on larger screens */
@media (min-width: 769px) {
  .shape-3 {
    animation: glitch 10s ease-in-out infinite;
    animation-delay: 4s;
    will-change: transform;
  }
}

.shape-3::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(79, 172, 254, 0.4);
  border-radius: 15px;
  top: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

/* Sections */
.section {
  padding: 6rem 5%;
  text-align: center;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  /* Changed to fade-in only to prevent CLS */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: rotateY(360deg);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 1rem;
}

/* Projects Section */
.projects-section {
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  min-height: 200px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-image {
  background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* Project Image Container with Overlay */
.project-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  min-height: 200px;
  border-radius: 20px 20px 0 0;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-buttons {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  align-items: center;
}

.overlay-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}

.overlay-btn.live-demo-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  min-width: 180px;
  justify-content: center;
}

.overlay-btn.live-demo-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.overlay-btn.source-code-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid #fff;
  min-width: 180px;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.overlay-btn.source-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.overlay-btn i {
  font-size: 1.3rem;
}

.overlay-btn span {
  font-size: 1rem;
}

.project-info {
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-weight: 600;
}

.project-info p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.4rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Project Links */
.project-links {
  display: none;
}

.link-btn {
  display: none;
}

/* Contact Form */
.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.info-item p {
  color: #64748b;
  font-size: 1rem;
}

.info-item a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #667eea;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
}

.form-group label i {
  color: #667eea;
  margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form validation states */
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.success-message {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* CV Section */
.cv-section {
  background: white;
}

.cv-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cv-form {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.upload-area {
  border: 3px dashed #cbd5e1;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
  position: relative;
  margin-bottom: 2rem;
}

.upload-area:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.upload-area i {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 1rem;
  display: block;
}

.upload-area h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.upload-area p {
  color: #64748b;
  font-size: 1rem;
}

.upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-area.drag-over {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transform: scale(1.02);
}

/* Fade-in animation for sections - opacity only to prevent CLS */
.fade-in {
  animation: fadeIn 0.8s ease-out both;
}

/* Navbar scrolled state */
.navbar.scrolled {
  padding: 0.8rem 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer & Social Media */
footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
  padding: 3rem 5% 2rem;
}

.social-media {
  margin-bottom: 2rem;
}

.social-media h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.social-icons a:hover::before {
  transform: translateY(0);
}

.social-icons a:hover {
  color: white;
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  border-color: transparent;
}

footer > p {
  color: #94a3b8;
  font-size: 0.95rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */

/* Large Desktops (1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .gradient-text {
    font-size: 5.5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  .cards,
  .projects-grid {
    max-width: 1400px;
  }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .gradient-text {
    font-size: 5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Tablets Landscape / Small Desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar {
    padding: 1rem 4%;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gradient-text {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section {
    padding: 5rem 4%;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    gap: 2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}

/* Tablets Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar {
    padding: 1rem 3%;
  }
  
  .logo {
    font-size: 1.6rem;
  }
  
  .nav-links {
    gap: 1.2rem;
    font-size: 0.95rem;
  }
  
  .nav-links a {
    padding: 0.4rem 0;
  }
  
  .nav-links .cv-link {
    padding: 0.5rem 1rem;
  }
  
  .hero {
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .gradient-text {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
  
  .section {
    padding: 4.5rem 3%;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-desc {
    font-size: 1.1rem;
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .cv-form {
    padding: 2.5rem;
  }
  
  .upload-area {
    padding: 3rem 1.5rem;
  }
  
  .social-icons a {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
}

/* Mobile Devices (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .navbar {
    padding: 0.9rem 3%;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }
  
  .nav-links li {
    margin: 0;
  }
  
  .nav-links .cv-link {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gradient-text {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1.5rem;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }
  
  .section {
    padding: 3.5rem 4%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-desc {
    font-size: 1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
  }
  
  .info-item {
    padding: 1.2rem;
  }
  
  .cv-form {
    padding: 2rem;
  }
  
  .upload-area {
    padding: 2.5rem 1.5rem;
  }
  
  .upload-area i {
    font-size: 3rem;
  }
  
  .upload-area h3 {
    font-size: 1.3rem;
  }
  
  .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .social-media h3 {
    font-size: 1.8rem;
  }
  
  /* Show overlay on mobile */
  .project-overlay {
    opacity: 1;
  }
  
  .overlay-btn {
    min-width: 150px;
    padding: 0.8rem 1.3rem;
    font-size: 0.9rem;
  }
  
  .floating-shape {
    display: none;
  }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 4%;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.3rem;
    gap: 0.5rem;
  }
  
  .logo i {
    font-size: 1.3rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
  
  .nav-links a {
    font-size: 0.75rem;
    padding: 0.3rem 0;
    gap: 0.3rem;
  }
  
  .nav-links a i {
    font-size: 0.9rem;
  }
  
  .nav-links .cv-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .hero {
    padding-top: 110px;
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-tag {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .gradient-text {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
    gap: 0.8rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .section {
    padding: 3rem 5%;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-tag {
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .section-desc {
    font-size: 0.95rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .card {
    padding: 1.8rem 1.2rem;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .card p {
    font-size: 0.95rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-image {
    height: 180px;
    font-size: 3.5rem;
  }
  
  .project-image-container {
    height: 180px;
  }
  
  .project-info {
    padding: 1.3rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .overlay-buttons {
    gap: 1rem;
  }
  
  .overlay-btn {
    min-width: 130px;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .overlay-btn i {
    font-size: 1.1rem;
  }
  
  .overlay-btn span {
    font-size: 0.85rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .info-item {
    padding: 1rem;
    gap: 1rem;
  }
  
  .info-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .info-item h3 {
    font-size: 1rem;
  }
  
  .info-item p {
    font-size: 0.9rem;
  }
  
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .cv-container {
    padding: 0;
  }
  
  .cv-form {
    padding: 1.5rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .upload-area i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }
  
  .upload-area h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
  
  .upload-area p {
    font-size: 0.9rem;
  }
  
  footer {
    padding: 2.5rem 5% 1.5rem;
  }
  
  .social-media {
    margin-bottom: 1.5rem;
  }
  
  .social-media h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .social-icons {
    gap: 1rem;
  }
  
  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  footer > p {
    font-size: 0.85rem;
    padding-top: 1.5rem;
  }
  
  /* Show overlay by default on small mobile */
  .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
  }
  
  /* Hide floating shapes for better mobile performance */
  .floating-shape {
    display: none;
  }
}

/* Extra Small Devices (up to 360px) */
@media (max-width: 360px) {
  .navbar {
    padding: 0.7rem 3%;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 0.7rem;
  }
  
  .hero-title {
    font-size: 1.7rem;
  }
  
  .gradient-text {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section {
    padding: 2.5rem 4%;
  }
  
  .card {
    padding: 1.5rem 1rem;
  }
  
  .project-info {
    padding: 1.2rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.2rem;
  }
  
  .cv-form {
    padding: 1.2rem;
  }
  
  .overlay-btn {
    min-width: 120px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 5% 50px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .gradient-text {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: auto;
    padding: 0.7rem 1.5rem;
  }
  
  .section {
    padding: 3rem 4%;
  }
  
  .floating-shape {
    display: none;
  }
}
