:root {
  --clr-hero: #2C4A3E;
  --clr-yellow: #F5C400;
  --clr-yellow-hover: #e0b300;
  --clr-orange: #E87722;
  --clr-footer: #B8830A;
  --clr-dark: #1C1C1C;
  --clr-white: #ffffff;
  --clr-light-border: #d8d8d8;
  --font: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--clr-dark);
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

.page-frame {
  width: 100%;
  min-height: 100vh;
  background: var(--clr-white);
  display: flex;
  flex-direction: column;
}

nav {
  background: #111111;
  flex-shrink: 0;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  min-height: 54px;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 0 26px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-yellow);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--clr-white);
  font-weight: 600;
  border-top: 2.5px solid var(--clr-yellow);
}

footer {
  background: #1A1209;
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-readmore {
  display: inline-block;
  background: var(--clr-yellow);
  color: var(--clr-dark);
  padding: 12px 32px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-readmore:hover {
  background: var(--clr-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-about {
  background: #fff;
  padding: 80px 60px;
  border-top: 1px solid var(--clr-light-border);
}

.home-about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
}

.home-about-img {
  width: 260px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.home-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.home-about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 16px;
}

.home-about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 28px;
}

.home-services {
  background: #DDE8F0;
  padding: 80px 60px;
  border-top: 1px solid var(--clr-light-border);
}

.home-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 48px;
  position: relative;
}

.home-section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-yellow);
  margin: 12px auto 0;
}

.home-section-title--light {
  color: var(--clr-white);
}

.home-section-title--light::after {
  background: var(--clr-yellow);
}

.services-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  flex: 0 0 calc(33.333% - 14px);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.service-card i {
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
}

.service-card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.sc--web  { background: #0A1929; border-bottom-color: #6BAED6; }
.sc--web i { color: #6BAED6; }

.sc--sec  { background: #1A0505; border-bottom-color: #E87722; }
.sc--sec i { color: #E87722; }

.sc--prog { background: #071A07; border-bottom-color: #74C476; }
.sc--prog i { color: #74C476; }

.sc--db   { background: #120E04; border-bottom-color: #F5C400; }
.sc--db i  { color: #F5C400; }

.sc--anim { background: #1A0A05; border-bottom-color: #FB923C; }
.sc--anim i { color: #FB923C; }

.home-projects {
  background: #162E1E;
  padding: 80px 60px;
}

.home-projects-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-project-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: inherit;
}

.home-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.home-project-info {
  padding: 16px;
  background: #fff;
  flex: 1;
}

.home-project-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 6px;
}

.home-project-info p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #666;
}

.home-cta {
  background: var(--clr-yellow);
  padding: 80px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-dark);
}

.home-cta p {
  font-size: 1rem;
  color: rgba(26, 26, 46, 0.75);
  margin-bottom: 8px;
}

.about-body {
  flex: 1;
  display: flex;
}

.about-left {
  width: 215px;
  flex-shrink: 0;
  border-right: 1px solid var(--clr-light-border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.about-bio {
  font-size: 0.76rem;
  line-height: 1.7;
  color: #444;
}

.about-main {
  flex: 1;
  padding: 24px 20px;
}

.section-header {
  background: var(--clr-yellow);
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--clr-dark);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.project-card {
  background: #2A1A0A;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.project-card span {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-no-img {
  aspect-ratio: 16 / 9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-no-img i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
}

.project-card--text {
  padding: 22px;
  gap: 10px;
}

.project-card--text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-yellow);
}

.project-card--text p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--clr-yellow);
  color: var(--clr-dark);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2px;
}

.skills-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}

.skills-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-yellow);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: calc(50% - 20px);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-white);
  background: var(--clr-dark);
  border-radius: 2px;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  text-align: left;
}

.btn-cv {
  display: inline-block;
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-cv:hover {
  background: #2A1F10;
}

.contact-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
}

.contact-left {
  border-right: 1px solid var(--clr-light-border);
  display: flex;
  flex-direction: column;
}

.get-in-touch-banner {
  background: var(--clr-hero);
  min-height: 185px;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.get-in-touch-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(180,220,160,0.2) 0%, transparent 50%);
}

.get-in-touch-banner::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -10px;
  right: -10px;
  height: 30px;
  background: var(--clr-white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.3);
}

.get-in-touch-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.social-links {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--clr-white);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clr-dark);
  transition: transform 0.15s;
}

.social-link:hover {
  transform: translateX(3px);
}

.social-icon-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.social-icon-wrap.email { background: #1A1209; color: white; }
.social-icon-wrap.li  { background: #0A66C2; color: white; }
.social-icon-wrap.ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: white; }

.social-handle {
  background: #f5f5f5;
  border: 1px solid var(--clr-light-border);
  padding: 7px 12px;
  font-size: 0.8rem;
  color: #444;
  border-radius: 2px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-right {
  padding: 28px 32px;
}

.contact-cta {
  background: var(--clr-orange);
  color: white;
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 28px;
  border-radius: 2px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field input,
.form-field textarea {
  border: 1.5px solid #ccc;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.84rem;
  outline: none;
  color: var(--clr-dark);
  background: var(--clr-white);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--clr-footer);
  box-shadow: 0 0 0 3px rgba(184, 131, 10, 0.2);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.btn-send {
  background: var(--clr-dark);
  color: white;
  border: none;
  padding: 12px 30px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.btn-send:hover {
  background: #2A1F10;
  transform: translateY(-1px);
}

.form-toast {
  background: #d4edda;
  color: #155724;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  border: 1px solid #c3e6cb;
  display: none;
}

.form-toast.show {
  display: block;
}

@media (max-width: 768px) {

  .nav-brand { padding: 0 16px; }
  .nav-links a { padding: 0 14px; font-size: 0.82rem; }

  .hero { padding: 40px 24px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p  { font-size: 0.95rem; }

  .home-about { padding: 48px 24px; }
  .home-about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-about-img {
    width: 140px;
    margin: 0 auto;
  }
  .home-about-text { text-align: center; }
  .home-about-text h2 { font-size: 1.4rem; }

  .home-services { padding: 48px 24px; }
  .services-grid  { flex-direction: column; gap: 14px; }
  .service-card   { flex: 0 0 auto; width: 100%; }

  .home-projects { padding: 48px 24px; }
  .home-projects-grid { grid-template-columns: 1fr; }

  .home-cta { padding: 48px 24px; }
  .home-cta h2 { font-size: 1.4rem; }
  .home-section-title { font-size: 1.25rem; }

  .about-body {
    flex-direction: column;
  }
  .about-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--clr-light-border);
    padding: 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }
  .profile-icon {
    width: 90px;
    flex-shrink: 0;
  }
  .about-bio {
    flex: 1;
    min-width: 180px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  
  .contact-body {
    grid-template-columns: 1fr;
  }
  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--clr-light-border);
  }
  .get-in-touch-banner { min-height: 130px; }
  .get-in-touch-banner h2 { font-size: 1.5rem; }
  .social-links { padding: 20px; }
  .contact-right { padding: 20px; }
}
