@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Karla:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #F7F6F3;
  --navy: #1B3358;
  --navy-mid: #254570;
  --navy-light: #EEF2F8;
  --text: #1A1A1A;
  --muted: #767676;
  --border: #E4E3DF;
  --white: #FFFFFF;
  --card: #FFFFFF;
  --tag-bg: #EEF2F8;
  --coming-soon: #F4F3F0;
  --glow: rgba(27, 51, 88, 0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

* { cursor: none !important; }

.cursor {
  width: 12px; height: 12px;
  background: var(--navy);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}

.cursor.hover { width: 20px; height: 20px; }
.cursor-ring.hover { width: 52px; height: 52px; opacity: 0.2; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  transition: box-shadow 0.3s ease;
}

nav.scrolled { box-shadow: 0 4px 24px rgba(27, 51, 88, 0.08); }

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: var(--navy); text-decoration: none;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.3s ease;
}
.nav-logo:hover { letter-spacing: 0.02em; }

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

.nav-links a {
  font-family: 'Karla', sans-serif;
  font-size: 0.92rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative; padding-bottom: 2px;
}

.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; width: 0; height: 1.5px;
  background: var(--navy);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hero {
  padding: 100px 5vw 80px;
  max-width: 1100px; margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-light);
  padding: 5px 12px; border-radius: 2px; margin-bottom: 28px;
  transition: background 0.3s, letter-spacing 0.3s;
}
.hero-tag:hover { background: #dce8f5; letter-spacing: 0.18em; }

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 28px;
}

.hero h1 span {
  color: var(--navy); display: inline-block;
  transition: letter-spacing 0.4s ease;
}
.hero h1 span:hover { letter-spacing: -0.01em; }

.hero-intro {
  font-size: 1.15rem; font-weight: 300;
  color: var(--muted); max-width: 600px;
  line-height: 1.75; margin-bottom: 48px;
}

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

.btn-primary {
  display: inline-block; background: var(--navy); color: var(--white);
  text-decoration: none; font-family: 'Karla', sans-serif;
  font-size: 0.9rem; font-weight: 500; padding: 13px 28px;
  border-radius: 3px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.01em; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block; background: transparent; color: var(--navy);
  text-decoration: none; font-family: 'Karla', sans-serif;
  font-size: 0.9rem; font-weight: 500; padding: 13px 28px;
  border-radius: 3px; border: 1.5px solid var(--navy);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.01em;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }
.btn-secondary:active { transform: translateY(0); }

.divider { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 5vw; border: none; border-top: 1px solid var(--border); }

.section { max-width: 1100px; margin: 0 auto; padding: 80px 5vw; animation: fadeUp 0.7s ease both; }

.section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; display: block; }

.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; color: var(--text); margin-bottom: 16px; line-height: 1.15; }

.section-body { font-size: 1.05rem; color: var(--muted); max-width: 640px; line-height: 1.75; font-weight: 300; }

.skills-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

.skill-pill {
  font-size: 0.82rem; font-weight: 500;
  color: var(--navy); background: var(--navy-light);
  padding: 6px 14px; border-radius: 2px; letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.skill-pill:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 12px var(--glow); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 52px; }

.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none; color: inherit; display: block;
}
.project-card:not(.coming-soon):hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 48px rgba(27, 51, 88, 0.12); border-color: rgba(27, 51, 88, 0.2); }

.project-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-light) 0%, #d8e4f0 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; transition: filter 0.3s ease;
}
.project-card:not(.coming-soon):hover .project-img { filter: brightness(0.95); }

.project-img::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(27,51,88,0.04) 20px, rgba(27,51,88,0.04) 21px);
}
.project-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(27,51,88,0.06) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:not(.coming-soon):hover .project-img::after { opacity: 1; }

.project-img-label { font-family: 'Syne', sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); opacity: 0.6; position: relative; z-index: 1; }

.project-body { padding: 24px 26px 28px; }

.project-meta { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }

.project-title { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 10px; line-height: 1.25; transition: color 0.2s; }
.project-card:not(.coming-soon):hover .project-title { color: var(--navy); }

.project-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.65; font-weight: 300; margin-bottom: 18px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tag { font-size: 0.74rem; font-weight: 500; color: var(--navy); background: var(--tag-bg); padding: 4px 10px; border-radius: 2px; letter-spacing: 0.01em; transition: background 0.2s, color 0.2s, transform 0.2s; }
.tag:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.project-card.coming-soon { background: var(--coming-soon); border-style: dashed; cursor: default; pointer-events: none; opacity: 0.75; }
.project-card.coming-soon .project-img { background: linear-gradient(135deg, #ECEAE5 0%, #E0DDD7 100%); }

.coming-soon-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--navy); padding: 4px 10px; border-radius: 2px; margin-bottom: 10px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; margin-top: 52px; }

.contact-info h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.contact-info p { font-size: 0.95rem; color: var(--muted); font-weight: 300; line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); transition: letter-spacing 0.2s; }
.form-group:focus-within label { letter-spacing: 0.1em; }

.form-group input, .form-group textarea {
  font-family: 'Karla', sans-serif; font-size: 0.95rem;
  color: var(--text); background: var(--white);
  border: 1.5px solid var(--border); border-radius: 3px;
  padding: 12px 14px; outline: none; resize: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 51, 88, 0.08); transform: translateY(-1px); }
.form-group textarea { min-height: 140px; }

.form-submit {
  font-family: 'Karla', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--white); background: var(--navy); border: none; border-radius: 3px;
  padding: 14px 28px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.01em; align-self: flex-start;
  position: relative; overflow: hidden;
}
.form-submit::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1); transform: translateX(-100%); transition: transform 0.3s ease; }
.form-submit:hover::before { transform: translateX(0); }
.form-submit:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }
.form-submit:active { transform: translateY(0); }

.form-success { display: none; background: var(--navy-light); border: 1.5px solid var(--navy); border-radius: 4px; padding: 18px 22px; font-size: 0.95rem; color: var(--navy); font-weight: 500; animation: fadeUp 0.4s ease both; }

footer { border-top: 1px solid var(--border); padding: 36px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.footer-name { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; transition: letter-spacing 0.3s; }
.footer-name:hover { letter-spacing: 0.04em; }

.footer-note { font-size: 0.82rem; color: var(--muted); }

.page-header { padding: 72px 5vw 56px; max-width: 1100px; margin: 0 auto; border-bottom: 1px solid var(--border); animation: fadeUp 0.6s ease both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.projects-grid .project-card:nth-child(1) { animation: fadeUp 0.5s 0.1s ease both; }
.projects-grid .project-card:nth-child(2) { animation: fadeUp 0.5s 0.2s ease both; }
.projects-grid .project-card:nth-child(3) { animation: fadeUp 0.5s 0.3s ease both; }
.projects-grid .project-card:nth-child(4) { animation: fadeUp 0.5s 0.4s ease both; }

.skills-strip .skill-pill:nth-child(1)  { animation: fadeUp 0.4s 0.05s ease both; }
.skills-strip .skill-pill:nth-child(2)  { animation: fadeUp 0.4s 0.10s ease both; }
.skills-strip .skill-pill:nth-child(3)  { animation: fadeUp 0.4s 0.15s ease both; }
.skills-strip .skill-pill:nth-child(4)  { animation: fadeUp 0.4s 0.20s ease both; }
.skills-strip .skill-pill:nth-child(5)  { animation: fadeUp 0.4s 0.25s ease both; }
.skills-strip .skill-pill:nth-child(6)  { animation: fadeUp 0.4s 0.30s ease both; }
.skills-strip .skill-pill:nth-child(7)  { animation: fadeUp 0.4s 0.35s ease both; }
.skills-strip .skill-pill:nth-child(8)  { animation: fadeUp 0.4s 0.40s ease both; }
.skills-strip .skill-pill:nth-child(9)  { animation: fadeUp 0.4s 0.45s ease both; }
.skills-strip .skill-pill:nth-child(10) { animation: fadeUp 0.4s 0.50s ease both; }

@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } .projects-grid { grid-template-columns: 1fr; } .nav-links { gap: 1.5rem; } .cursor, .cursor-ring { display: none; } }
@media (max-width: 480px) { .nav-links { gap: 1rem; } .nav-links a { font-size: 0.82rem; } }
