


:root {
  --bg: #0a0a0a;
  --text: #e8e8e8;
  --accent: #00d4ff; /* professional cyan */
  --accent2: #0099cc; /* darker cyan */
  --card: rgba(20,20,20,0.95);
  --section-padding: 3.5rem 1.5rem;
  --hero-bg: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  --modal-bg: rgba(20,20,20,0.9);
}

body.dark {
  --bg: #0a0a0a;
  --text: #e8e8e8;
  --card: rgba(20,20,20,0.95);
  --hero-bg: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

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


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LOADING ANIMATION */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
  color: var(--accent);
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loader-content p {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
}

/* ENHANCED ANIMATIONS */
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* CUSTOM CURSOR */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: scale(1.5);
  background: var(--accent2);
}

/* Dark mode styles are now default */



/* HEADER & NAVIGATION */
.main-header {
  background: var(--bg);
  background: var(--bg); /* Always dark mode */
  color: var(--text); /* Always dark mode */
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  width: 100%;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.01em;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(255,215,0,0.08);
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
}


nav a {
  margin: 0 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width 0.3s;
  margin-top: 2px;
}
nav a:hover {
  color: var(--accent);
}
nav a:hover::after {
  width: 100%;
}


.section {
  padding: var(--section-padding);
  max-width: 1100px;
  margin: auto;
  position: relative;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--accent);
  position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}


/* HERO */
.hero-unique {
  background: var(--hero-bg);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 1440 600" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H1440V600C1200 500 800 700 0 600V0Z" fill="%2300d4ff" fill-opacity="0.05"/></svg>') no-repeat center/cover;
  pointer-events: none;
}
.hero-content {
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent2);
  text-shadow: 0 2px 8px rgba(230,207,167,0.12);
}
.wave {
  display: inline-block;
  animation: wave 1.5s infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.typewriter {
  font-size: 1.5rem;
  color: var(--accent);
  min-height: 2.2rem;
  font-family: 'Outfit', monospace, sans-serif;
  margin-bottom: 0.5rem;
}
.hero-desc {
  font-size: 1.3rem;
  color: var(--text);
  opacity: 0.85;
}
.hero-btn {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  background: var(--accent2);
  color: #fff;
}
.highlight {
  color: var(--accent2);
}


/* ABOUT */
.about-unique .about-flex {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.about-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 18px rgba(255,215,0,0.10);
}
.about-bio {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.about-facts {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
}
.about-facts li {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2.2rem;
}
.about-stats .stat {
  background: var(--card);
  border-radius: 10px;
  padding: 1.2rem 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent2);
  box-shadow: 0 2px 10px rgba(255,215,0,0.07);
}
.about-stats .stat span {
  font-size: 2rem;
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons img {
  width: 28px; /* Slightly larger icons */
  height: 28px;
  filter: grayscale(1);
  transition: transform 0.2s, filter 0.3s;
}

.social-icons img:hover {
  transform: scale(1.15);
  filter: none;
}

/* Projects Section */

/* PROJECTS */
.projects-unique .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}
.interactive-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(255,215,0,0.10);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.interactive-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 48px rgba(255,215,0,0.18);
}
.interactive-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 1.6rem 1.3rem 1.3rem 1.3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--accent2);
}
.card-content p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}
.project-more {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--modal-bg);
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  color: var(--text);
}
.close-modal {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.7rem;
  color: var(--accent2);
  cursor: pointer;
}

/* 3D CANVAS (for hero or background) */
.three-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* BLOG */
.blog-unique .blog-grid {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.2rem;
}
.blog-post {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 1.5rem 2rem;
  max-width: 340px;
  font-size: 1.08rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.blog-post h3 {
  color: var(--accent2);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
/* CONTACT */
.contact-unique .contact-fun {
  margin-top: 2rem;
  text-align: center;
  color: var(--accent);
  font-size: 1.1rem;
}
.chatbot-link {
  color: var(--accent2);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

/* Skills Section */
.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-align: left;
}

.skill-category h3::after {
    display: none; /* No underline for skill category headings */
}

.skill-bar {
    margin-bottom: 1rem;
}

.skill-bar label {
  display: block;
  margin: 0.7rem 0 0.3rem;
  font-weight: 600;
  color: var(--text);
}

.skill-bar div {
  height: 10px; /* Thicker skill bars */
  background: #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar div > div {
  height: 100%;
  background: var(--accent);
  width: 0; /* Will be set by inline style for animation */
  transition: width 1s ease-out; /* Smooth fill animation */
}

/* Timeline for Experience and Education */
.timeline {
    position: relative;
    padding: 1rem 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px; /* Adjust for spacing */
    width: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

body.dark .timeline::before {
    background: #444;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
    left: 14px;
    top: 5px;
    z-index: 1;
}

body.dark .timeline-item::before {
    border: 2px solid var(--bg); /* Ensure border color adapts */
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--accent);
}

.timeline-item h3::after {
    display: none; /* No underline for timeline headings */
}

.timeline-item .date {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-item ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

/* Resume Section */
#resume .resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.resume-preview {
    width: 100%;
    max-width: 800px;
    height: 700px; /* Adjust height as needed */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

/* Form Styling */
form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

form input, form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--bg); /* Input background adapts to theme */
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

/* Theme Toggle */
/* .theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 1.0rem;
  z-index: 1000;
  color: var(--text);
  background: var(--card);
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
} */

/* FLOATING ACTION BUTTON */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

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

.fab-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.fab-item:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

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

.back-to-top:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* Footer */

footer {
  text-align: center;
  padding: 2.5rem 1rem 2rem 1rem;
  font-size: 1rem;
  color: #888;
  background: var(--card);
  margin-top: 3rem;
}
footer .footer-theme-toggle {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}
footer .social-icons {
  justify-content: center;
  margin-top: 1.2rem;
}

/* Responsiveness */


@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .main-nav ul {
    gap: 1rem;
  }
  .about-unique .about-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-stats {
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .projects-unique .card-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-unique .testimonials-grid,
  .blog-unique .blog-grid {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 1.2rem 0.3rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .about-avatar img {
    width: 80px; height: 80px;
  }
  .about-stats .stat {
    padding: 0.7rem 1.1rem;
    font-size: 1rem;
  }
  .interactive-card img {
    height: 140px;
  }
  .modal-content {
    padding: 1.2rem 0.7rem;
  }
  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .fab-item {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .custom-cursor {
    display: none; /* Hide custom cursor on mobile */
  }
}
