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

/* ===== COLOR VARIABLES ===== */
:root {
  --primary-color: #4070f4;
  --secondary-color: #6e93f7;
  --accent-color: #ff00ff;
  --neon-blue: #00f3ff;
  --neon-purple: #bf00ff;
  --dark-bg: #0a0a1a;
  --darker-bg: #050510;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --black: #000000;
  
  /* Glow Effects */
  --glow-primary: 0 0 20px rgba(64, 112, 244, 0.5);
  --glow-secondary: 0 0 20px rgba(111, 147, 247, 0.5);
  --glow-accent: 0 0 20px rgba(255, 0, 255, 0.5);
  --glow-neon: 0 0 30px rgba(0, 243, 255, 0.7);
  
  /* Font Variables */
  --font-primary: 'Urbanist', sans-serif;
  --font-secondary: 'Orbitron', sans-serif;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--darker-bg);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid var(--dark-bg);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
  box-shadow: var(--glow-neon);
}

/* ===== HERO SECTION ===== */
.home {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.home-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, #050510 0%, #0a0a1a 50%, #050510 100%),
    radial-gradient(circle at 20% 30%, rgba(64, 112, 244, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.15) 0%, transparent 40%);
  background-blend-mode: overlay, screen;
}

.home-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(transparent 95%, rgba(0, 243, 255, 0.1) 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 243, 255, 0.05) 10%, transparent 20%, transparent 80%, rgba(255, 0, 255, 0.05) 90%, transparent 100%);
  background-size: 100% 40px, 200px 100%;
  animation: dataStream 15s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(191, 0, 255, 0.1) 0%, transparent 60%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  background-blend-mode: overlay, screen, multiply;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(0, 243, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 0, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(64, 112, 244, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(0, 243, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255, 0, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 70%, rgba(64, 112, 244, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 30%, rgba(0, 243, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(255, 0, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(64, 112, 244, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 85%, rgba(0, 243, 255, 0.2) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px, 200px 200px;
  animation: grittyParticles 20s infinite linear;
  opacity: 0.8;
}

.home-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.intro-text {
  margin-bottom: 40px;
}

.greeting {
  font-size: 1.5rem;
  color: var(--neon-blue);
  margin-bottom: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: var(--glow-neon);
}

.name {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.typing-container {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing-text {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--glow-primary);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--neon-blue);
  text-shadow: var(--glow-neon);
}

.description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button.primary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neon-blue);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 15px 30px;
  transition: all 0.5s ease;
}

.cta-button.primary:hover {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--neon-blue);
  color: var(--white);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: -45%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--neon-blue);
  cursor: pointer;
  z-index: 10;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 10%;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--glow-neon);
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

.scroll-arrow i {
  font-size: 1.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes dataStream {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 1000px, 0 0; }
}

@keyframes grittyParticles {
  0% { background-position: 0 0, 0 0; opacity: 0.7; }
  25% { background-position: 100px 50px, 50px 100px; opacity: 0.8; }
  50% { background-position: 200px 100px, 100px 200px; opacity: 0.9; }
  75% { background-position: 300px 150px, 150px 300px; opacity: 0.8; }
  100% { background-position: 400px 200px, 200px 400px; opacity: 0.7; }
}

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

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

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

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

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  flex: 1;
}

/* ===== SECTION COMMON STYLES ===== */
section {
  padding: 100px 0;
  position: relative;
}

section .content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-secondary);
}

section .title {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

section .title span {
  color: var(--text-color);
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

section .title span::before,
section .title span::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

section .title span::after {
  bottom: -10px;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-blue);
}

section .topic {
  color: var(--text-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--dark-bg);
  margin-top: 0;
  padding-top: 70px;
}

.about .about-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.about .about-details .left {
  width: 45%;
}

.about .left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  border: 2px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.about .left img:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-primary);
}

.about-details .right {
  width: 55%;
}

.about-details .right p {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.about-tabs {
  display: flex;
  gap: 30px;
  margin: 25px 0;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}

.tab-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, var(--neon-blue), var(--accent-color));
  transition: width 0.3s ease;
}

.tab-link:hover {
  color: var(--neon-blue);
}

.tab-link.active {
  color: var(--neon-blue);
}

.tab-link.active::after {
  width: 100%;
}

.tab-content {
  min-height: 200px;
  margin: 20px 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

.domain-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.domain-card:hover::before {
  left: 100%;
}

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

.domain-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  transition: all 0.3s ease;
}

.domain-card:hover .domain-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.domain-card h4 {
  color: var(--neon-blue);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.domain-card p {
  color: var(--text-secondary);
  font-size: 50px;
  line-height: 1.6;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-date {
  min-width: 100px;
  color: var(--neon-blue);
  font-weight: 600;
  font-size: 14px;
  padding: 5px 12px;
  background: var(--card-bg);
  border-radius: 15px;
  text-align: center;
}

.timeline-content h4 {
  color: var(--text-color);
  margin-bottom: 5px;
  font-size: 16px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.about .button {
  margin-top: 60px;
  text-align: center;
}

.about .button button {
  outline: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: auto;
  display: inline-block;
}

.about .button button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
  border-color: var(--neon-blue);
}

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

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(64, 112, 244, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(191, 0, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.skills-details {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skills-details .text {
  text-align: center;
  width: 100%;
}

.skills-details .topic {
  color: var(--text-color);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.skills-details p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.skill-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 120px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1);
}

.skill-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
  text-align: center;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--dark-bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  justify-items: center;
}

.project-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(64, 112, 244, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-primary);
  border-color: var(--primary-color);
}

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

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

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

.project-footer {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-footer:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.project-name {
  font-weight: 600;
  font-size: 16px;
}

.project-footer i {
  transition: transform 0.3s ease;
}

.project-footer:hover i {
  transform: translateX(5px);
}

.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* spacing from projects */
}

.view-more-btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn.active i {
  transform: rotate(180deg);
}

.project-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.project-card.expanded {
  transform: scale(1.05);
  margin: 20px 0;
  box-shadow: var(--glow-primary);
  border-color: var(--primary-color);
}

.project-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 20px;
}

.project-card.expanded .project-extra {
  max-height: 200px;
  opacity: 1;
  margin-top: 15px 20px;
}

.project-extra .modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.project-extra .modal-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
}

.project-extra .modal-btn:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 15px;
  text-align: left;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

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

.modal-btn.case-study {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.modal-btn.experience {
    background: linear-gradient(45deg, var(--accent-color), var(--neon-purple));
}

.project-extra .modal-btn {
  position: relative;
  z-index: 10;   /* ensures they sit above card overlay */
  pointer-events: auto; /* re-enable clicks */
}



/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--darker-bg);
  padding-bottom: 100px;
}

.contact .social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  width: 120px;
}

.social-link:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--glow-primary);
  border-color: var(--primary-color);
}

.social-link i {
  font-size: 28px;
  margin-bottom: 10px;
}

.social-link span {
  font-size: 14px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(45deg, var(--dark-bg), var(--darker-bg));
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

footer .text span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

footer .text span a {
  font-weight: 600;
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .text span a:hover {
  color: var(--accent-color);
  text-shadow: var(--glow-accent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  section .content {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .about .about-details {
    flex-direction: column;
    text-align: center;
  }
  
  .about .about-details .left,
  .about-details .right {
    width: 100%;
  }
  
  .about .left img {
    height: 350px;
    margin-bottom: 30px;
  }
  
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .name {
    font-size: 3.5rem;
  }
  
  .typing-container {
    font-size: 1.5rem;
  }
  
  .description {
    font-size: 1.1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 250px;
    justify-content: center;
  }
  
  .domains-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-row {
    gap: 25px;
  }
  
  .skill-item {
    width: 100px;
    padding: 15px;
  }
  
  .social-link {
    width: 100px;
    padding: 15px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2.8rem;
  }
  
  .typing-container {
    font-size: 1.3rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .greeting {
    font-size: 1.2rem;
  }
  
  .skill-item {
    width: 80px;
  }
  
  .social-link {
    width: 80px;
  }
}

/* ===== REMOVE UNUSED STYLES ===== */
nav, .navbar, .menu-btn, .cancel-btn, .media-icons {
  display: none !important;
}

/*======Fixes=====*/
/* Fix for overlapping section */
.overlapping-section {
    margin-top: -100px;
    position: relative;
    z-index: 3;
    background: var(--dark-bg);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}

/* Fix for project card expansion */
.project-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card.expanded {
    transform: scale(1.02);
    box-shadow: var(--glow-primary);
    margin: 20px 0;
}

.project-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.project-card.expanded .project-extra {
    max-height: 200px;
    opacity: 1;
    padding: 15px 20px;
}

/* Ensure View More button works correctly */
.hidden-project {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.hidden-project.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== FIXED HERO SECTION ===== */
.home {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Page content that scrolls over hero section */
.page-content {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  background: var(--dark-bg);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}

/* About section that overlaps the hero */
.overlapping-section {
  margin-top: -100px;
  position: relative;
  z-index: 3;
  background: var(--dark-bg);
  border-radius: 30px 30px 0 0;
  padding-top: 150px;
}

/* Ensure content sections have proper background */
.about, .skills, .projects, .contact {
  background: var(--dark-bg);
  position: relative;
  z-index: 3;
}

/* Animation Overlay */
#animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 7777;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

#animation-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-inner {
  position: absolute;
  border: 4px solid transparent;
  border-top: 4px solid var(--neon-blue);
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

.loader-inner:nth-child(1) {
  width: 80px;
  height: 80px;
  animation-duration: 1s;
}

.loader-inner:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: var(--accent-color);
  animation-duration: 1s;
  animation-direction: reverse;
}

.loader-inner:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: var(--primary-color);
  animation-duration: 0.3s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Blast animation */
@keyframes blastOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

animation-overlay.blast {
  animation: blastOut 0.6s ease-out forwards;
}

/* Blast animation */
@keyframes blastOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
    visibility: hidden;
  }
}

#animation-overlay.blast {
  animation: blastOut 0.6s ease-out forwards;
}

/* Scatter animation for rings */
@keyframes scatter {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.3);
    opacity: 0;
  }
}

/* When blasting, make each ring scatter in a different direction */
.loader-inner.scatter:nth-child(1) {
  --tx: -150px;
  --ty: -80px;
  animation: scatter 0.6s ease-out forwards;
}

.loader-inner.scatter:nth-child(2) {
  --tx: 180px;
  --ty: 50px;
  animation: scatter 0.6s ease-out forwards;
}

.loader-inner.scatter:nth-child(3) {
  --tx: -100px;
  --ty: 150px;
  animation: scatter 0.6s ease-out forwards;
}



/* Home content animations */
.home-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.home-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.greeting {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

.name {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards, gradientShift 3s ease infinite;
  animation-delay: 0.7s;
}

.typing-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.description {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.1s;
}

.action-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.3s;
}

.scroll-indicator {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 2s;
}

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

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

