/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  /* Colors */
  --primary-color: #64ffda;
  --secondary-color: #e0e0e0;
  --accent-color: #3b82f6;
  --text-color: #cbd5e1;
  --text-light: #94a3b8;
  --white: #f8fafc;
  --light-bg: #1e293b;
  --dark-bg: #0f172a;
  --gradient-1: linear-gradient(135deg, #64ffda 0%, #3b82f6 100%);
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--normal-font-size);
  font-weight: var(--font-normal);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--white);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--h4-font-size);
  color: var(--text-light);
  font-weight: var(--font-normal);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--gradient-1);
  color: var(--dark-bg);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
}

.loader-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.loader-line-wrap {
  animation: spin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.loader-line {
  height: 50px;
  width: 5px;
  border-radius: 2px;
  background: var(--primary-color);
  margin: 0 auto;
}

.loader-line-wrap:nth-child(1) { animation-delay: -0.8s; }
.loader-line-wrap:nth-child(2) { animation-delay: -0.6s; }
.loader-line-wrap:nth-child(3) { animation-delay: -0.4s; }
.loader-line-wrap:nth-child(4) { animation-delay: -0.2s; }
.loader-line-wrap:nth-child(5) { animation-delay: 0s; }

@keyframes spin {
  0%, 40%, 100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  z-index: var(--z-fixed);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--white);
}

.nav-brand span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-light);
  font-weight: var(--font-medium);
  position: relative;
  transition: var(--transition);
}

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

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

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

.shape-5 {
  width: 140px;
  height: 140px;
  bottom: 30%;
  right: 40%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  opacity: 0;
  animation: slideInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: var(--h4-font-size);
  color: var(--primary-color);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: var(--h1-font-size);
  color: var(--white);
  font-weight: var(--font-extra-bold);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  min-height: 2rem;
}

.typing-text {
  position: relative;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-bio {
  font-size: var(--h4-font-size);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: slideInRight 1s ease 0.7s forwards;
}

.profile-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  color: var(--white);
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.profile-image {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 255, 218, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.profile-image:hover .image-overlay {
  opacity: 1;
}

.profile-info h3 {
  color: var(--white);
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: var(--primary-color);
  font-size: var(--h4-font-size);
  margin-bottom: 1rem;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.stat-label {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.7);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--gradient-2);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0.9;
  z-index: -1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition);
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.experience-box {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-1);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  font-size: 2rem;
  font-weight: var(--font-bold);
  line-height: 1;
}

.exp-text {
  font-size: var(--small-font-size);
  line-height: 1.2;
}

.about-text {
  padding-left: 2rem;
}

.about-description {
  margin-bottom: 2rem;
}

.about-description p {
  margin-bottom: 1rem;
  font-size: var(--h4-font-size);
  line-height: 1.7;
  color: var(--text-light);
}

.about-description strong {
  color: var(--secondary-color);
}

.personal-info {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 0.75rem;
}

.info-label {
  font-weight: var(--font-semi-bold);
  color: var(--secondary-color);
  min-width: 120px;
}

.info-value {
  color: var(--text-light);
}

.about-buttons {
  display: flex;
  gap: 1rem;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  margin-top: 4rem;
  background: var(--gradient-2);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  color: var(--white);
}

.skills-title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 3rem;
  color: var(--white);
}

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

.skill-category {
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(100, 255, 218, 0.1);
  color: var(--white);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.skill-category h4 {
  font-size: var(--h4-font-size);
  margin-bottom: 1rem;
  color: var(--white);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: var(--light-bg);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  border: 1px solid rgba(100, 255, 218, 0.3);
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
}

/* ===== RESUME SECTION ===== */
.resume {
  background: var(--gradient-2);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0.9;
  z-index: -1;
}

.resume-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-icon {
  position: absolute;
  left: 15px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 1;
}

.timeline-content {
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--white);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: var(--h4-font-size);
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.timeline-content h4 {
  color: var(--text-light);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.timeline-content ul {
  list-style: none;
  margin-top: 1rem;
}

.timeline-content li {
  color: var(--text-light);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.timeline-content li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* ===== SKILLS PROGRESS ===== */
.skills-progress {
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.skills-progress h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--white);
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--white);
}

.progress-bar {
  height: 8px;
  background: var(--light-bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--gradient-2);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0.9;
  z-index: -1;
}

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

.project-card {
  background: var(--light-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(100, 255, 218, 0.1);
  color: var(--text-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.project-card:hover .project-image img {
  transform: scale(1.1);
}

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

.project-link {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
  font-size: 1.25rem;
  transition: var(--transition);
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--white);
}

.project-content {
  padding: 2rem;
}

.project-category {
  color: var(--primary-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-content h3 {
  font-size: var(--h4-font-size);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

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

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

.tech-tag {
  background: var(--light-bg);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.project-features {
  border-top: 1px solid var(--light-bg);
  padding-top: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.feature i {
  color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--gradient-2);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

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

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--dark-bg);
  font-size: 1.25rem;
}

.contact-details h4 {
  color: var(--white);
  font-size: var(--h4-font-size);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-font-size);
}

.contact-social {
  margin-top: 2rem;
  text-align: center;
}

.contact-social h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-social .social-links {
  justify-content: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--white);
  font-family: inherit;
  font-size: var(--normal-font-size);
  transition: var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group label {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: var(--gradient-2);
  color: var(--primary-color);
  padding: 0 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-font-size);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: var(--z-tooltip);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Large devices (desktops, 1200px and up) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content {
    gap: 3rem;
  }
  
  .about-content,
  .contact-content {
    gap: 3rem;
  }
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  :root {
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.125rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-content,
  .contact-content,
  .resume-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Small devices (landscape phones, 768px and up) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.375rem;
    --h4-font-size: 1rem;
    --section-padding: 3rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .about-text {
    padding-left: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-icon {
    left: 0;
  }
}

/* Extra small devices (portrait phones, 576px and down) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --h4-font-size: 1rem;
    --section-padding: 2rem 0;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .profile-card {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .about-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-bio {
    font-size: var(--normal-font-size);
  }
  
  .about-description p {
    font-size: var(--normal-font-size);
  }
}

/* Animation delays for staggered effects */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Hover effects for interactive elements */
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

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

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

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

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

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .back-to-top,
  .hamburger {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}
