/* Importing fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@400;500;600&display=swap");

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg: #F3F2FA;
  --surface: #FFFFFF;

  --text-main: #0F0E13;
  --text-muted: #6B7280;

  --accent: #8A4FFF;
  --accent-dark: #6D28D9;

  --line: #E1E2EA;
}

  body {
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-main);
}


.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}


/*hero- background*/
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}



/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 10%;
  background: var(--surface);
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  box-shadow:  0 4px 12px rgba(0,0,0,0.06);
}

/* NAVBAR (uses your existing class names) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10%;
  background: var(--bg);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--text-main);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.c-letter {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.links
{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.links a {
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  transition: color 0.3s ease;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.links a:hover::after,
.links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.links a:hover {
  color: var(--accent-dark);
}

.menu-toggle {
  margin-left: auto;
  display: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo-container {
    margin-right: auto;
  }
  .menu-toggle {
    display: flex;
  }

  .links {
    position: absolute;
    top: 80px;
    right: 16px;
    left: 10%;

    background-color: var(--surface);
    border: 1px solid var(--line) ;
    border-radius: 14px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
    padding: 1rem;
    display: none;

    box-shadow: 0 12px 30px var(--text-main);
  }
  .links a {
    opacity: 1;
  }

  .links.active {
    display: flex;
  }
  .home { padding-top: 5.5rem; }
}


/* Home Section */

.hero-box {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border-radius: 20px;
}


.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7rem 10%;
  flex-wrap: wrap;
  gap: 2rem;
}

.home-img {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 300px;
}

.home-img img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-content {
  max-width: 550px;
  color: var(--text-main);
}

.home-content h1 {
  font-size: 2.4rem;
  color: var(--text-main);
}

.home-content h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.home-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color:  var(--text-muted);
}

.btn {
  background:  var(--text-main);
  color:  var(--surface);
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--text-main);
  background: transparent;
  transition: all 0.3s ease;
}


.social-icon:hover {
  background: var(--accent);
  transform: scale(1.1);
  border-color: transparent;
}

/* Switch to white version on hover */
.notion-icon:hover img {
  content: url("../icons/notion_white.svg");
  transform: scale(1.1);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.notion-icon img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}


.social-icons a:hover {
  background: var(--accent);
  color: var(--text-main);
  transform: scale(1.1);
  border-color: transparent;
}

/* About Section */
.about {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 6rem 10%;
  color: var(--text-main);
}

.about-img img {
  max-width: 280px;
  border-radius: 15px;
  box-shadow: 0 10px 20px var(--text-main);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.about-content h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-content .btn + .btn {
  margin-left: 1rem;
}

.resume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .resume-buttons {
    flex-direction: column;
  }

  .resume-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .about-content .btn + .btn {
    display: block;
    margin-left: 0;
    margin-top: 1rem;
  }
}






/* Responsive Design */
@media (max-width: 768px) {
  .home,
  .about {
    flex-direction: column;
    text-align: left;
  }



  .home-content,
  .about-content {
    max-width: 100%;

  }
}


/* Education Section */
.education-section {
  padding: 4rem 10%;
  text-align: center;
  color: var(--accent-dark);
}

.education-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.education-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px var(--text-main);
  position: relative;
  text-align: left;
}

.education-card h3 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.education-card p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #444;
}



/* Skill Grid */
.skills-section {
  padding: 4rem 10%;
  color: var(--text-main);
}

.skills-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skills-grid .skill {
  background: linear-gradient(135deg, #d9afd9, #97d9e1);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 8px var(--text-main);
}

.skills-grid .skill img {
  max-width: 40px;
  margin-bottom: 10px;
}

.skills-grid .skill h3 {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Skill Progress Bars */
.skill-bar {
  margin: 1rem 0;
}

.skill-bar p {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.skill-bar .bar {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  height: 10px;
}

.skill-bar .bar span {
  display: block;
  height: 10px;
  background: var(--accent);
  width: 0;
  animation: fillBar 2s forwards;
}

@keyframes fillBar {
  to {
    width: 90%;
  }
}

/* Typing Effect */
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/*project gruid */
.projects-section {
  padding: 4rem 10%;
  color: #222;
  text-align: center;
}

.projects-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: left;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project {
  background: var(--bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px var(--text-main);
}

.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project h3 {
  margin: 1rem 0 0.5rem;
  color: var(--text-main);
  font-size: 1.1rem;
}

.project h2
{
  margin-bottom: 2rem;
  color: var(--text-main);
  font-size: 2rem;
}

.project p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--text-main);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 2rem;
}

.modal-content {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;

  max-width: 800px;         /*wider horizontally */
  width: 90%;
  max-height: 90vh;         /* allow scrolling if content overflows */
  overflow-y: auto;         /* enable vertical scroll */

  position: relative;
  box-shadow: 0 8px 20px var(--text-main);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}


.modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.modal-content .btn {
  margin: 0.5rem;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-content .close:hover {
  color: var(--accent);
}


/*scrollbar styling for better appearance */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}


/* Contact Section */
.contact-section {
  padding: 4rem 10%;
  color: var(--text-main);
}

.form-container {
  max-width: 600px;
  margin: auto;
  background: var(--bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 16px var(--text-main);
}

.form-container h2 {
  text-align: left;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.input-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--text-main);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-box textarea {
  resize: vertical;
  height: 120px;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: var(--text-muted);
}

.input-box .icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--text-main);
  font-size: 1.2rem;
}

.contact-section .btn {
  display: block;
  padding: 20px;
  border-radius: 30px;
  background-color: var(--text-main);
  color: var(--line);
  font-weight: 600;
  text-align: left;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-section .btn:hover {
  background-color: var(--accent);
}

/* Modal Popup */

.modal {
  position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}



@media (max-width: 768px) {
  .education-card {
    text-align: left;
  }
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
