/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
  color: #222;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Dark mode */
body.dark-mode {
  background: linear-gradient(135deg, #181a1b 0%, #232526 100%);
  color: #f8fafc;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background 0.3s;
}
body.dark-mode header {
  background: #232526;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #0077ff;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
.nav-links a:hover::after {
  width: 100%;
}
.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: color 0.2s;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #0077ff 0%, #00c6ff 100%);
  color: #fff;
  position: relative;
  padding-top: 80px;
}
.hero-content {
  text-align: center;
  max-width: 600px;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-title .highlight {
  color: #00c6ff;
}
.hero-subtitle {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}
.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #fff;
  color: #0077ff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.cta-btn:hover {
  background: #0077ff;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s;
}
.scroll-to-top:hover {
  background: #005bb5;
}

/* About Section */
.about-section {
  background: #f8fafc;
  color: #222;
  padding: 100px 0 60px 0;
}
body.dark-mode .about-section {
  background: #232526;
  color: #f8fafc;
}
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}
.about-content {
  max-width: 500px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
}
.skill-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Projects Section */
.projects-section {
  background: #fff;
  color: #222;
  padding: 100px 0 60px 0;
}
body.dark-mode .projects-section {
  background: #181a1b;
  color: #f8fafc;
}
.projects-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
body.dark-mode .project-card {
  background: #232526;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.project-link {
  margin-top: auto;
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.project-link:hover {
  color: #005bb5;
}
.tech-stack {
  font-size: 0.95rem;
  color: #555;
}
body.dark-mode .tech-stack {
  color: #b0b8c1;
}

/* Contact Section */
.contact-section {
  background: #e0e7ef;
  color: #222;
  padding: 100px 0 60px 0;
}
body.dark-mode .contact-section {
  background: #232526;
  color: #f8fafc;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid #b0b8c1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #181a1b;
  color: #f8fafc;
  border: 1px solid #444;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #0077ff;
  outline: none;
}
.submit-btn {
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.submit-btn:hover {
  background: #005bb5;
  transform: translateY(-2px) scale(1.04);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.social-links a {
  font-size: 1.6rem;
  color: #0077ff;
  transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
  color: #005bb5;
  transform: scale(1.15);
}

.contact-details {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  padding: 1.2rem 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 1.08rem;
  color: #222;
  text-align: left;
}
body.dark-mode .contact-details {
  background: #232526;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.contact-details p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
}
.contact-details p:last-child {
  margin-bottom: 0;
}
.contact-details strong {
  min-width: 90px;
  font-weight: 600;
}

/* Footer */
footer {
  background: #181a1b;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 40px;
}
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.footer-social-links a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-social-links a:hover {
  color: #00c6ff;
  transform: scale(1.12);
}

/* Resume Section */
.resume-section {
  background: #fff;
  color: #222;
  padding: 100px 0 60px 0;
  text-align: center;
}
body.dark-mode .resume-section {
  background: #181a1b;
  color: #f8fafc;
}
.resume-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}
.resume-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.resume-preview {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  border: 1.5px solid #e0e7ef;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
body.dark-mode .resume-preview {
  background: #232526;
  border: 1.5px solid #333;
}
.resume-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  margin-top: 1rem;
}
.resume-btn:hover {
  background: #005bb5;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 800px) {
  .resume-preview embed {
    height: 350px !important;
  }
}
@media (max-width: 500px) {
  .resume-preview embed {
    height: 220px !important;
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-container {
    gap: 1.2rem;
  }
  .navbar {
    padding: 0.7rem;
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
} 