/* Advanced CSS Variables */
:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #ffffff;
  --bg-secondary: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 20px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 30px 60px rgba(0,0,0,0.2);
  --glow: 0 0 30px rgba(102, 126, 234, 0.6);
  --border-radius: 20px;
  --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
  --text-color: #f7fafc;
  --text-light: #a0aec0;
  --bg-color: #1a202c;
  --bg-secondary: #2d3748;
  --border-color: #4a5568;
  --shadow: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-hover: 0 30px 60px rgba(0,0,0,0.6);
  --glow: 0 0 40px rgba(102, 126, 234, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(75, 172, 254, 0.1) 0%, transparent 50%);
  animation: backgroundMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundMove {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  33% { transform: translateX(-20px) translateY(-20px) rotate(1deg); }
  66% { transform: translateX(20px) translateY(20px) rotate(-1deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.2); }
}

/* SPECTACULAR HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: headerSlide 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes headerSlide {
  from { transform: translateY(-100%) rotateX(-90deg); opacity: 0; }
  to { transform: translateY(0) rotateX(0deg); opacity: 1; }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 0 0 25px 25px;
}

.nav-brand h2 {
  color: white;
  font-weight: 800;
  font-size: 1.8rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: brandGlow 2s ease-in-out infinite alternate;
  cursor: pointer;
  transition: var(--transition);
}

.nav-brand h2:hover {
  transform: scale(1.1) rotateY(10deg);
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
}

@keyframes brandGlow {
  from { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5)); }
  to { filter: drop-shadow(0 0 25px rgba(102, 126, 234, 1)); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  position: relative;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  overflow: hidden;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition);
  border-radius: 50px;
}

.nav-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-link:hover::before {
  opacity: 1;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  animation: rotate 15s linear infinite;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.2) rotateY(180deg);
  box-shadow: var(--glow);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* SPECTACULAR HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  z-index: 2;
  position: relative;
}

.hero-image {
  text-align: center;
  animation: imageFloat 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes imageFloat {
  from { transform: translateY(100px) scale(0) rotate(180deg); opacity: 0; }
  to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 0 20px rgba(255, 255, 255, 0.1),
    0 0 0 40px rgba(255, 255, 255, 0.05),
    var(--shadow-hover);
  transition: var(--transition);
  animation: profilePulse 4s ease-in-out infinite;
  position: relative;
}

.profile-img::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #667eea);
  z-index: -1;
  animation: borderRotate 3s linear infinite;
}

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

@keyframes borderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img:hover {
  transform: scale(1.1) rotateY(15deg);
  box-shadow: 
    0 0 0 30px rgba(255, 255, 255, 0.2),
    0 0 100px rgba(255, 255, 255, 0.5),
    var(--glow);
}

.hero-text {
  animation: textSlide 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes textSlide {
  from { transform: translateX(100px) rotateY(45deg); opacity: 0; }
  to { transform: translateX(0) rotateY(0deg); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
  background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff, #e6f3ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 600;
  overflow: hidden;
  border-right: 3px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  animation: typewriter 3s steps(20) 1s both, blink 1s infinite 4s;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-contact {
  margin-bottom: 2rem;
  animation: contactFade 1s ease-in-out 1.5s both;
}

@keyframes contactFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  transition: var(--transition);
}

.hero-contact p:hover {
  color: white;
  transform: translateX(10px);
}

.hero-social {
  display: flex;
  gap: 1.5rem;
  animation: socialSlide 1s ease-in-out 2s both;
}

@keyframes socialSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-link {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.social-link:hover::before {
  left: 100%;
}

/* SPECTACULAR SKILLS SECTION */
.skills {
  background: var(--bg-secondary);
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.skill-item {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: skillFloat 6s ease-in-out infinite;
}

.skill-item:nth-child(odd) {
  animation-delay: 0s;
}

.skill-item:nth-child(even) {
  animation-delay: 3s;
}

@keyframes skillFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  50% { transform: translateY(-15px) rotateZ(1deg); }
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.skill-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.skill-item:hover {
  transform: translateY(-20px) rotateY(10deg) scale(1.05);
  box-shadow: var(--shadow-hover), var(--glow);
  color: white;
}

.skill-item:hover::before {
  transform: scaleX(1);
}

.skill-item:hover::after {
  opacity: 0.9;
}

.skill-item:hover h3,
.skill-item:hover .skill-icon {
  color: white;
}

.skill-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: iconBounce 2s ease-in-out infinite;
  transition: var(--transition);
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotateZ(0deg); }
  40% { transform: translateY(-15px) rotateZ(10deg); }
  60% { transform: translateY(-8px) rotateZ(-5deg); }
}

.skill-item h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.3rem;
  transition: var(--transition);
}

.skill-bar {
  width: 100%;
  height: 12px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* SPECTACULAR PROJECT CARDS */
.projects {
  background: var(--bg-secondary);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  transform: scale(0);
  transition: var(--transition);
  border-radius: 50px;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: transparent;
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--glow);
}

.filter-btn:hover::before,
.filter-btn.active::before {
  transform: scale(1);
}

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

.project-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: cardFloat 8s ease-in-out infinite;
}

.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 2.5s; }
.project-card:nth-child(3) { animation-delay: 5s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  50% { transform: translateY(-10px) rotateZ(0.5deg); }
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.project-card:hover {
  transform: translateY(-25px) rotateY(10deg) scale(1.03);
  box-shadow: var(--shadow-hover), var(--glow);
  color: white;
}

.project-card:hover::before {
  opacity: 0.95;
}

.project-card:hover h3 {
  color: white;
}

.project-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.project-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: var(--transition);
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: tagPulse 3s ease-in-out infinite;
}

.project-card:hover .tag {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

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

.project-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.project-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-link:hover::before {
  left: 100%;
}

/* EDUCATION SECTION */
.education-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.subsection-title {
  font-size: 2rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-align: center;
  animation: titlePulse 3s ease-in-out infinite;
}

.education-grid,
.certificates-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item,
.certificate-item {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.education-item::before,
.certificate-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.education-item:hover,
.certificate-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover), var(--glow);
}

.education-item:hover::before,
.certificate-item:hover::before {
  transform: scaleX(1);
}

.education-item h4,
.certificate-item h4 {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.education-item p,
.certificate-item p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.details {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.grade {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: gradePulse 2s ease-in-out infinite;
}

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

.cert-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cert-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.cert-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-link:hover::before {
  left: 100%;
}

/* CONTACT SECTION */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.contact-item h3 {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--glow);
  border-color: transparent;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.contact-form input,
.contact-form textarea {
  padding: 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  transform: scale(1.02);
}

.contact-form button {
  padding: 1.2rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.contact-form button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--glow);
}

.contact-form button:hover::before {
  left: 100%;
}

/* FOOTER */
.footer {
  background: var(--bg-color);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-light);
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content,
  .education-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-social {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 80px 0;
  }

  .nav {
    padding: 1rem;
  }

  .hero {
    padding: 100px 15px 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .skill-item,
  .project-card,
  .education-item,
  .certificate-item {
    padding: 1.5rem;
  }
}