:root {
  --bg: #161513;
  --text: #e8e8ea;
  --muted: #a0a1a8;
  --accent: #8a2be2;
  --primary: #00d0ff;
  --surface: #151518;
  --outline: #ff7b45;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(13, 13, 15, .9), rgba(13, 13, 15, .6) 60%, rgba(13, 13, 15, 0));
  backdrop-filter: saturate(140%) blur(6px)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700
}

.brand-logo {
  height: 92px;
  width: 100px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease
}

.brand-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 208, 255, 0.3)
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center
}

.nav a:hover {
  color: var(--text)
}

.nav a:first-of-type {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 500
}

.nav a:first-of-type:hover {
  color: #26C5F3
}

.nav-icon {
  height: 24px;
  width: 24px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease
}

.nav-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 208, 255, 0.4)
}

/* Footer icons (LinkedIn, Behance) */
.footer-icon {
  height: 24px;
  width: 24px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 12px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
}

.footer-icon-link:hover .footer-icon,
.footer-right a:hover > .footer-icon {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 208, 255, 0.4);
}

.footer-signature {
  height: 64px;
  margin-bottom: 6px;
  display: block;
  width: auto;
  /* add slight drop shadow and contrast to make the signature appear bolder */
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25)) contrast(1.05) saturate(1.05);
}

.footer-email {
  margin-top: 6px;
}

.footer-email a {
  color: var(--muted);
  text-decoration: none;
}

.footer-email a:hover {
  color: var(--text);
}

.footer-email-link {
  color: #00B6FF;
  font-weight: 700;
  text-decoration: none;
  transition: text-shadow 180ms ease, filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.footer-email-link:hover {
  text-shadow: 0 0 10px rgba(0,182,255,0.95);
  filter: drop-shadow(0 0 8px rgba(0,182,255,0.6));
  transform: translateY(-2px);
  opacity: 1;
}

.hero {
  padding: 64px 0 40px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  justify-items: stretch;
  min-height: 60vh;
}

.hero-photo {
  justify-self: center;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.hero-photo img {
  width: 376px;
  height: 376px;
  object-fit: cover;
  border-radius: 0;
  border: none
}

.hero-copy {
  width: 640px;
  height: 270px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.kicker {
  font-weight: 600;
  color: #cfefff;
  letter-spacing: .2px
}

.kicker .accent {
  color: #00d0ff;
  font-weight: 800
}

.title {
  font-size: 40px;
  margin: 10px 0 6px;
  font-weight: 700
}

.name {
  color: #26C5F3;
  text-shadow: 0 0 4px #26C5F3
}

.subtitle {
  color: var(--muted);
  margin: 0 0 10px;
}

.subtitle .accent {
  color: var(--accent);
  font-weight: 600
}

.bio {
  margin: 14px 0 22px;
  color: #cfcfe8;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02));
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(38, 197, 243, 0.2);
  width: 500px;
  height: 200px;
}

.quote-mark {
  font: 24px 'Roboto Flex', sans-serif;
  font-weight: 800;
  color: var(--accent);
  margin-right: 8px;
  line-height: 1.6;
  hanging-punctuation: first;
  text-indent: -0.2em;
  display: inline-block
}

.cta-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.011em;
  text-align: center
}

.btn.primary {
  background: #ffffff;
  color: #161513;
  width: 200px;
  height: 56px;
  border-radius: 24px;
  border: 4px solid #26C5F3;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.011em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 64px
}

.btn.primary:hover {
  transform: translateY(-1px);
  border: 4px solid #ffffff;
  background: linear-gradient(-65deg, #B429F9, #26C5F3);
  color: #ffffff
}

#resumeBtn {
  color: #ffffff;
  border: 2px solid #FF7237;
  height: 56px;
  width: 200px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  border-radius: 24px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#resumeBtn:hover {
  border: 2px solid transparent;
  color: #26C5F3;
}

#resumeBtn:hover svg,
#resumeBtn:hover img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(1.2) contrast(1.2);
}

#work {
  display: none;
}

.section.container h2 {
  color: #26C5F3;
}

/* My WORKS section styles */
#my-works {
  margin-top: 120px;
}
.works-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 18px;
  width: 100%;
}


.work-item {
  width: 100%;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  align-items: stretch;
}

.work-link {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(38,197,243,0.08);
}

.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(38,197,243,0.06);
}

.work-thumb {
  flex: 0 0 280px; /* fixed thumbnail column */
  width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: stretch;
}

.work-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(38,197,243,0.1);
}

.work-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  flex-grow: 1;
}

.work-content h3 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.3;
  flex: 0 0 180px; /* fixed-ish column for title */
}

.work-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1 1 auto; /* description takes remaining space */
}

/* Projects section styles */
#projects {
  margin-top: 120px;
}

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

.project-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 28px;
  border-radius: 12px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-link:hover {
  transform: translateY(-4px);
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(38,197,243,0.06);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.project-content h3 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  line-height: 1.3;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .work-thumb {
    flex: 0 0 240px;
    width: 240px;
  }
  
  .work-content h3 {
    flex: 0 0 160px;
    font-size: 18px;
  }
  
  .work-content p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .works-grid {
    gap: 24px;
    margin-top: 24px;
  }
  
  .work-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  
  .work-link {
    flex-direction: column;
    gap: 16px;
  }
  
  .work-thumb {
    width: 100%;
    height: auto;
    min-height: 200px;
    flex: none;
    object-fit: cover;
  }
  
  .work-content {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .work-content h3 {
    flex: none;
    font-size: 18px;
  }
  
  .work-content p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .works-grid {
    gap: 20px;
    margin-top: 20px;
  }
  
  .work-item {
    padding: 14px;
    gap: 14px;
  }
  
  .work-thumb {
    min-height: 180px;
  }
  
  .work-content h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .works-grid {
    gap: 16px;
    margin-top: 16px;
  }
  
  .work-item {
    padding: 12px;
    gap: 12px;
  }
  
  .work-link {
    gap: 12px;
  }
  
  .work-thumb {
    min-height: 160px;
    border-radius: 6px;
  }
  
  .work-content h3 {
    font-size: 16px;
  }
  
  .work-content p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .section.container h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 16px;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  
  .nav {
    gap: 16px;
  }
  
  .nav a {
    margin-left: 0;
  }
  
  .nav a:last-of-type {
    margin-left: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-photo {
    order: 1;
    margin-bottom: 0;
  }
  
  .hero-photo img {
    width: 280px;
    height: 280px;
  }
  
  .hero-copy {
    order: 2;
    width: 100%;
    max-width: 100%;
    height: auto;
    align-items: center;
  }
  
  .bio {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 16px;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 98%;
    padding: 0 12px;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .hero-photo img {
    width: 240px;
    height: 240px;
  }
  
  .title {
    font-size: 28px;
  }
  
  .bio {
    padding: 12px;
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .brand-logo {
    height: 60px;
    width: 65px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .hero-photo img {
    width: 320px;
    height: 320px;
  }
  
  .hero-copy {
    width: 100%;
    max-width: 500px;
  }
  
  .bio {
    width: 100%;
    max-width: 100%;
  }
}

/* Blog styles */
.blog-main {
  padding: 40px 0;
}

.blog-header {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  align-items: flex-start;
}

.blog-thumbnail {
  flex: 0 0 280px;
  height: 200px;
  background: linear-gradient(135deg, #8a2be2, #00d0ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

.thumbnail-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
}

.thumbnail-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.thumbnail-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumbnail-category {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.thumbnail-theme {
  font-size: 16px;
  font-weight: 700;
  opacity: 1;
}

.blog-meta {
  flex: 1;
  padding-top: 8px;
}

.blog-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: var(--text);
  background: linear-gradient(135deg, #ffffff, #26C5F3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-info {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 0;
}

.blog-date,
.blog-read-time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.blog-date::before {
  content: "📅 ";
  margin-right: 4px;
}

.blog-read-time::before {
  content: "⏱️ ";
  margin-right: 4px;
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.blog-content h2 {
  color: #26C5F3;
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(38, 197, 243, 0.2);
}

.blog-content h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px 0;
}

.blog-content p {
  margin: 0 0 20px 0;
  color: #cfcfe8;
}

.blog-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-content li {
  margin: 8px 0;
  color: #cfcfe8;
}

.example {
  background: rgba(138, 43, 226, 0.1);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
}

.designer-note {
  background: linear-gradient(135deg, rgba(0, 208, 255, 0.1), rgba(138, 43, 226, 0.1));
  border: 1px solid rgba(0, 208, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  position: relative;
}

.designer-note h3 {
  color: #26C5F3;
  margin: 0 0 12px 0;
  font-size: 18px;
}

.designer-note p {
  margin: 0;
  font-style: italic;
  color: #ffffff;
}

/* Responsive blog styles */
@media (max-width: 768px) {
  .blog-header {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  
  .blog-thumbnail {
    flex: none;
    width: 100%;
    max-width: 320px;
    height: 180px;
  }
  
  .blog-title {
    font-size: 28px;
  }
  
  .blog-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 24px;
  }
  
  .blog-thumbnail {
    height: 160px;
  }
  
  .thumbnail-icon {
    font-size: 36px;
  }
}

/* Footer styles */
.site-footer {
  margin-top: 48px;
  padding: 28px 0 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.brand-small {
  font-weight: 700;
  margin: 0 0 6px 0;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a {
  color: var(--muted);
  margin-right: 18px;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: #00B6FF;
}

.footer-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
}

.footer-bottom {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.02);
  margin-top: 12px;
  display: flex;
  justify-content: center;
  color: var(--muted);
}

@media (max-width: 768px) {

  /* Footer layout */
  .site-footer {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 28px 0 18px;
  }

  .footer-inner {
    display: flex;
    align-items: center; /* vertically center everything */
    justify-content: space-between;
    gap: 24px;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer-center {
    text-align: center;
  }

  .footer-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
  }

  .footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  @media (max-width: 768px) {
    .footer-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 12px;
    }
    .footer-right {
      order: 3;
    }
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    display: flex;
    gap: 8px;
    align-items: center;
  }
}
