html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

main {
    box-sizing: border-box;
    overflow: auto;
    color:#111111;
    background-color: #F7F7F5;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    font-size: 20px;
    text-align: center;
}

section {
  padding: 100px 20px; 
  max-width: 1200px;
  margin: 0 auto; 
}

section:nth-child(even) {
  background-color: #ffffff;
}

section:nth-child(odd) {
  background-color: #f8f9fa; 
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 0;             
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border: 2px solid #746c6c;
    border-radius: 12px;      
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 20px;
    font-family: "DM Sans", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-optical-sizing: auto;
    border-color: #E5E5E5;
    border-style: solid;
}

.nav-group {
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    font-size: 20px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-optical-sizing: auto;
}
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-group {
        justify-content: center;
        width: 100%;
        gap: 15px;
        font-size: 16px;
    }
}

:root {
  --hero-bg: #ffffff;           
  --hero-text: #1d1d1f;           
  --hero-muted: #86868b;          
  --hero-primary: #0071e3;      
  --hero-primary-hover: #0077ed;     
  --hero-card-bg: #f5f5f7;         
  --hero-border: #d2d2d7;          
}

.hero {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding: 6rem 2rem;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;   
}

.hero-title .highlight {
  color: var(--hero-primary);
  display: inline;  
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--hero-primary);
  color: #ffffff !important;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--hero-primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--hero-text) !important;
  border: 1px solid var(--hero-border);
}

.btn-secondary:hover {
  background-color: #f5f5f7;
  text-decoration: none;
}

.hero-tagline {
  border-top: 1px solid var(--hero-border);
  padding-top: 1.5rem;
  max-width: 500px;
}

.editable-line {
  color: var(--hero-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  width: 100%;
}

.stack-container {
  position: relative;
  width: 290px;
  height: 360px;
  perspective: 1000px;
  margin: 0 auto !important;
}

.project-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--hero-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;                
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08), 
              0 5px 15px -5px rgba(0, 0, 0, 0.04);
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0.4s ease, opacity 0.4s ease;
}

.card-badge {
  align-self: flex-start;
  background: #ffffff;                
  color: var(--hero-primary);
  border: 1px solid var(--hero-border);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--hero-text);
  letter-spacing: -0.02em;
}

.project-card p {
  color: var(--hero-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-top: 0.75rem;
}

.card-footer {
  font-size: 0.85rem;
  color: var(--hero-primary);
  font-weight: 600;
  text-align: right;
}

.btn-view-all {
  display: block;
  width: fit-content;
  margin: 1rem auto 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
  color: var(--hero-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-top: 1rem;
  transform: translateX(29px);
}

.btn-view-all:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-left {
    align-items: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-right {
    display: none;
  }
}