/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  box-shadow: 0 12px 40px 0 rgba(31,38,135,0.18);
  transform: translateY(-4px) scale(1.02);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px 0 rgba(31,38,135,0.06);
  z-index: 100;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 2rem;
  font-weight: bold;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #6366f1;
}

/* Hamburger menu styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle-bar {
  width: 28px;
  height: 3px;
  background: #6366f1;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, #6366f1 10%, transparent 70%),
              radial-gradient(circle at 70% 80%, #06b6d4 10%, transparent 70%);
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255,255,255,0.85);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 1.5rem;
  color: #6366f1;
  margin-bottom: 1.5rem;
}
.blinking {
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  to { opacity: 0; }
}
.hero-desc {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #6366f1;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.section-title p {
  color: #6366f1;
  font-size: 1.2rem;
}

/* About Section */
.about-section {
  padding: 6rem 0 2rem 0;
}
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.about-cards {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-card {
  text-align: center;
}
.about-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
}

/* Skills Section */
.skills-section {
  padding: 6rem 0 2rem 0;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.skill-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 24px;
}
.skill-bar span:first-child {
  flex: 1;
  font-weight: 500;
  min-width: 80px;
}
.bar {
  flex: 3;
  background: #e0e7ef;
  border-radius: 1rem;
  height: 18px;
  min-width: 100px;
  max-width: 300px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  margin: 0 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
}
.bar > div {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 1rem;
  transition: width 1s;
}
.skill-bar span:last-child {
  min-width: 36px;
  text-align: right;
  font-size: 1rem;
  color: #6366f1;
  font-weight: 600;
}
.skills-side {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.skills-tags span {
  background: #e0e7ef;
  color: #222;
  border-radius: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Education Section */
.education-section {
  padding: 6rem 0 2rem 0;
}
.education-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.education-details {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.edu-school {
  color: #06b6d4;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.edu-meta {
  color: #6366f1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.education-cv {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.education-cv .btn {
  margin-top: 1rem;
}

/* Interests Section */
.interests-section {
  padding: 6rem 0 2rem 0;
}
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.interest-card {
  text-align: center;
}
.philosophy {
  margin-top: 2rem;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Projects Section */
.projects-section {
  padding: 6rem 0 2rem 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  margin-bottom: 1rem;
}
.project-content {
  padding: 0.5rem 0;
}
.project-date {
  color: #06b6d4;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
}
.project-tags span {
  background: #e0e7ef;
  color: #222;
  border-radius: 0.75rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.more-projects {
  text-align: center;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0 2rem 0;
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-details {
  margin-top: 1rem;
  color: #6366f1;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.social-links a:hover {
  color: #06b6d4;
}
.contact-form {
  flex: 1;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row input {
  flex: 1;
}
.contact-form input, .contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e0e7ef;
  background: #f8fafc;
  font-size: 1rem;
  color: #222;
  transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid #6366f1;
  outline: none;
}
.contact-form button {
  align-self: flex-end;
}

/* Footer */
.footer {
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #e0e7ef;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-grid > div {
  flex: 1 1 220px;
}
.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-social a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #06b6d4;
}
.footer-bottom {
  text-align: center;
  color: #6366f1;
  font-size: 1rem;
  border-top: 1px solid #e0e7ef;
  padding-top: 1rem;
}
.heart {
  color: #ef4444;
  font-size: 1.2em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(99,102,241,0.10);
}
.btn-primary:hover {
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  transform: scale(1.05);
}
.btn-glass {
  background: rgba(255,255,255,0.5);
  color: #6366f1;
  border: 1px solid #e0e7ef;
}
.btn-glass:hover {
  background: #e0e7ef;
  color: #06b6d4;
}
.btn-gradient {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  color: #fff;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .about-grid, .skills-grid, .education-grid, .contact-grid, .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-content {
    padding: 2rem 1rem;
  }
}
@media (max-width: 600px) {
  .section-title h2 {
    font-size: 1.5rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .navbar {
    padding: 0.5rem 0;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .glass-card {
    padding: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .interests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem 0;
    display: none;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
}

/* Container padding for small screens */
@media (max-width: 500px) {
  .container {
    padding: 0 0.5rem;
  }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
} 