/* ===== VARIABLES ===== */
:root {
  --navy:        #1B3A6B;
  --navy-mid:    #2D55A0;
  --navy-pale:   #EEF3FF;
  --navy-pale2:  #C8D4EE;
  --bg:          #F7F9FC;
  --white:       #FFFFFF;
  --text:        #1C2340;
  --text-mid:    #4A5675;
  --text-light:  #8A95B0;
  --border:      #E0E7F3;
  --radius-sm:   6px;
  --radius-md:   12px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Nunito', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  display: block;
}
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--navy-pale);
  color: var(--navy);
}

/* ===== SHARED COMPONENTS ===== */
.page-header {
  background: var(--navy);
  padding: 52px 48px;
  color: var(--white);
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: 40px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.page-header p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 580px;
  line-height: 1.65;
}
.page-body {
  padding: 48px 48px;
  background: var(--bg);
}
.section-title {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 8px;
}
.section-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 680px;
}
.img-placeholder {
  background: var(--navy-pale);
  border: 2px dashed var(--navy-pale2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  min-height: 220px;
}
.tag {
  background: var(--navy-pale);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  display: inline-block;
}
.tag-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--navy-mid); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.notice {
  background: var(--navy-pale);
  border: 1px solid var(--navy-pale2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
.notice1{
  margin-top:20px ;
}
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 22px;
  font-size: 13px;
}

/* ===== HOME ===== */
.home-hero {
  padding: 80px 48px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* .avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 28px;
  border: 5px solid var(--white);
  flex-shrink: 0;
} */
.avatar-pic {
  width: 300px;
  height: 300px;
  /* object-fit: contain; */
  border-radius: 50%;
  /* background: rgba(51, 105, 126, 0.654); */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 28px;
  border: 5px solid var(--white);
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(59, 87, 131, 0.435),
  0 0px 0px rgba(40, 112, 134, 0.428);
}
.avatar-pic img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: centre 50% 80%;
  border-radius: 50%;
  border: 4px solid rgba(3, 3, 36, 0.5);
}
.img-project{
  /* width: 400px; */
}
.img-project img{
  width: 100%;
  height: 100%;
}
.image3{
  /* width: 400px; */
  height: 300px;
  overflow: auto;
}
.image3 img{
  width: 100%;
  /* height: 100%; */
}
.code-exp{
  height: 400px;
  max-height: 300px;
  /* width: 400px; */
  display: flex;
  justify-content: center;
  /* border:  1px solid red; */
  /* gap: 20px; */
  margin-top: 30px;
  overflow: auto;
}
.code-exp img{
  /* width: 100%; */
  /* height: 100%; */
  flex: 1;
  max-width: 100%;
  height: max-content;
}
.image6{
  height: auto;
  /* width: 500px; */
}
.image6 img{
  height:100%;
  width: 100%;
}

.home-greeting { font-size: 16px; color: var(--text-mid); margin-bottom: 6px; font-weight: 600; }
.home-name { font-family: var(--font-head); font-size: 52px; color: var(--text); line-height: 1.1; margin-bottom: 12px; }
.home-role { font-size: 12px; color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; }
.home-bio { font-size: 15px; color: var(--text-mid); max-width: 500px; line-height: 1.75; margin-bottom: 36px; }
.home-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== PROJECTS ===== */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}
.project-info { padding: 32px; }
.project-info h3 { font-family: var(--font-head); font-size: 22px; color: var(--text); margin-bottom: 12px; }
.project-info p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.project-img { min-height: 240px; }

/* ===== WEBSITE DESIGN BANNER ===== */
.banner { background: var(--navy); padding: 52px 48px; color: var(--white); }
.banner h1 { font-family: var(--font-head); font-size: 42px; margin-bottom: 10px; }
.banner p { font-size: 15px; opacity: 0.8; max-width: 520px; line-height: 1.65; }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.topic-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.topic-icon { width: 44px; height: 44px; background: var(--navy-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--navy); font-size: 13px; font-weight: 800; }
.topic-card h4 { font-family: var(--font-head); font-size: 15px; color: var(--text); margin-bottom: 6px; }
.topic-card p { font-size: 12px; color: var(--text-mid); line-height: 1.55; }
.tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.tool-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: flex-start; gap: 16px; }
.tool-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-head); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.tool-card strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.tool-card p { font-size: 13px; color: var(--text-mid); line-height: 1.55; margin: 0; }

/* ===== SKILLS ROWS ===== */
.skills-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.skill-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.skill-icon { width: 52px; height: 52px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--white); font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.skill-card h4 { font-family: var(--font-head); font-size: 16px; color: var(--text); margin-bottom: 6px; }
.skill-card p { font-size: 12px; color: var(--text-mid); line-height: 1.6; }

/* ===== ABOUT ME ===== */
.about-layout { display: grid; grid-template-columns: 270px 1fr; gap: 48px; padding: 52px 48px; background: var(--bg); }
.about-sidebar { display: flex; flex-direction: column; align-items: center; }
.about-avatar { width: 150px; height: 150px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-head); font-size: 44px; font-weight: 700; margin-bottom: 18px; border: 5px solid var(--white); overflow: hidden; flex-shrink: 0; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 50%; }
.about-name { font-family: var(--font-head); font-size: 21px; color: var(--text); text-align: center; margin-bottom: 4px; }
.about-role { font-size: 11px; color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; text-align: center; margin-bottom: 22px; }
.contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; width: 100%; }
.contact-row-icon { width: 32px; height: 32px; background: var(--navy-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--navy); font-weight: 800; flex-shrink: 0; }
.contact-row-text { font-size: 13px; color: var(--text-mid); word-break: break-all; }
.skills-section { margin-top: 22px; width: 100%; }
.skills-section h4 { font-family: var(--font-head); font-size: 16px; color: var(--text); margin-bottom: 10px; }
.skill-pill { background: var(--navy-pale); color: var(--navy); font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 20px; display: inline-block; margin: 3px; }
.about-main h2 { font-family: var(--font-head); font-size: 30px; color: var(--text); margin-bottom: 16px; }
.about-main p { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.btn-cv { display: block; margin-top: 20px; width: 100%; text-align: center; background: var(--navy); color: var(--white); padding: 11px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; font-family: var(--font-body); transition: background 0.2s; }
.btn-cv:hover { background: var(--navy-mid); }

/* ===== CONTACT ME ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 52px 48px; background: var(--bg); }
.contact-info h2 { font-family: var(--font-head); font-size: 26px; color: var(--text); margin-bottom: 10px; }
.contact-info > p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 28px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-item-icon { width: 42px; height: 42px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 13px; font-weight: 800; flex-shrink: 0; }
.contact-item-label { display: block; font-size: 10px; color: var(--text-light); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.contact-item-value { font-size: 14px; color: var(--text); font-weight: 700; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--bg); transition: border-color 0.2s; outline: none; font-family: var(--font-body); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { height: 110px; resize: vertical; }
.btn-submit { width: 100%; background: var(--navy); color: var(--white); padding: 13px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s; font-family: var(--font-body); }
.btn-submit:hover { background: var(--navy-mid); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-message { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; display: none; }
.form-message.success { background: #E8F8EF; color: #1E7A45; border: 1px solid #B0DDBF; display: block; }
.form-message.error { background: #FDEEEE; color: #9B2222; border: 1px solid #F0BEBE; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .home-hero { padding: 48px 20px; }
  .home-name { font-size: 34px; }
  .avatar { width: 100px; height: 100px; font-size: 26px; }
  .home-buttons { flex-direction: column; align-items: stretch; }
  .home-buttons a { text-align: center; }
  .page-header { padding: 32px 20px; }
  .page-header h1 { font-size: 28px; }
  .page-body { padding: 28px 20px; }
  .banner { padding: 32px 20px; }
  .banner h1 { font-size: 28px; }
  .project-card { grid-template-columns: 1fr; }
  .project-img { min-height: 200px; border-left: none; border-top: 1px solid var(--border); }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .tools-row { grid-template-columns: 1fr; }
  .skills-row { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .about-sidebar { align-items: flex-start; }
  .contact-layout { grid-template-columns: 1fr; padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
}
@media (max-width: 480px) {
  .home-name { font-size: 28px; }
  .topics-grid { grid-template-columns: 1fr; }
  .skills-row { grid-template-columns: 1fr; }
}
