@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* =================== GLOBAL RESET =================== */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; scroll-behavior: smooth;
}
:root {
  --primary-orange: #ff6600; --bg-dark: #0d0d0d; --card-bg: #161616;
  --card-border: #222222; --text-main: #ccd6f6; --text-dim: #8892b0;
}
body { background: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-orange); }

/* =================== NAVIGATION =================== */
nav {
  position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%;
  background: rgba(13, 13, 13, 0.95); z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.logo { font-size: 24px; font-weight: 600; color: var(--text-main); letter-spacing: 1px; text-transform: uppercase; }
nav ul li { display: inline-block; list-style: none; margin: 10px 20px; }
nav ul li a { color: #fff; text-decoration: none; font-size: 18px; position: relative; transition: 0.3s; }
nav ul li a::after { content: ''; width: 0%; height: 3px; background: var(--primary-orange); position: absolute; left: 0; bottom: -6px; transition: 0.5s; }
nav ul li a:hover { color: var(--primary-orange); }
nav ul li a:hover::after { width: 100%; }
nav .fa-bars, nav .fa-xmark { display: none; }

/* =================== HERO SECTION (SPLIT CENTER) =================== */
#header {
  height: 100vh; width: 100%; padding: 90px 20px 20px;
  background: var(--bg-dark); display: flex; justify-content: center; align-items: center; overflow: hidden;
}

.quadrant-wrapper {
  display: grid;
  /* 1.3fr Sides | 3fr Center (Wide) */
  grid-template-columns: 1.3fr 3fr 1.3fr;
  grid-template-rows: 1fr;
  gap: 15px; width: 100%; height: 100%; max-width: 1800px;
}

/* --- CENTER COLUMN WRAPPER (Splits Center Top/Bottom) --- */
.center-col-wrapper {
  display: flex; flex-direction: column; gap: 15px;
  height: 100%; min-height: 0;
}


model-viewer {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 40%,
    #111 0%,
    #080808 55%,
    #000 100%
  );
}


/* TOP CENTER: 3D Models (Takes 3 parts height) */
/* --- TOP CENTER: 3D Models --- */
.quadrant.center-focus {
  flex: 3; /* 75% Height */
  background: #000; 
  /* FIXED: Changed from orange to subtle gray to match other boxes */
  border: 1px solid #222; 
  border-radius: 8px;
  position: relative; 
  overflow: hidden; 
  z-index: 10;
  box-shadow: 0 0 50px rgba(0,0,0, 0.9);
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  grid-template-rows: 1fr 1fr;
  gap: 10px; 
  padding: 20px; /* Kept your requested sizing/padding */
  min-height: 0;
  transition: border-color 0.3s ease; /* Smooth fade for the orange border */
}

/* NEW: Added hover state so the orange box only shows when focused */
.quadrant.center-focus:hover {
  border-color: var(--primary-orange);
}

.quadrant.center-focus .model-box {
  width: 100%; 
  height: 100%; 
  position: relative; 
  overflow: hidden;
  min-height: 0; 
  min-width: 0; 
  background: #050505; 
  border-radius: 4px; 
  padding: 10px;
}

.quadrant.center-focus model-viewer {
  width: 100%; 
  height: 100%; 
  --poster-color: transparent; 
  background-color: transparent;
}



/* BOTTOM CENTER: 2 Images (Takes 1 part height) */
.quadrant.center-bottom-images {
  flex: 1; /* 25% Height */
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
  min-height: 0;
}
.quadrant.center-bottom-images .grid-item {
  /* Inherits standard grid item styles, just adds specific context if needed */
}

/* --- SIDE COLUMNS (Images) --- */
.quadrant.side-focus {
  background: transparent; border: none; display: grid;
  grid-template-rows: repeat(4, 1fr); gap: 10px; height: 100%; min-height: 0;
}

/* Standard Image Box Styles */
.grid-item {
  background: #050505; border: 1px solid #222; border-radius: 6px;
  overflow: hidden; position: relative; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center; min-height: 0; min-width: 0;
}
.grid-item img {
  width: 100%; height: 100%; object-fit: contain; padding: 0px;
  filter: brightness(0.7) grayscale(30%); opacity: 0.9; transition: all 0.5s ease;
}
.grid-item:hover { border-color: var(--primary-orange); z-index: 11; }
.grid-item:hover img { filter: brightness(1.1) grayscale(0%); opacity: 1; transform: scale(1.05); }

/* =================== ABOUT SECTION =================== */
#about { padding: 100px 0; background: var(--bg-dark); }
.sub-title { text-align: center; font-size: 40px; color: #fff; margin-bottom: 60px; }
.about-box { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.about-column {
  flex: 1; min-width: 350px; background: var(--card-bg); padding: 40px;
  border-radius: 12px; border: 1px solid var(--card-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.about-column:hover { border-color: var(--primary-orange); transform: translateY(-5px); }
.section-block { margin-bottom: 30px; }
.section-block h3 { font-size: 22px; color: var(--primary-orange); margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.section-block p { line-height: 1.7; color: var(--text-main); font-size: 15px; }
.section-block p b { color: #fff; }
.job-block { margin-bottom: 25px; }
.job-title { font-size: 18px; color: #fff; font-weight: 600; margin-top: 5px; }
.job-block ul { padding-left: 20px; list-style: square; }
.job-block li { font-size: 14px; margin-bottom: 8px; color: #a8b2d1; line-height: 1.5; }
.job-date { font-size: 12px; color: var(--primary-orange); font-family: 'Courier New', monospace; font-weight: bold; margin-top: 5px; display: block; }

/* =================== SKILLS & CONTACT =================== */
#skills { padding: 60px 0; background: #111; }
.skills-strip-container { overflow: hidden; padding: 20px 0; }
.skills-track { display: flex; width: max-content; animation: scroll 25s linear infinite; }
.skill-icon { padding: 0 50px; font-weight: 600; color: var(--primary-orange); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

#contact { padding: 100px 0; background: var(--bg-dark); }
.contact-container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px;
  background: var(--card-bg); padding: 50px; border-radius: 15px; border: 1px solid var(--card-border);
}
.contact-left, .contact-right { flex: 1; min-width: 300px; }
.contact-heading { color: var(--primary-orange); font-weight: bold; margin-bottom: 10px; }
.contact-title { font-size: 32px; color: #fff; margin-bottom: 20px; }
.contact-title span { color: var(--primary-orange); }
.contact-info p { font-size: 18px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: var(--text-main); }
.contact-info p i { color: var(--primary-orange); }
.contact-right form input, .contact-right form textarea {
  width: 100%; padding: 15px; margin-bottom: 20px; background: #0d0d0d; border: 1px solid #333; color: #fff; border-radius: 8px; font-size: 16px;
}
.contact-right form input:focus, .contact-right form textarea:focus { outline: none; border-color: var(--primary-orange); }
.contact-right button { width: 100%; background: var(--primary-orange); color: #000; padding: 15px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.contact-right button:hover { background: #fff; }
.copyright { text-align: center; padding: 40px 0; color: var(--text-dim); font-size: 14px; }

/* =================== MOBILE RESPONSIVENESS =================== */
@media (max-width: 1080px) {
  #header { height: auto; overflow-y: auto; display: block; padding-top: 100px; }

  .quadrant-wrapper { display: flex; flex-direction: column;


