/* Modern Portfolio Styles */
:root {
  --primary-color: #00ff88;
  --secondary-color: #0066ff;
  --accent-color: #ffff00;
  --dark-bg: #0a0a0f;
  --darker-bg: #050508;
  --card-bg: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #666666;
  --border-color: #2a2a3e;
  --gradient-primary: linear-gradient(135deg, #00ff88 0%, #0066ff 100%);
  --gradient-secondary: linear-gradient(135deg, #0066ff 0%, #8000ff 100%);
  --shadow-primary: 0 10px 40px rgba(0, 255, 136, 0.2);
  --shadow-secondary: 0 10px 40px rgba(0, 102, 255, 0.2);
  
  /* Responsive spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-padding: clamp(1rem, 4vw, 2rem);
  --card-padding: clamp(1rem, 3vw, 2rem);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(14px, 2.5vw, 16px);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Container improvements */
.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.brand-text {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.5px;
  margin: 0 clamp(0.25rem, 1vw, 0.5rem);
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: rgba(0, 255, 136, 0.1);
}

.navbar-toggler {
  border: none;
  padding: clamp(0.2rem, 1vw, 0.25rem);
  width: clamp(25px, 6vw, 30px);
  height: clamp(25px, 6vw, 30px);
  position: relative;
}

.navbar-toggler span {
  display: block;
  width: clamp(16px, 4vw, 20px);
  height: 2px;
  background: var(--text-primary);
  margin: clamp(3px, 1vw, 4px) 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%),
              linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--section-padding) 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(1rem, 4vw, 2rem);
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-text {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: clamp(1.5rem, 4vw, 2rem) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  text-align: center;
  padding: clamp(0.8rem, 2vw, 1rem);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 80px;
  max-width: 120px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.stat-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin: clamp(1.5rem, 4vw, 2rem) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 255, 136, 0.3);
}

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

.btn-outline:hover {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border-color: var(--primary-color);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--dark-bg);
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(255, 255, 0, 0.3);
}

.social-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-top: clamp(1.5rem, 4vw, 2rem);
  justify-content: center;
}

.social-link {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* Hero Image */
.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2rem, 6vw, 0);
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: clamp(250px, 50vw, 400px);
  height: clamp(250px, 50vw, 400px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-primary);
}

.floating-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  backdrop-filter: blur(20px);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  white-space: nowrap;
}

.floating-card i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.floating-card span {
  color: var(--text-primary);
  font-weight: 500;
}

.card-1 {
  top: clamp(5%, 10vw, 10%);
  right: clamp(-20%, -5vw, -10%);
  animation-delay: 0s;
}

.card-2 {
  bottom: clamp(20%, 8vw, 30%);
  left: clamp(-25%, -8vw, -15%);
  animation-delay: 1s;
}

.card-3 {
  bottom: clamp(10%, 5vw, 15%);
  right: clamp(-30%, -10vw, -20%);
  animation-delay: 2s;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  display: none; /* Hidden on mobile by default */
}

.scroll-text {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.scroll-arrow {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about-section {
  padding: var(--section-padding) 0;
  background: var(--darker-bg);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.about-text {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.8;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  margin: clamp(1.5rem, 4vw, 2rem) 0;
}

.exp-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
}

.exp-text {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.4;
}

.about-image {
  position: relative;
  margin-top: clamp(2rem, 6vw, 0);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.8rem, 2vw, 1rem);
  height: clamp(300px, 60vw, 400px);
}

.grid-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.item-1 {
  grid-row: 1 / 3;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: clamp(1rem, 3vw, 1.5rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-secondary);
}

.info-card i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--secondary-color);
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

.info-card h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-card p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin: 0;
}

/* Carousel Styles for About Section */
#profileCarousel {
  max-width: clamp(300px, 60vw, 500px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}

#profileCarousel .carousel-item img {
  height: clamp(300px, 60vw, 500px);
  object-fit: cover;
  border-radius: 20px;
}

#profileCarousel .carousel-control-prev,
#profileCarousel .carousel-control-next {
  width: 10%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
}

#profileCarousel .carousel-control-prev-icon,
#profileCarousel .carousel-control-next-icon {
  background-size: 20px 20px;
  filter: invert(1);
}

/* Skills Section */
.skills-section {
  padding: var(--section-padding) 0;
  background: var(--dark-bg);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 25vw, 150px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(0.8rem, 2vw, 1rem);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.skill-icon {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  color: var(--primary-color);
}

.skill-card h4 {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-primary);
}

.additional-skills {
  text-align: center;
  margin: clamp(3rem, 6vw, 4rem) 0;
}

.additional-skills h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-primary);
}

.additional-skills-grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  flex-wrap: wrap;
}

.additional-skill {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.additional-skill:hover {
  background: var(--gradient-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-secondary);
}

.additional-skill i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary);
}

.additional-skill:hover i {
  color: var(--text-primary);
}

.experience-section {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: var(--card-padding);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2rem);
}

.experience-card .exp-number {
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--primary-color);
}

.experience-card .exp-details h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.experience-card .exp-details p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Projects Section */
.projects-section {
  padding: var(--section-padding) 0;
  background: var(--darker-bg);
}

.project-category {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.category-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

/* Android Projects - Mobile Mockups */
.android-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.mobile-project-card {
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-project-card:hover {
  transform: translateY(-10px);
}

.mobile-mockup {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.mobile-frame {
  width: clamp(180px, 25vw, 220px);
  height: clamp(360px, 50vw, 440px);
  background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
  border-radius: 25px;
  padding: 15px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  position: relative;
}

.mobile-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.mobile-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.mobile-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mobile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.mobile-project-card:hover .mobile-screen img {
  transform: scale(1.05);
}

.mobile-project-info h4 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.mobile-project-info p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Desktop Projects - Desktop Mockups */
.desktop-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.desktop-project-card {
  transition: all 0.3s ease;
}

.desktop-project-card:hover {
  transform: translateY(-10px);
}

.desktop-mockup {
  position: relative;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.desktop-frame {
  width: 100%;
  max-width: clamp(400px, 60vw, 500px);
  margin: 0 auto;
  background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
  border-radius: 15px;
  padding: 8px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.desktop-header {
  background: #1a1a2e;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.desktop-controls {
  display: flex;
  gap: 6px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.red {
  background: #ff5f57;
}

.control.yellow {
  background: #ffbd2e;
}

.control.green {
  background: #28ca42;
}

.desktop-url {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.desktop-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: #000;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  position: relative;
}

.desktop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.desktop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.desktop-project-card:hover .desktop-screen img {
  transform: scale(1.05);
}

.desktop-project-info {
  text-align: center;
}

.desktop-project-info h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.desktop-project-info p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-tag {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Project Links */
.project-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
}

.project-links a {
  width: clamp(45px, 8vw, 55px);
  height: clamp(45px, 8vw, 55px);
  background: var(--primary-color);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.project-links a:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

/* Responsive Design for Projects */
@media (max-width: 1200px) {
  .android-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .desktop-projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .android-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .mobile-frame {
    width: clamp(140px, 35vw, 180px);
    height: clamp(280px, 70vw, 360px);
    padding: 10px;
  }
  
  .desktop-frame {
    max-width: 100%;
  }
  
  .desktop-url {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .control {
    width: 10px;
    height: 10px;
  }
  
  .desktop-header {
    padding: 6px 10px;
  }
}

@media (max-width: 576px) {
  .android-projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mobile-frame {
    width: clamp(160px, 40vw, 200px);
    height: clamp(320px, 80vw, 400px);
  }
  
  .project-category {
    margin-bottom: 3rem;
  }
}

/* Live Projects Section */
.live-projects-section {
  padding: var(--section-padding) 0;
  background: var(--dark-bg);
  position: relative;
}

.live-projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.live-projects-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.live-projects-grid a {
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  filter: grayscale(0%);
}

.live-projects-grid a:hover {
  transform: translateY(-10px) scale(1.05);
  filter: drop-shadow(0 15px 35px rgba(0, 255, 136, 0.4));
}

.live-projects-grid a img {
  width: clamp(100px, 15vw, 150px);
  height: clamp(100px, 15vw, 150px);
  object-fit: contain;
  border-radius: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-projects-grid a:hover img {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

@media (max-width: 768px) {
  .live-projects-grid {
    gap: clamp(2rem, 4vw, 3rem);
  }

  .live-projects-grid a img {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
  }
}

@media (max-width: 576px) {
  .live-projects-grid {
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .live-projects-grid a img {
    width: clamp(70px, 25vw, 100px);
    height: clamp(70px, 25vw, 100px);
    padding: 0.8rem;
  }
}

/* Experience Section Styles */
.experience-timeline {
  position: relative;
  padding: 2rem 0;
}

.company-logo.custom-logo {
  width: 40px;
  height: 40px;
  background: url("images/bluestock-logo.png") no-repeat center center / contain;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.experience-item {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.experience-item:nth-child(odd) .experience-card {
  margin-right: calc(50% + 2rem);
  text-align: right;
}

.experience-item:nth-child(even) .experience-card {
  margin-left: calc(50% + 2rem);
  text-align: left;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 3px solid var(--dark-bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.experience-item:nth-child(odd) .experience-card::before {
  right: -20px;
  border-left-color: var(--border-color);
}

.experience-item:nth-child(even) .experience-card::before {
  left: -20px;
  border-right-color: var(--border-color);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
}

.experience-header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.experience-item:nth-child(odd) .experience-header {
  flex-direction: row-reverse;
}

.company-logo {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.company-logo i {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--dark-bg);
}

.experience-details {
  flex: 1;
}

.position-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.company-name {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experience-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 500;
}

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

.experience-description {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

.experience-description p {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.experience-achievements {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.experience-item:nth-child(odd) .achievement-item {
  flex-direction: row-reverse;
}

.achievement-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.experience-summary {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-secondary);
  border-color: var(--secondary-color);
}

.summary-icon {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: var(--gradient-secondary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-secondary);
}

.summary-icon i {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
}

.summary-content h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.summary-content p {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin: 0;
  font-weight: 500;
}

/* Mobile Experience Timeline */
@media (max-width: 768px) {
  .experience-timeline::before {
    left: 2rem;
  }
  
  .experience-item::before {
    left: 2rem;
  }
  
  .experience-item:nth-child(odd) .experience-card,
  .experience-item:nth-child(even) .experience-card {
    margin-left: 4rem;
    margin-right: 0;
    text-align: left;
  }
  
  .experience-item:nth-child(odd) .experience-header {
    flex-direction: row;
  }
  
  .experience-item:nth-child(odd) .achievement-item {
    flex-direction: row;
  }
  
  .experience-card::before {
    display: none;
  }
  
  .experience-header {
    flex-direction: row !important;
  }
}

@media (max-width: 576px) {
  .experience-timeline::before {
    left: 1.5rem;
  }
  
  .experience-item::before {
    left: 1.5rem;
    width: 12px;
    height: 12px;
  }
  
  .experience-item:nth-child(odd) .experience-card,
  .experience-item:nth-child(even) .experience-card {
    margin-left: 3rem;
  }
  
  .experience-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .experience-details {
    text-align: center;
  }
}

/* Achievements Section */
.achievements-section {
  padding: var(--section-padding) 0;
  background: var(--dark-bg);
  position: relative;
}

.achievements-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.achievements-preview {
  position: relative;
  z-index: 2;
}

.achievement-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 40vw, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
}

.highlight-icon {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--dark-bg);
}

.highlight-content h4 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.highlight-content p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 350px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

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

.project-image {
  position: relative;
  overflow: hidden;
  height: clamp(200px, 40vw, 250px);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.project-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
}

.project-links a {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: var(--primary-color);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.project-links a:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.project-info {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.project-info h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--darker-bg);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: var(--card-padding);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: clamp(2rem, 4vw, 0);
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 25px 25px 0 0;
}

.contact-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.contact-icon {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-primary);
}

.contact-icon i {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark-bg);
}

.contact-header h3 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin: 0;
}

.contact-form {
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-primary);
  transition: all 0.3s ease;
  width: 100%;
  backdrop-filter: blur(10px);
}

.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-submit {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  border-radius: 15px;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  letter-spacing: 0.5px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-primary);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: var(--card-padding);
  height: fit-content;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 25px 25px 0 0;
}

.contact-info-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.contact-info-header h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin: 0;
}

.contact-methods {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 15px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.method-icon {
  width: clamp(45px, 8vw, 55px);
  height: clamp(45px, 8vw, 55px);
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.method-icon i {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--dark-bg);
}

.method-info h4 {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.method-info p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.method-info a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.method-info a:hover {
  color: var(--primary-color);
}

.contact-social {
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-social h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1rem);
}

.contact-social-link {
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.contact-social-link:hover {
  background: var(--gradient-primary);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
}

/* Responsive adjustments for contact section */
@media (max-width: 992px) {
  .contact-section .row {
    flex-direction: column;
  }
  
  .contact-info-card {
    margin-top: 2rem;
  }
  
  .contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-method {
    padding: 1rem;
  }
  
  .contact-methods {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-form-card,
  .contact-info-card {
    border-radius: 20px;
    padding: 1.5rem;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .method-info {
    text-align: center;
  }
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: clamp(1.5rem, 4vw, 2rem) 0;
}

.footer p {
  color: var(--text-secondary);
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2vw, 1rem);
}

.footer-socials .social-link {
  width: clamp(35px, 7vw, 40px);
  height: clamp(35px, 7vw, 40px);
}

/* Toast Notification */
.toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.toast.bg-success {
  background: var(--primary-color);
  color: var(--dark-bg);
}

.toast.bg-danger {
  background: #ff4757;
  color: var(--text-primary);
}

/* Responsive Breakpoints */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .floating-card {
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-title {
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .floating-card {
    transform: scale(0.8);
    font-size: 0.7rem;
    padding: 0.6rem 0.8rem;
  }
  
  .card-1 {
    right: -15%;
    top: 5%;
  }
  
  .card-2 {
    left: -20%;
    bottom: 25%;
  }
  
  .card-3 {
    right: -25%;
    bottom: 15%;
  }
  
  .experience-card {
    flex-direction: column;
    text-align: center;
  }
  
  .image-grid {
    height: clamp(250px, 50vw, 350px);
  }
  
  .about-section .row {
    flex-direction: column-reverse;
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
  
  #profileCarousel {
    max-width: 100%;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
  
  .skill-card {
    padding: 1.2rem 0.8rem;
    aspect-ratio: 1.2;
  }
  
  .contact-card {
    border-radius: 20px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  .navbar-nav {
    padding: 1rem 0;
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    display: block;
  }
  
  .footer-socials {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .footer .row {
    text-align: center;
  }
  
  #profileCarousel .carousel-item img {
    height: clamp(250px, 50vw, 350px);
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  :root {
    --section-padding: clamp(2rem, 8vw, 4rem);
    --container-padding: 1rem;
    --card-padding: 1.5rem;
  }
  
  .achievement-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .highlight-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .highlight-content {
    text-align: center;
  }
  
  .hero-stats {
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .stat-card {
    min-width: 70px;
    max-width: 90px;
    padding: 0.8rem 0.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    min-width: auto;
  }
  
  .additional-skills-grid {
    gap: 0.5rem;
  }
  
  .additional-skill {
    width: 45px;
    height: 45px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr 1fr;
    height: auto;
    gap: 1rem;
  }
  
  .item-1 {
    grid-row: 1;
    height: 250px;
  }
  
  .experience-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .experience-card {
    padding: 2rem 1.5rem;
  }
  
  .scroll-indicator {
    display: block;
    bottom: 1rem;
  }
  
  #profileCarousel .carousel-control-prev,
  #profileCarousel .carousel-control-next {
    display: none;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .contact-card {
    margin: 0 0.5rem;
    border-radius: 15px;
  }
  
  .navbar-brand {
    margin-left: 0.5rem;
  }
  
  .navbar-toggler {
    margin-right: 0.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .profile-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .floating-card {
    display: none;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px; /* Minimum touch target size */
  }
  
  .social-link {
    min-width: 44px;
    min-height: 44px;
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Remove hover effects on touch devices */
  .skill-card:hover,
  .project-card:hover,
  .stat-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card {
    animation: none;
  }
  
  .scroll-indicator {
    animation: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .scroll-indicator,
  .floating-card,
  .hero-buttons,
  .social-links,
  .contact-form {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section,
  .about-section,
  .skills-section,
  .projects-section {
    background: white !important;
    color: black !important;
  }
}

/* Loading Animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: clamp(6px, 1.5vw, 8px);
}

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

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

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

/* Performance optimizations */
.hero-section::before,
.contact-card::before {
  will-change: transform;
}

.floating-card,
.skill-card,
.project-card {
  will-change: transform;
}

/* Focus styles for accessibility */
.btn:focus,
.social-link:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.form-control:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
  }
  
  .card-bg {
    border: 2px solid var(--border-color);
  }
}