/* ==========================
GLOBAL SETTINGS
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: #f8f7ff;

  color: #252333;

  line-height: 1.6;

  transition: 0.4s;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;

  color: inherit;
}

section {
  padding: 100px 8%;
}

.section-heading {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 60px;
}

.section-heading p {
  color: #8b5cf6;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 2px;

  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 42px;
}

/* ==========================
BACKGROUND BLOBS
========================== */

.background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  z-index: -1;
}

.circle {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  opacity: 0.35;
}

.circle-one {
  width: 350px;

  height: 350px;

  background: #c4b5fd;

  top: -100px;

  left: -100px;
}

.circle-two {
  width: 400px;

  height: 400px;

  background: #ddd6fe;

  right: -150px;

  bottom: 20%;
}

.circle-three {
  width: 250px;

  height: 250px;

  background: #a78bfa;

  left: 50%;

  top: 50%;
}

/* ==========================
NAVIGATION
========================== */

header {
  position: fixed;

  top: 0;

  width: 100%;

  z-index: 1000;
}

nav {
  width: 90%;

  margin: 20px auto;

  padding: 18px 30px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(15px);

  /* border-radius: 20px; */

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: 30px;

  font-weight: 700;

  font-family: "Poppins";
}

.logo span {
  color: #8b5cf6;
}

.nav-links {
  display: flex;

  list-style: none;

  gap: 30px;
}

.nav-links a {
  color: #555;

  transition: 0.3s;
}

.nav-links a:hover {
  color: #8b5cf6;
}

.nav-actions {
  display: flex;

  gap: 15px;
}

#theme-toggle,
.menu-btn {
  width: 45px;

  height: 45px;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  background: #8b5cf6;

  color: white;

  font-size: 18px;
}

.menu-btn {
  display: none;
}

/* ==========================
HERO
========================== */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 50px;

  padding-top: 150px;
}

.hero-content {
  max-width: 650px;
}

.tag {
  color: #8b5cf6;

  font-weight: 600;

  margin-bottom: 20px;
}

.hero h1 {
  font-size: 60px;

  line-height: 1.15;

  margin-bottom: 25px;
}

.hero h1 span {
  color: #8b5cf6;
}

.hero-description {
  color: #666;

  font-size: 18px;

  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;

  gap: 20px;
}

.primary-btn,
.secondary-btn {
  padding: 15px 30px;

  /* border-radius: 30px; */

  transition: 0.3s;
}

.primary-btn {
  background: #8b5cf6;

  color: white;
}

.primary-btn:hover {
  background: #6d28d9;
}

.secondary-btn {
  border: 2px solid #8b5cf6;

  color: #8b5cf6;
}

.social-preview {
  margin-top: 35px;

  display: flex;

  gap: 20px;

  color: #777;
}

.hero-image {
  position: relative;
}

.image-container {
  width: 600px;

  height: 600px;

  /* border-radius: 40px; */

  overflow: hidden;

  box-shadow: 0 25px 60px rgba(139, 92, 246, 0.25);
}

.image-container img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.floating-card {
  position: absolute;

  bottom: 20px;

  left: -40px;

  background: white;

  padding: 20px;

  /* border-radius: 20px; */

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.floating-card > span {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ==========================
ABOUT
========================== */

.about-card {
  display: flex;

  align-items: center;

  gap: 50px;

  background: white;

  padding: 50px;

  /* border-radius:30px; */

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;

  max-width: 350px;

  height: 450px;

  object-fit: cover;

  /* border-radius:25px; */

  display: block;

  margin: auto;
}

.about-content {
  flex: 1.5;
}

.about-content h3 {
  font-size: 32px;

  color: #8b5cf6;

  margin-bottom: 20px;
}

.about-content p {
  font-size: 18px;

  line-height: 1.8;

  color: #555;
}

.about-highlights {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

  margin-top: 40px;
}

.about-highlights div {
  text-align: center;

  padding: 20px;

  background: #f5f3ff;

  /* border-radius:20px; */
}

.about-highlights h3 {
  font-size: 32px;

  color: #8b5cf6;

  margin-bottom: 10px;
}

.about-highlights p {
  font-size: 15px;
}
/* ==========================
EDUCATION TIMELINE
========================== */

.timeline {
  max-width: 900px;

  margin: auto;
}

.timeline-item {
  position: relative;

  padding-left: 40px;
}

.timeline-dot {
  position: absolute;

  left: 0;

  top: 10px;

  width: 18px;

  height: 18px;

  background: #8b5cf6;

  border-radius: 50%;
}

.timeline-content {
  background: white;

  padding: 35px;

  /* border-radius: 20px; */

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.timeline-content span {
  color: #8b5cf6;

  font-weight: 600;
}

.timeline-content ul {
  margin-top: 20px;

  padding-left: 20px;
}

/* ==========================
CARDS
========================== */

.cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;
}

.card {
  background: white;

  padding: 35px;

  /* border-radius: 25px; */

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card-icon {
  font-size: 40px;

  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card h3 {
  color: #8b5cf6;
  text-align: center;
}

.card p {
  text-align: center;
}

/* ==========================
SKILLS
========================== */

.skills-container {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 40px;
}

.skill-box {
  background: white;

  padding: 35px;

  /* border-radius: 25px; */
}

.skill {
  margin-bottom: 25px;
}

.skill-title {
  display: flex;

  justify-content: space-between;
}

.progress {
  height: 10px;

  background: #ede9fe;

  border-radius: 20px;
}

.progress-bar {
  height: 100%;

  background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

/* ==========================
FOOTER
========================== */

footer {
  text-align: center;

  padding: 30px;

  background: #8b5cf6;

  color: white;
}

/* ==========================
DARK MODE
========================== */

.dark {
  background: #15131d;

  color: white;
}

.dark nav {
  background: rgba(30, 25, 40, 0.8);
}

.dark .card,
.dark .about-card,
.dark .timeline-content,
.dark .skill-box,
.dark .floating-card {
  background: #262132;

  color: white;
}

/* ==========================
RESPONSIVE
========================== */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;

    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .image-container {
    width: 280px;

    height: 350px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-preview {
    justify-content: center;
  }
}

/* ==========================
GALLERY
========================== */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.gallery-item {
  height: 320px;

  position: relative;

  overflow: hidden;

  /* border-radius: 25px; */
}

.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  padding: 25px;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));

  color: white;

  font-weight: 600;
}

/* ==========================
SOCIAL MEDIA
========================== */

.social-grid {
  /* display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px; */

  display: flex;
  justify-content: center;
}

.social-card {
  background: white;

  padding: 35px;
  /* 
  border-radius: 25px; */

  text-align: center;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);

  transition: 0.3s;
}

.social-card:hover {
  transform: translateY(-10px);
}

.social-card div {
  font-size: 40px;

  margin-bottom: 20px;
}

.social-card h3 {
  color: #8b5cf6;

  margin-bottom: 10px;
}

/* ==========================
CONTACT
========================== */
.contact-card {
  max-width: 700px;
  margin: auto;
  padding: 50px;
  background: white;
  /* border-radius:30px; */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-card h3 {
  font-size: 32px;
  color: #8b5cf6;
  margin-bottom: 20px;
}

.contact-card p {
  color: #555;
  line-height: 1.8;
}

.contact-details {
  margin: 35px 0;
  text-align: left;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
}

.contact-details i {
  /* color:#8B5CF6; */
  width: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
}

.social-links a {
  color: #8b5cf6;
  font-weight: 600;
  transition: 0.3s;
}

.social-links a:hover {
  color: #6d28d9;
}

.dark .contact-card {
  background: #262132;
}

.dark .contact-card p {
  color: #ddd;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 35px 25px;
  }

  .contact-details {
    text-align: left;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================
DARK MODE ADDITIONS
========================== */

.dark .social-card,
.dark .contact-info,
.dark .contact-form {
  background: #262132;
}

/* ==========================
MOBILE
========================== */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================
JAVASCRIPT ANIMATIONS
========================== */

.section,
.card,
.timeline-content,
.about-card {
  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.visible {
  opacity: 1;

  transform: translateY(0);
}

/* ==========================
MOBILE MENU ACTIVE
========================== */

@media (max-width: 900px) {
  .nav-links {
    position: absolute;

    top: 80px;

    left: 0;

    right: 0;

    background: white;

    flex-direction: column;

    padding: 30px;

    border-radius: 20px;

    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .dark .nav-links {
    background: #262132;
  }
}

/* ==========================
ACTIVE LINK
========================== */

.nav-links a.active {
  color: #8b5cf6;

  font-weight: 700;
}

/* ==========================
BACK TO TOP
========================== */

.top-button {
  position: fixed;

  right: 30px;

  bottom: 30px;

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: #8b5cf6;

  color: white;

  font-size: 25px;

  cursor: pointer;

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.top-button.show {
  opacity: 1;

  visibility: visible;
}

/* ==========================
PAGE LOAD
========================== */

body {
  opacity: 1;

  transition: 0.5s;
}

/* ==========================
PROFESSIONAL FOOTER
========================== */

footer {
  background: #171323;

  color: white;

  padding: 70px 8% 30px;
}

.footer-content {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 40px;
}

.footer-content h3 {
  font-size: 32px;

  color: #c4b5fd;

  margin-bottom: 15px;
}

.footer-content p {
  color: #ddd;
}

.footer-links,
.footer-social {
  display: flex;

  flex-direction: column;

  gap: 15px;
}

.footer-links a,
.footer-social a {
  color: #ddd;

  transition: 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #c4b5fd;
}

.copyright {
  margin-top: 50px;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  text-align: center;

  color: #aaa;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================
DARK MODE TEXT
========================== */

.dark {
  color: #f8fafc;
}

.dark p,
.dark li,
.dark span,
.dark label {
  color: #e5e7eb;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: #ffffff;
}

.dark a {
  color: #f8fafc;
}

.dark .hero-description,
.dark .about-content p,
.dark .timeline-content p,
.dark .timeline-content li,
.dark .card p,
.dark .certificate-info p,
.dark .contact-card p,
.dark .footer-content p {
  color: #e5e7eb;
}

.dark .section-heading p {
  color: #c4b5fd;
}

.dark .nav-links a {
  color: #f8fafc;
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
  color: #c4b5fd;
}

/* ==========================
ABOUT HIGHLIGHTS - DARK MODE
========================== */

.dark .about-highlights > div{
    background:#332C46;
    border:1px solid rgba(196,181,253,.15);
}

.dark .about-highlights h3{
    color:#FFFFFF;
}

.dark .about-highlights p{
    color:#E5E7EB;
}

.dark .about-highlights i{
    color:#C4B5FD;
}
