@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Source+Sans+Pro:wght@400;600;700&family=IBM+Plex+Sans:wght@400;600;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --primary-color: #1ecbe1;
  --secondary-color: #1a2a4d;
  --tertiary-color: #4da3ff;
  --accent-color: #fbc02d;
  --background: #f8fafc;
  --section-bg: #fff;
  --section-bg-color: #fff;
  --text-color: #1a2a4d;
  --light-text: #888;
  --border-radius: 10px;
  --box-shadow: 0 4px 24px rgba(20,40,90,0.10);
  --font-main: 'IBM Plex Sans', Arial, sans-serif;
  --font-montserrat: 'Montserrat', Arial, sans-serif;
  --font-inter: 'Inter', Arial, sans-serif;
  --font-source: 'Source Sans Pro', Arial, sans-serif;
  /* Section/heading variables */
  --section-heading-size: 2rem;
  --section-heading-weight: 700;
  --section-heading-color: var(--text-color);
  --section-heading-font: var(--font-montserrat);
  --section-heading-margin: 1.5rem;
  --section-border-color: var(--primary-color);
  --section-padding: 18px 160px 18px 160px;
  --section-padding-mobile: 15px 100px 15px 100px;
  --section-radius: var(--border-radius);
  --section-shadow: var(--box-shadow);
  --body-font: var(--font-main);
  --body-bg: var(--background);
  --body-color: #222;
  --body-font-size: 1.1rem;
  --section-icon-color: #1a2a4d;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--section-bg);
  color: #222;
  font-size: var(--body-font-size);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

.landing-bg {
  background: url('Assets/Teck Picture.png') center center/cover no-repeat fixed;
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 30, 50, 0.7);
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  z-index: 100;
  background: rgba(24, 28, 38, 0.92);
  border-radius: 0;
  box-shadow: var(--box-shadow);
}
.nav-content {
  display: flex;
  align-items: center;
  height: 80px;
  width: 100%;
}
.logo-home-btn {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 36px;
}
.logo-home-btn img {
  height: 48px;
  width: 144px;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, filter 0.2s;
}
.logo-home-btn:hover img {
  box-shadow: 0 4px 16px rgba(77,163,255,0.18);
  filter: brightness(1.15);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.hamburger-line {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0 30px 0 100px;
  display: flex;
  gap: 36px;
  justify-content: flex-end;
  height: 80px;
  align-items: center;
  flex: 1;
}
.nav li {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0;
}
.nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  background: none;
}
.nav a:hover {
  color: var(--tertiary-color);
  background: none;
}
.main-content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: calc(100vh - 80px - 20px);
  position: relative;
  z-index: 1;
  padding-top: 80px;
}
.intro {
  flex: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 15%;
  padding-bottom: 0;
  position: relative;
  height: 100%;
}
.intro h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.intro p {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 30px 0;
  color: #b3d8ff;
}

#typewriter {
  min-height: 2.5rem;
  height: 2.5rem;
  display: inline-block;
  overflow: hidden;
}

.contact-card {
  flex: 1;
  background: rgba(24, 28, 38, 0.92);
  border-radius: 0;
  padding: 48px 30px 48px 30px;
  margin-left: 60px;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  min-width: 320px;
  max-width: 360px;
  height: calc(100vh - 80px - 20px);
  justify-content: center;
  padding-top: 12px;
}
.contact-card img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 28px;
  background: #fff;
  align-self: center;
}
.contact-card .name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #4da3ff;
  text-align: center;
  width: 100%;
  padding-left: 0;
}
.contact-card .desc-tags {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.contact-card .desc-tag {
  margin-bottom: 4px;
  line-height: 1.4;
}
.contact-card .desc-tag:last-child {
  margin-bottom: 0;
}
.contact-card .email, .contact-card .linkedin {
  font-size: 1.1rem;
  color: #b3d8ff;
  margin-bottom: 10px;
  word-break: break-all;
  text-align: left;
  width: 100%;
  padding-left: 18px;
}
.contact-card .linkedin {
  margin-bottom: 22px;
}
.contact-card .socials {
  display: flex;
  gap: 18px;
  margin: 18px 0 28px 0;
  align-self: center;
}
.contact-card .socials a {
  color: #4da3ff;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.contact-card .socials a:hover {
  color: #fff;
}
.contact-card .resume-btn {
  background: #1a2a4d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0;
  transition: all 0.3s ease;
  align-self: center;
  box-shadow: 0 4px 15px rgba(26, 42, 77, 0.3);
}
.contact-card .resume-btn:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 42, 77, 0.4);
}
/* Responsive Navigation */
@media (max-width: 1300px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 30px;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(24, 28, 38, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 40px 0 80px 0;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 9;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 10px 0;
    font-size: 1.2rem;
    display: block;
  }
  
  .nav-menu li:last-child {
    margin-bottom: 40px;
  }
  
  .nav-menu a {
    padding: 15px 30px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-menu a:hover {
    background: rgba(77, 163, 255, 0.1);
    color: #4da3ff;
  }

  .main-content {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    height: auto;
    min-height: auto;
  }
  .intro {
    padding-top: 120px;
    padding-bottom: 60px;
    justify-content: flex-start;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
  }
  .contact-card {
    margin-left: 0;
    margin-top: 0;
    height: auto;
    max-width: 95vw;
    border-radius: 0;
    align-self: center;
    margin: 0 auto;
    display: none !important;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    height: auto;
    min-height: auto;
  }
  .intro {
    padding-top: 120px;
    padding-bottom: 60px;
    justify-content: flex-start;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
  }
  .contact-card {
    margin-left: 0;
    margin-top: 0;
    height: auto;
    max-width: 95vw;
    border-radius: 0;
    align-self: center;
    margin: 0 auto;
    display: none !important;
  }
}


.font-inter {
  font-family: var(--font-inter);
}
.font-helvetica {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.font-source {
  font-family: var(--font-source);
}
.font-ibm {
  font-family: var(--font-main);
}
.font-montserrat {
  font-family: var(--font-montserrat);
}

.back-to-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1a2a4d;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(26, 42, 77, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.back-to-top:hover {
  background: #1ecbe1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 203, 225, 0.4);
}

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

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* Vertical Height Media Queries - Handle short screens */
@media (max-height: 800px) {
  .main-content {
    min-height: 100vh;
    height: auto;
    padding: 0;
  }
  
  .contact-card {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    padding: 30px 20px;
    margin-top: 80px;
    margin-bottom: 0;
  }
  
  .contact-card img {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
  }
  
  .intro h1 {
    font-size: 4rem;
    margin: 0 0 15px 0;
  }
  
  .intro p {
    font-size: 1.3rem;
  }
}

@media (max-height: 700px) {
  .main-content {
    padding: 0;
  }
  
  .contact-card {
    padding: 25px 20px;
    height: calc(100vh - 80px);
    margin-top: 80px;
    margin-bottom: 0;
  }
  
  .contact-card img {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }
  
  .intro h1 {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
  }
  
  .intro p {
    font-size: 1.2rem;
  }
}

@media (max-height: 600px) {
  .main-content {
    padding: 0;
  }
  
  .contact-card {
    padding: 20px 15px;
    height: calc(100vh - 80px);
    margin-top: 80px;
    margin-bottom: 0;
  }
  
  .contact-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 12px;
  }
  
  .intro h1 {
    font-size: 3rem;
    margin: 0 0 8px 0;
  }
  
  .intro p {
    font-size: 1.1rem;
  }
}

@media (max-height: 500px) {
  .main-content {
    flex-direction: row;
    padding: 0;
    overflow-y: auto;
  }
  
  .contact-card {
    padding: 15px 10px;
    height: calc(100vh - 80px);
    margin-top: 80px;
    margin-bottom: 0;
  }
  
  .contact-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }
  
  .intro h1 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
  }
  
  .intro p {
    font-size: 1rem;
  }
  
  .contact-card .name {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .contact-card .desc-tags {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .contact-card .socials {
    margin: 10px 0 15px 0;
    gap: 12px;
  }
  
  .contact-card .socials a {
    font-size: 1.2rem;
  }
  
  .contact-card .resume-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Accent line under each section title */
.about-section h2::after,
.education-section h2::after,
#education h2::after,
.experience-section h2::after,
.skills-section h2::after,
.projects-section h2::after,
.extracurricular-section h2::after,
.contact-section h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.7rem;
  background: var(--secondary-color);
  border-radius: 1px;
}

/* Scroll margin for anchor links to account for fixed navigation */
#about, #education, #experience, #skills, #projects, #extracurricular, #contact-section {
  scroll-margin-top: 120px;
}

/* Additional left padding for section content */
.about-section,
.education-section,
.experience-section,
.skills-section,
.projects-section,
.extracurricular-section,
.contact-section {
  padding-left: 160px;
}

/* Extra padding for experience section */
.experience-section {
  padding-left: 180px;
}

@media (max-width: 768px) {
  .about-section,
  .education-section,
  .experience-section,
  .skills-section,
  .projects-section,
  .extracurricular-section,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Extra padding for experience section on mobile */
  .experience-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Clean Scrollbar with Transparent Track */
::-webkit-scrollbar {
  width: 8px !important;
  background: transparent !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(24, 28, 38, 0.92) !important;
  border-radius: 6px !important;
  border: 2px solid transparent !important;
  background-clip: content-box !important;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(44, 48, 58, 0.92) !important;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 28, 38, 0.92) transparent;
}

/* Summary Button Styling */
.summary-btn {
  background: linear-gradient(135deg, #1ecbe1 0%, #1a2a4d 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 203, 225, 0.2);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.summary-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: 0.5s;
}

.summary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 203, 225, 0.3);
  background: linear-gradient(135deg, #1a2a4d 0%, #1ecbe1 100%);
}

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

.summary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(30, 203, 225, 0.2);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .summary-btn {
    background: linear-gradient(135deg, #1ecbe1 0%, #0f1a31 100%);
    box-shadow: 0 4px 15px rgba(30, 203, 225, 0.15);
  }
  
  .summary-btn:hover {
    background: linear-gradient(135deg, #0f1a31 0%, #1ecbe1 100%);
    box-shadow: 0 6px 20px rgba(30, 203, 225, 0.25);
  }
}
