/* components.css — buttons, cards, typography components, grids */

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    box-shadow: 0 12px 24px -14px rgba(18, 51, 38, 0.72);
  }
  .btn-primary:hover {
    background: linear-gradient(135deg, #173d2e, #0f2a20);
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -16px rgba(18, 51, 38, 0.82);
  }
  .btn-outline {
    background: rgba(255, 250, 242, 0.72);
    border-color: var(--border-light);
    color: var(--text-primary);
  }
  .btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .btn-large {
    padding: 1rem 1.6rem;
    font-size: 1.1rem;
  }
  
  /* hero section */
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }
  .title-line {
    display: block;
  }
  .text-gradient {
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
  }
  .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 90%;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .proof-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
  }
  .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
  }
  .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  .hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 360px;
    isolation: isolate;
  }
  .hero-portrait {
    width: min(100%, 340px);
    max-height: 460px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 24px 24px rgba(17, 24, 39, 0.16));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.72) 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0, 0, 0, 0.72) 91%, transparent 100%);
  }
  
  /* skills */
  .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
  }
  .section-title {
    font-size: 2.5rem;
    font-weight: 650;
    letter-spacing: -0.02em;
  }
  .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
  }
  .skill-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.8rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 5px 12px rgba(0,0,0,0.02);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
  }
  .skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow);
  }
  
  /* experience highlight */
  .exp-highlight {
    padding: 2.5rem 2.8rem;
  }
  .exp-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  .exp-content {
    flex:2;
  }
  .exp-title {
    font-size: 1.9rem;
    margin: 0.5rem 0 1rem;
  }
  .exp-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  .client-highlight {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
  }
  .highlight-badge {
    background: var(--accent-soft);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 500;
    color: var(--accent);
  }
  .exp-visual {
    flex: 1;
    min-width: 280px;
  }
  .experience-panel {
    display: grid;
    gap: 1.05rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid var(--border-light);
  }
  .experience-row {
    padding-bottom: 1.05rem;
    border-bottom: 1px solid var(--border-light);
  }
  .experience-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .experience-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .experience-row strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }
  .experience-row p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .experience-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .experience-stack span {
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
  }
  
  /* projects grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .project-card {
    background: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    overflow: hidden;
  }
  .project-card:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(31, 77, 58, 0.2);
    transform: translateY(-4px);
  }
  .project-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eadfce;
  }
  .project-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(17, 24, 39, 0.5) 100%);
  }
  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
  }
  .project-card:hover .project-image {
    transform: scale(1.03);
  }
  .project-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
  }
  .project-body {
    padding: 1.4rem 1.4rem 1.5rem;
  }
  .project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .project-description {
    color: var(--text-secondary);
    line-height: 1.65;
  }
  .project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 1.2rem;
  }
  .stack-tag {
    background: var(--accent-soft);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
  }
  /* contact */
  .contact-card {
    padding: 3.5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
  }
  .contact-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-inline: auto;
  }
  .contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-block: 2rem 1rem;
  }
  .contact-note {
    color: var(--text-secondary);
  }
  
  /* toast */
  .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.25s;
    pointer-events: none;
    z-index: 999;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
