@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --bg-dark: #181c24; /* deep navy */
  --bg-light: #23283a;
  --accent: #2acfcf; /* elegant teal */
  --accent-alt: #1a6fa3; /* deep blue for subtle accents */
  --text-main: #f7f7fa; /* soft off-white */
  --text-secondary: #b3b8c5;
  --card-bg: #23283ad9;
  --border-radius: 18px;
  --transition: 0.4s cubic-bezier(0.4,0,0.2,1);
  --nav-bg: rgba(24, 28, 36, 0.72);
  --nav-bg-scrolled: rgba(24, 28, 36, 0.97);
  --nav-border: 1.5px solid #2acfcf44;
  --nav-shadow: 0 4px 24px 0 #0007;
}

[data-theme="light"] {
  --bg-dark: #f7f7fa;
  --bg-light: #fff;
  --accent: #1a6fa3;
  --accent-alt: #2acfcf;
  --text-main: #23283a;
  --text-secondary: #5a5a6e;
  --card-bg: #fffefcfa;
  --nav-bg: rgba(255,255,255,0.72);
  --nav-bg-scrolled: rgba(255,255,255,0.98);
  --nav-border: 1.5px solid #1a6fa344;
  --nav-shadow: 0 4px 24px 0 #1a6fa322;
}

body, .section, .project-card, .skill-category, .fixed-nav, nav, .logo, .hero, .hero-image img, .project-img, .project-content, .theme-toggle-btn, .social-icon {
  transition: background 0.5s, color 0.5s, border 0.5s, box-shadow 0.5s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px;
}

#bg-animation {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  border-bottom: var(--nav-border);
  z-index: 100;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 76px;
  height: 76px;
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), border 0.4s, border-radius 0.4s;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  margin-left: 1.2rem;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  margin: 0;
  padding: 0 40px;
  min-height: 76px;
  height: 76px;
  box-sizing: border-box;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-radius: 12px;
  padding: 4px 16px;
  transition: color 0.5s, background 0.5s;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition), font-weight 0.3s;
}

nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
  position: absolute;
  left: 0;
  bottom: -2px;
}

nav a:hover, nav a:focus {
  color: var(--accent);
}

nav a:hover::after, nav a:focus::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: 2rem;
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.social-icon {
  color: var(--accent);
  background: none;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  box-shadow: 0 1px 6px 0 #0001;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 2px 12px 0 var(--accent-alt)33;
}

.theme-toggle-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #0002;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.theme-toggle-btn:hover {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  color: #fff;
  box-shadow: 0 2px 16px 0 var(--accent)33;
}

/* Hero section layout fix for full height */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  background: none;
}

.hero {
  flex: 1 1 0;
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--accent);
}

/* Software Developer Engineer text color for both themes */
.hero h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2acfcf;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px #0002;
  letter-spacing: 1px;
  transition: color 0.5s;
}
[data-theme="light"] .hero h2 {
  color: #1a6fa3;
  text-shadow: 0 2px 8px #1a6fa322;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-image {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 #0004;
  border: 4px solid var(--accent);
  background: #23283a;
}

main {
  position: relative;
  z-index: 2;
  width: 100vw;
  padding: 0;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}

/* Each section covers the full viewport height and is vertically centered */
.section {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0 32px;
  transition: none;
  scroll-snap-align: start;
  width: 100vw;
  max-width: 100vw;
}

.section:hover {
  box-shadow: 0 8px 48px 0 #0005;
  transform: translateY(-4px) scale(1.01);
}

.section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.section p, .section ul {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Skills Section - horizontal scroll pills */
.skills-scroll {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  overflow-x: auto;
  width: 100vw;
  max-width: 100vw;
  padding: 24px 0 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}
.skills-scroll::-webkit-scrollbar {
  height: 8px;
}
.skills-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.skills-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.skills-label {
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.7em;
  font-size: 1.08rem;
  letter-spacing: 1px;
  background: var(--bg-light);
  border-radius: 16px;
  padding: 7px 18px;
  box-shadow: 0 1px 6px 0 #0001;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--accent)11;
  color: var(--text-main);
  border-radius: 16px;
  padding: 7px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-right: 0.3em;
  box-shadow: 0 1px 6px 0 #0001;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
  cursor: default;
}
.skill-pill:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-top: 24px;
}

.project-card {
  background: #23283ad9;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 #0002;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.project-card:hover {
  box-shadow: 0 8px 32px 0 #0005;
  transform: translateY(-4px) scale(1.03);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #181c24;
  border-bottom: 2px solid var(--accent);
}

.project-content {
  padding: 22px 18px 18px 18px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-content h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Scroll transitions */
[data-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--transition), transform 1.2s var(--transition);
}
[data-scroll].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact section larger and centered */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  min-height: 340px;
  width: 100vw;
  max-width: 100vw;
  padding: 0 24px;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 90vw;
  min-width: 0;
  background: var(--bg-light);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 #0003;
  padding: 40px 32px;
  margin: 0 auto;
}
#contact-form input, #contact-form textarea {
  background: var(--card-bg);
  border: 1px solid #353a5a;
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 1.08rem;
  transition: border var(--transition), box-shadow var(--transition);
  resize: none;
}
#contact-form textarea {
  min-height: 100px;
}
#contact-form button {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
#contact-form button:hover {
  background: var(--accent-alt);
  color: #fff;
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 32px 0 18px 0;
  z-index: 2;
  position: relative;
}

.hero h1 span, .section h2, .project-content h3, .skill-category h3 {
  color: var(--accent);
}

.hero h2 {
  color: var(--accent-alt);
}

.skill-category li:hover {
  background: var(--accent-alt);
  color: var(--bg-dark);
}

.project-card:hover {
  box-shadow: 0 8px 32px 0 #0005;
  transform: translateY(-4px) scale(1.03);
}

.project-img {
  border-bottom: 2px solid var(--accent);
}

/* Projects Section - horizontal scrollable cards */
.projects-cards-scroll {
  display: flex;
  flex-direction: row;
  gap: 2.8rem;
  overflow-x: auto;
  width: 100vw;
  max-width: 100vw;
  padding: 40px 0 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}
.projects-cards-scroll::-webkit-scrollbar {
  height: 8px;
}
.projects-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.project-card {
  background: var(--bg-light);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 #0002;
  min-width: 380px;
  max-width: 520px;
  width: 95vw;
  min-height: 70vh;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid var(--accent)22;
  transition: box-shadow 0.3s, transform 0.3s, background 0.5s;
  flex-shrink: 0;
  overflow: hidden;
}
.project-card:hover {
  box-shadow: 0 8px 32px 0 var(--accent)33;
  transform: translateY(-4px) scale(1.04);
  /* No background color or transparency change on hover */
}
.project-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #181c24;
  border-bottom: 2px solid var(--accent);
}
.project-content {
  padding: 32px 24px 18px 24px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.project-content h3 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1.35rem;
}
.project-content p {
  color: var(--text-secondary);
  font-size: 1.13rem;
}

/* Skills Section - horizontal scrollable cards */
.skills-cards-scroll {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  overflow-x: auto;
  width: 100vw;
  max-width: 100vw;
  padding: 32px 0 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}
.skills-cards-scroll::-webkit-scrollbar {
  height: 8px;
}
.skills-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.skill-card {
  background: var(--bg-light);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 #0002;
  min-width: 340px;
  max-width: 420px;
  width: 95vw;
  padding: 44px 38px 38px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid var(--accent)22;
  transition: box-shadow 0.3s, transform 0.3s, background 0.5s;
  flex-shrink: 0;
  text-align: left;
}
.skill-card:hover {
  box-shadow: 0 8px 32px 0 var(--accent)33;
  transform: translateY(-4px) scale(1.04);
  /* No background color or transparency change on hover */
}
.skill-card-header {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 0.7em;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent)33;
  padding-bottom: 10px;
  width: 100%;
  line-height: 1.3;
  text-align: left;
}
.skill-svg {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5em;
}
.skill-points {
  list-style: disc inside;
  color: var(--text-secondary);
  font-size: 1.13rem;
  margin: 1.1em 0 0 0.2em;
  padding: 0 0 0 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  line-height: 1.7;
  text-align: left;
}

/* Make skill cards fill section height */
.skills-cards-scroll {
  align-items: stretch;
  height: 70vh;
  min-height: 420px;
}
.skill-card {
  min-height: 100%;
  max-height: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 12px;
    width: 100vw;
  }
  .nav-actions {
    margin-left: 0;
    gap: 0.8rem;
  }
  .fixed-nav {
    border-radius: 0 0 16px 16px;
    min-height: 64px;
    height: 64px;
  }
  .hero-container {
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
    min-height: 100vh;
    height: 100vh;
  }
  .hero {
    text-align: center;
    align-items: center;
  }
  .hero-image {
    justify-content: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 95vw;
  }
  .skill-category {
    min-width: 0;
    max-width: 100vw;
    width: 100%;
    padding: 24px 12px 18px 12px;
  }
  .skills-scroll {
    gap: 1.2rem;
    padding: 12px 0 0 0;
  }
  .skills-label, .skill-pill {
    font-size: 0.98rem;
    padding: 6px 12px;
  }
  .contact-container {
    height: auto;
    min-height: 0;
    padding: 0 6px;
  }
  #contact-form {
    padding: 18px 6px;
    min-width: 0;
    max-width: 98vw;
  }
  .skills-cards-scroll {
    gap: 1.1rem;
    padding: 18px 0 0 0;
  }
  .skill-card {
    min-width: 220px;
    max-width: 90vw;
    padding: 18px 8px 14px 8px;
  }
  .skill-card-header {
    font-size: 1.01rem;
  }
  .skill-points {
    font-size: 0.97rem;
  }
  .projects-cards-scroll {
    gap: 1.3rem;
    padding: 22px 0 0 0;
    height: auto;
    min-height: 220px;
    margin-bottom: 2rem;
  }
  .project-card {
    min-width: 240px;
    max-width: 95vw;
    min-height: 320px;
    max-height: 90vh;
  }
  .project-img {
    height: 120px;
  }
  .project-content {
    padding: 16px 8px 10px 8px;
  }
  .section, .hero-container {
    min-height: unset;
    height: auto;
    padding: 32px 0 32px 0;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .fixed-nav {
    position: static;
    box-shadow: none;
    border-radius: 0;
    min-height: 60px;
    height: auto;
    padding: 0 0 0 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .burger {
    display: flex;
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 9999;
    background: var(--nav-bg-scrolled);
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 #0002;
    padding: 4px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    flex-direction: column;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 8px 32px 0 #0005;
    border-radius: 0 0 18px 18px;
    z-index: 9998;
    gap: 0;
    padding: 0.5rem 0 1rem 0;
    animation: fadeInNav 0.3s;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--accent)22;
    transition: background 0.2s, color 0.2s;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-actions {
    margin-left: 0;
    gap: 0.8rem;
  }
  .hero-container {
    flex-direction: column;
    gap: 18px;
    padding: 18px 0 0 0;
  }
  .hero-image img {
    width: 140px;
    height: 140px;
  }
  .projects-grid {
    gap: 1rem;
  }
  .project-img {
    height: 120px;
  }
} 

@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
} 
