 /* --- Root Variables for Theming --- */
/* --- THEME VARIABLES --- */

/* Default Dark Theme (already exists) */
:root {
  --primary-color: #00CFE8;
  --dark-bg: #0A192F;
  --light-bg: #112240;
  --slate-text: #8892B0;
  --light-slate-text: #CCD6F6;
  --glow-shadow: 0 0 25px rgba(0, 207, 232, 0.5);
  --card-bg: rgba(17, 34, 64, 0.6);
  --card-border: rgba(204, 214, 246, 0.1);
  --phone-bezel-color: #202020;
}

/* New Light Theme */
[data-theme="light"] {
  --dark-bg: #F0F2F5; /* Light gray background */
  --light-bg: #FFFFFF; /* White section background */
  --slate-text: #555; /* Darker gray for text */
  --light-slate-text: #111; /* Almost black for titles */
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.1);
  --phone-bezel-color: #333;
}

/* --- NAVBAR THEME TOGGLE SWITCH --- */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--light-bg);
  border: 1px solid var(--primary-color);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: var(--primary-color);
  bottom: 3px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--light-bg);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* --- Global & Body Styles --- */
body {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--slate-text);
}

/* ================= CUSTOM CURSOR ================= */
.cursor-dot, .cursor-outline { 
  position: fixed; 
  top: 0; 
  left: 0; 
  transform: translate(-50%, -50%); 
  border-radius: 50%; 
  pointer-events: none; 
  z-index: 9999; 
}
.cursor-dot { 
  width: 8px; 
  height: 8px; 
  background-color: var(--primary-color); 
  transition: transform 0.1s ease; 
}
.cursor-outline { 
  width: 40px; 
  height: 40px; 
  border: 2px solid var(--primary-color); 
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease; 
}
body:has(a:hover, button:hover, .btn-resume:hover, .skill-card:hover, .project-card:hover) .cursor-outline { 
  transform: scale(1.5); 
  border-color: var(--primary-color); 
}


/* --- Navbar --- */
.navbar {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}
.navbar.scrolled {
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  padding: 0.75rem 0;
}
.navbar-brand { font-weight: 700; font-size: 1.6rem; color: var(--light-slate-text) !important; }
.navbar .nav-link { color: var(--slate-text) !important; font-weight: 500; padding: 0.5rem 1rem; transition: color 0.3s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary-color) !important; }

/* Resume Button in Navbar */
.btn-resume {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  background-color: transparent;
}
.btn-resume:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: var(--glow-shadow);
  transform: translateY(-3px);
}
@media (max-width: 991px) {
  .btn-resume {
    display: inline-block;
    margin-top: 1rem;
    width: auto;
  }
}

 /* --- Hero Section & Aurora Background --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.aurora-background {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150%; height: 150%;
  background: radial-gradient(circle, #00CFE8 0%, #112240 30%, #0A192F 60%);
  animation: aurora-flow 20s infinite linear;
  filter: blur(100px) opacity(0.3);
}
@keyframes aurora-flow { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-content { position: relative; z-index: 2; }

/* Hero Profile Picture Styles */
.hero-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--glow-shadow);
  transition: all 0.4s ease;
}
.hero-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 207, 232, 0.7);
}

.hero-name { font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; color: var(--light-slate-text); line-height: 1.1; }
.hero-subtitle { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 600; color: var(--slate-text); }
.hero-description { max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }
.btn { padding: 12px 30px; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; border-width: 2px; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--dark-bg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-shadow); }

/* --- Section Styling --- */
section { padding: 100px 0; }
.section-title { font-weight: 700; margin-bottom: 1rem; text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--light-slate-text); }
.section-subtitle { max-width: 600px; margin-bottom: 4rem; text-align: center; color: var(--slate-text); line-height: 1.7; }
.bg-dark-section { background-color: var(--light-bg); border-top: 1px solid #1d2d50; border-bottom: 1px solid #1d2d50; }

/* --- Icon-Based Skills Section --- */
.skill-card {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  padding: 1.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.skill-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.skill-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 0.75rem; }
.skill-card span { font-weight: 500; font-size: 0.9rem; color: var(--light-slate-text); }

/* --- Projects Section (Mobile Frame & Glassmorphism) --- */
.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.7); border-color: var(--primary-color); }

.mobile-frame-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 1rem;
  flex-shrink: 0;
}

.mobile-frame {
  position: relative;
  width: 280px; 
  height: 580px; 
  background-color: var(--phone-bezel-color);
  border-radius: 40px; 
  border: 10px solid var(--phone-bezel-color);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 15px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background-color: var(--phone-bezel-color);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

 .mobile-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

.project-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.4rem; font-weight: 600; color: var(--light-slate-text); margin-bottom: 0.75rem; }
.project-description { font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.project-tags { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tags span { background: rgba(0, 207, 232, 0.1); color: var(--primary-color); padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }
.project-link { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: all 0.3s ease; margin-top: 1rem; }
.project-link:hover { color: #fff; }
.project-link i { transition: transform 0.3s ease; margin-left: 5px; }
.project-link:hover i { transform: translateX(5px); }

/* --- Experience Timeline --- */
.timeline { position: relative; max-width: 800px; margin: 4rem auto 0; }
.timeline::before { content: ''; position: absolute; width: 2px; background: #1d2d50; top: 0; bottom: 0; left: 15px; }
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; width: 30px; height: 30px; left: 0; top: 5px; border: 2px solid var(--primary-color); background: var(--light-bg); border-radius: 50%; z-index: 1; transition: background 0.3s ease; }
.timeline-item.education::before { border-style: dashed; }
.timeline-item:hover::before { background: var(--primary-color); }
.timeline-content h5 { font-weight: 600; color: var(--light-slate-text); }
.timeline-date { color: var(--primary-color); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
.timeline-content ul { padding-left: 20px; margin-top: 0.5rem; }

/* --- Strengths & Certifications --- */
#strengths .section-title { text-align: left; }
.strengths-list { list-style: none; padding: 0; }
.strengths-list li { font-size: 1.1rem; color: var(--light-slate-text); margin-bottom: 1rem; display: flex; align-items: center; }
.strengths-list i { color: var(--primary-color); margin-right: 1rem; font-size: 1.2rem; }
.certification-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  color: var(--light-slate-text);
  height: 100%;
  transform-style: preserve-3d;
}
.certification-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.certification-card span { display: block; font-size: 0.8rem; color: var(--slate-text); margin-top: 0.25rem; }

/* --- Footer & Contact --- */
#contact .btn-lg { padding: 1rem 2.5rem; }
footer { border-top: 1px solid #1d2d50; padding: 2rem 0; color: var(--slate-text); }
.footer-socials { display: flex; justify-content: center; gap: 1.5rem; }
.footer-socials a { color: var(--slate-text); font-size: 1.5rem; transition: all 0.3s ease; }
.footer-socials a:hover { color: var(--primary-color); transform: translateY(-3px); }

/* --- Scroll Animations (Original) --- */
.animated-section, .animated-item { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animated-section.is-visible, .animated-item.is-visible { opacity: 1; transform: translateY(0); }
.animated-item:nth-child(1) { transition-delay: 100ms; }
.animated-item:nth-child(2) { transition-delay: 200ms; }
.animated-item:nth-child(3) { transition-delay: 300ms; }
.animated-item:nth-child(4) { transition-delay: 400ms; }

/* --- Scroll Animations (New) --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.fade-in.visible {
  opacity: 1;
}

 /* --- Responsive Design --- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .section-title { text-align: center !important; }
  .hero-photo { width: 150px; height: 150px; }
  .skill-card i { font-size: 2rem; }
  .skill-card span { font-size: 0.8rem; }
  .cursor-dot, .cursor-outline { display: none; } /* Hide custom cursor on mobile */

  .mobile-frame-container { padding: 1rem 0 0.5rem; }
  .mobile-frame {
    width: 220px;
    height: 450px;
    border-radius: 30px;
    border-width: 8px;
  }
  .mobile-screenshot {
    border-radius: 20px;
  }
  .phone-notch {
    width: 80px;
    height: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}