

/* === Custom Font: KASTROO === */
@font-face {
  font-family: 'Kastro';
  src: url('../fonts/KASTROO.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ===== Custom Fonts (OTF) ===== */

@font-face {
    font-family: 'Morrison';
    src: url('../fonts/morrison.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Densmore';
    src: url('../fonts/densmore.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Righteous';
    src: url('../fonts/righteous.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PoiretOne';
    src: url('../fonts/poiret-one.regular.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

:root{
  --accent:#e76f51;
  --bg:#0f1720;
  --muted:#192330;
  --card:#0b1220;
  --cream: rgb(255, 226, 183); /* cream tone for resume etc */
  --polaroid-bg: #000000;
  --maxw:1100px;
  --radius: 10px;
  --font-family: 'Morrison'.serif;
}




.polaroid {
    font-family: 'Morrison', serif;
}
.hero-title {
    font-family: 'Morrison', serif;
}

body {
    font-family: 'Morrison', sans-serif;
}

h1,h2, h3 {
    font-family: 'Morrison', serif;
}



*{box-sizing:border-box}
html,body{height:100%;margin:0;background:url("images/hero-bg.jpg") no-repeat center fixed



}
a{color:var(--accent);text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:48px 20px}
.section{background:transparent}


/* NAV */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;background:linear-gradient(180deg, rgba(2, 6, 23, 0.743), rgba(2,6,23,0.2));backdrop-filter: blur(6px);padding:8px 0}
.nav-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px}
.brand{font-weight:700;color:#fff}
.nav-links{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.nav-links a{color:var(--muted);font-size:0.95rem}
.nav-toggle{display:none;background:transparent;border:0;color:#fff;font-size:1.2rem}

/* HERO */
.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;padding:40px 20px;overflow:hidden}
.hero-inner{text-align:center;z-index:2;max-width:900px}
.hero-title{font-size:clamp(32px,6vw,64px);margin:0 0 8px}
.hero-sub{color:var(--muted);margin:0 0 18px}
.hero-ctas{display:flex;gap:12px;justify-content:center;margin-bottom:14px}
.btn{background:var(--accent);color:#ffdbb2;padding:10px 18px;border-radius:10px;display:inline-block}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06)}
.social{color:var(--muted);font-size:0.9rem}




/* subtle parallax background */
.hero-bg{position:absolute;inset:0;background-image:url('../images/hero-bg.jpg');background-size:cover;background-position:center;filter:brightness(0.7) saturate(0.8);transform:translateZ(0);will-change:transform;}

/* ---------- Portfolio grid: tidy multi-row, centered polaroids ---------- */

.grid {
  display: grid;
  /* show as many columns as fit, each between 240px and 320px */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 34px;                      /* vertical + horizontal spacing */
  max-width: 500px;              /* limit overall width so cards don't spread out */
  margin: 18px auto 0;            /* center the grid */
  align-items: start;
  padding-bottom: 24px;
}


/* Card container centers the polaroid and prevents overly wide cards */
.card {
  width: 100%;
  max-width: 320px;     /* prevents single card from becoming super-wide */
  margin: 0 auto;       /* center card inside its grid cell */
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}

/* Polaroid visual wrapper (white caption bar + shadow) */
.polaroid {
  background: #fff;
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 18px 30px rgba(6, 10, 20, 0.45);
  transform-origin: center;
  display: block;
  font-family: 'Morrison', serif;
}

/* Image inside polaroid */
.polaroid img,
.card img {
  display: block;
  width: 100%;
  height: 260px;        /* fixed tile height for uniform look */
  object-fit: cover;    /* crops evenly while keeping subject centered */
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Caption bar that looks like a polaroid label */
.polaroid .caption {
  padding: 12px 14px;
  text-align: center;
  background: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-family: 'Morrison', serif;
}

.polaroid .caption span {
  display:inline-block;
  font-family: "Kastroo";
  letter-spacing: 1px;
  color: #3b2b24;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
    font-family: 'Morrison', serif;
}

/* Hover interaction */
.card:hover .polaroid {
  transform: translateY(-10px) rotate(-0.6deg);
  box-shadow: 0 28px 44px rgba(6,10,20,0.55);
}

/* Small screens: tighten spacing, lower image height */
@media (max-width: 900px) {
  .grid {
    gap: 20px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .polaroid img,
  .card img {
    height: 200px;
  }
  .card { max-width: 100%; }
}

/* Very small phones: stack with smaller images */
@media (max-width: 480px) {
  .polaroid img { height: 170px; }
  .polaroid .caption { padding: 10px 8px; font-size: 0.9rem; }
}

/* VIDEO */
.video-section .video-wrap{max-width:900px;margin:20px auto;border-radius:12px;overflow:hidden;box-shadow:0 8px 30px rgba(2,6,23,0.6)}

/* ABOUT / TWO COL */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px}
.lede{color:var(--muted);margin-bottom:14px}

/* CHIPS */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{background:var(--card);padding:8px 12px;border-radius:999px;color:var(--muted);font-size:0.9rem}

/* CONTACT */
.contact-row{display:flex;gap:12px;align-items:center}

/* FOOTER */
.site-footer{text-align:center;padding:28px 20px;color:var(--muted)}

/* LIGHTBOX */
.lightbox{position:fixed;inset:0;background:rgba(16, 16, 54, 0.565);display:none;align-items:center;justify-content:center;z-index:200;padding:20px}
.lightbox-inner{max-width:90vw;max-height:90vh;position:relative}
.lightbox img{max-width:100%;max-height:80vh;border-radius:8px;display:block}
.lb-close{position:absolute;right:-6px;top:-6px;background:#222;color:#fff;border:0;padding:8px 10px;border-radius:999px}

/* RESPONSIVE */
@media (max-width:10000px){
  .nav-links{display:none}
  .nav-toggle{display:block}
  .two-col{grid-template-columns:1fr}
  .hero-inner{padding-top:40px}
  .card img{height:140px}
}
/* Responsive iframe wrapper for YouTube */
.iframe-wrap{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:8px;margin-top:12px}
.iframe-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* project section styling */
.project-section{background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);padding:48px 20px;margin-top:36px;border-radius:12px}
.project-inner{max-width:980px;margin:0 auto}
.project-media{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
.project-media img{width:100%;height:auto;border-radius:8px;object-fit:cover}
.back-to-portfolio{display:inline-block;margin-bottom:8px;color:var(--muted)}

/* make card pointer obvious */
.card{cursor:pointer}

/* small responsive tweak */
@media(min-width:900px){
  .project-media{grid-template-columns: 1fr 1fr}
}
/* ===== Resume / CV styles ===== */
.resume-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items:start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  font-family: 'PoiretOne';
}

.resume-left{
  background: rgb(237, 175, 175);  /* stronger cream tone */
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
}


.profile-photo{
  width:100%;
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}
.profile-photo img{
  width: 250px;       /* smaller size */
  height: 250px;      /* makes it a square crop */
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;  /* auto crop edges */
  border: 3px solid rgba(255,255,255,0.05);
}

.video-section h2{margin-left:20px; padding: 0px}
.video-section p{margin-left:20px; padding: 0px}

.resume-left h3{margin:0 0 6px}
.resume-left .muted{color:var(--muted); margin-bottom:10px}
.brief p{margin:0 0 12px; color:var(--muted)}

.quick-facts h4{margin-top:8px}
.quick-facts ul{list-style:disc; padding-left:18px; margin:8px 0; color:var(--muted)}
.resume-actions{margin-top:12px}

.resume-right{
  background: transparent;
  padding: 4px 4px;
}

.portfolio-wrap section h2{  
  
  font-family: 'Righteous';
  margin-left:0; 
  padding: 16px; 
  font: size 60px;
}
.resume-right h2{
  font-family: 'Righteous';
  margin-left:0; 
  padding: 16px; 
  font-size:50px ;
}
.resume-list, .experience-list{margin:8px 0 20px; color:var(--muted)}
.resume-list li{margin:8px 0}
.experience-list li{margin:8px 0; line-height:1.4}

.small{font-size:0.9rem}
.btn{display:inline-block;background:var(--accent);color:#dedada;padding:8px 12px;border-radius:8px;text-decoration:none}

/* responsive */
@media (max-width:900px){
  .resume-grid{grid-template-columns:1fr; padding:14px 16px}
  .profile-photo img{width:180px}
  .resume-left{order:0}
  .resume-right{order:1; margin-top:10px}
}
/* ===== REDONE Portfolio Grid (rows + columns polaroid tiles) ===== */
/* ===== FORCE tidy portfolio grid (override conflicting rules) ===== */
#portfolio, #portfolio .wrap { display: block !important; box-sizing: border-box !important; }

/* Force grid & wrap */
#portfolio .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 28px !important;
  max-width: 1200px !important;
  margin: 28px auto !important;
  justify-items: center !important;
  align-items: start !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-family: 'Kastro';
}

/* Make each card respect its grid cell */
#portfolio .card {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

/* Polaroid wrapper and image sizing */
#portfolio .polaroid {
  background: #fff !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 34px rgba(6,10,20,0.45) !important;
  display: block !important;
}
#portfolio .polaroid img,
#portfolio .card img {
  width: 100% !important;
  height: 240px !important;    /* uniform tile height */
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

/* caption bar */
#portfolio .polaroid .caption {
  padding: 12px 14px !important;
  text-align: center !important;
  font-family: 'Morrison', serif !important;
}

/* responsive tweaks */
@media (max-width: 900px) {
  #portfolio .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap:20px !important; }
  #portfolio .polaroid img { height: 200px !important; }
  #portfolio .card { max-width: 280px !important; }
}
@media (max-width: 480px) {
  #portfolio .polaroid img { height: 170px !important; }
  #portfolio .card { max-width: 100% !important; }
}
/* card micro-interactions */
.card { transition: transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s ease, filter .28s ease; }
.card:hover { transform: translateY(-10px) scale(1.02); filter: brightness(1.03); }

/* slight stagger effect for AOS (optional — gives cascading reveal) */
[data-aos][data-aos][data-aos-delay] { will-change: transform, opacity; }
/* Enhanced lightbox */
.gallery-lightbox { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(4,8,16,0.85); z-index:999; padding:20px; }
.glb-inner{ position:relative; max-width:1000px; width:100%; display:flex; align-items:center; gap:12px; justify-content:center; }
.glb-media img, .glb-media video { max-width:100%; max-height:80vh; border-radius:10px; display:block; }
.glb-close, .glb-prev, .glb-next { position:absolute; background:rgba(255,255,255,0.06); border:0;color:#fff;padding:10px 12px;border-radius:8px; cursor:pointer; }
.glb-close{ right:-6px; top:-6px; }
.glb-prev{ left:-8px; top:50%; transform:translateY(-50%); font-size:26px; }
.glb-next{ right:-8px; top:50%; transform:translateY(-50%); font-size:26px; }
.glb-caption{ color:var(--muted); text-align:center; margin-top:8px; font-size:0.95rem; }


/* ===== Project Modal (Carrd-like overlay) ===== */
.project-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.project-modal[aria-hidden="false"]{ display:block; }
.project-modal .pm-backdrop{ position:absolute; inset:0; background:rgba(255, 255, 255, 0.932); backdrop-filter: blur(2px); }
.project-modal .pm-panel{ position:relative; max-width:1100px; margin:6vh auto; background:"images\bg.jpg";background-size: cover;
  background-position: center; border-radius:14px; overflow:hidden; box-shadow:0 40px 90px rgba(2,6,23,0.7); }
.project-modal .pm-close{ position:absolute; right:12px; top:12px; z-index:5; background:rgba(255,255,255,0.04); color:#fff; border:0; padding:10px 12px; border-radius:8px; cursor:pointer; }
.pm-inner{ display:grid; grid-template-columns: 340px 1fr; gap:18px; padding:22px; align-items:start; }
.pm-left{ border-right:1px solid rgba(255,255,255,0.03); padding-right:18px; }
.pm-cover{ width:100%; height:220px; object-fit:cover; border-radius:8px; display:block; margin-bottom:12px; }
.pm-left h3{ margin:6px 0 4px; }
.pm-meta{ color:var(--muted); font-size:0.95rem; margin-bottom:2px; }
.pm-desc{ color:var(black); font-size:0.95rem; line-height:1.45;
font-family: 'Kastro'; }

.pm-actions{ display:flex; gap:8px; margin-top:12px; }
.pm-actions button{ background:transparent; border:1px solid rgba(255,255,255,0.06); color:#fff; padding:8px 10px; border-radius:8px; cursor:pointer; }

.pm-right h2{ margin-left:10px; padding: 16px }
.pm-gallery{ display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.pm-thumb{ width:120px; height:80px; padding:0; border:0; background:#fff; overflow:hidden; border-radius:8px; box-shadow:0 8px 20px rgba(2,6,23,0.35); cursor:pointer; position:relative; }
.pm-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pm-thumb .thumb-play{ position:absolute; right:6px; bottom:6px; background:rgba(0,0,0,0.55); color:#fff; padding:4px 6px; border-radius:6px; font-weight:700; }

.pm-media-stage{ margin-top:18px; min-height:260px; background:rgba(255,255,255,0.02); border-radius:8px; padding:12px; display:flex; align-items:center; justify-content:center; }
.pm-media-stage img, .pm-media-stage video, .pm-media-stage iframe{ max-width:100%; max-height:70vh; border-radius:8px; display:block; }

/* responsive */
@media (max-width: 980px){
  .pm-inner{ grid-template-columns: 1fr; }
  .pm-left{ border-right:0; padding-right:0; }
  .pm-thumb{ width:140px; height:62px; }
  .pm-cover{ height:180px; }
  .pm-media-stage{ min-height:150px; }
}
/* ensure modal controls are on top and clickable */
.project-modal .pm-panel { position: relative; z-index: 40; }
.project-modal .pm-backdrop { z-index: 30; }

/* ensure buttons are clickable */
.pm-close, .pm-prev, .pm-next, .pm-thumb, .pm-zoom { pointer-events: auto; }

/* fullscreen class for stage (optional visuals) */
.pm-media-stage.pm-media-fullscreen { background: #000; display:flex; align-items:center; justify-content:center; }
.pm-media-fullscreen img, .pm-media-fullscreen video, .pm-media-fullscreen iframe { max-height: 100vh; width: auto; }
/* Make media & caption stack vertically in a tidy layout */
.pm-media-stage {
  display: flex !important;
  flex-direction: column;
  align-items: center;      /* center horizontally */
  justify-content: flex-start; 
  gap: 12px;                /* space between media and text */
  padding: 16px;
  text-align: center;
}

/* Make sure media scales nicely */
.pm-media-stage img,
.pm-media-stage video,
.pm-media-stage iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Caption styling */
.pm-caption {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
  max-width: 90%;
  font-family: 'Kastro';
}
/* === Apply patterned cream background to site sections === */
/* Path used: images/bg-pattern.jpg - change if your file name/path differs */

:root {
    background-image: url("../images/Backdrop.jpg")!important;
    background-size: cover!important;
    background-repeat: repeat!important;
    background-position: center!important;
    background-attachment: fixed!important; /* makes it look more premium */
}

/* Generic helper for sections that should use the pattern */
.section-bg-pattern {
  background-image:url(images\Backdrop.jpg) ; /* adjust path if needed */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* subtle darken on the edges for contrast with content */
  box-shadow: inset 0 60px 120px rgba(255, 255, 255, 0);
}

/* Portfolio container (grid and surrounding area) */
#portfolio,
#portfolio .grid,
#portfolio .wrap {
  /* Use layered background: pattern below, soft overlay above for readability */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

/* Each project detail section uses the pattern (keeps gallery readable by overlay) */
.project-section,
.project-section .project-inner {
  background-image:
    linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.86)),
    url("../images/bg-pattern.jpg");
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 36px;
  padding-bottom: 36px;
}

/* Modal panel: use the pattern as the panel background with a warm glass overlay */
.project-modal .pm-panel {
  background-image:
    linear-gradient(var(--panel-overlay), var(--panel-overlay)),
    url("../images/bg-pattern.jpg");
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* keep text readable */
  color: #000000;
}

/* About / Resume section */
#about, #resume,
.resume-grid, .resume-left, .resume-right {
  background-image:
    url("../images/bg-pattern.jpg");
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Slight adjustments so cards and polaroids still look crisp on top */
.polaroid,
.card,
.resume-left {
  background-color: rgba(255,255,255,0.92); /* ensures polaroid / card stays visible */
}

/* Ensure modal backdrop still darkens behind the panel */
.project-modal .pm-backdrop {
  background: rgb(255, 183, 183);
}

/* Mobile tweaks: reduce pattern intensity & padding */
@media (max-width: 150em) {
  #portfolio,
  .project-section,
  #about,
  #resume {
    background-image: url("images\bg.jpg");
    background-size: cover;
    background-position: center;
  }

  .project-modal .pm-panel {
    position: relative;
   z-index: 99991;
   width: min(1100px, calc(100% - 60px));
   max-height: calc(100vh - 100px);
  overflow: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
  box-shadow: 0 30px 60px rgba(0,0,0,0.35); /* adjust the shadow blur/strength here */
  transform-origin: center;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .2s;
  opacity: 1; 
  }
  
.hero-title {
  font-family: 'Morrison', serif;
  font-size: 5rem;
  color: #efefef;   /* warm brown matching your background */
  letter-spacing: 3px;
  text-transform: uppercase;
}
/* Force lighter cover look (override possible dark overlays) */
.hero, #home, .cover, .cover-page {
  /* use your pattern/image with a light white overlay to keep text readable */
  background-image:
    url("../images/bg-pattern.jpg") !important; /* adjust path if needed */
  background-blend-mode: normal !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Remove inset dark shadows that may be applied */
.hero, #home, .cover-page {
  box-shadow: none !important;
}

/* If a dark pseudo-element overlay was used (::before / ::after), hide it */
.hero::before, .hero::after, #home::before, #home::after, .cover-page::before, .cover-page::after {
  display: none !important;
  content: none !important;
}


/* reduced motion: hide blinking and animations if user prefers */
@media (prefers-reduced-motion: reduce) {
  .rotating-title .cursor { animation: none; opacity: 1; }
}


/* blinking cursor */
.rotating-title .cursor{ display:inline-block; margin-left:2px; opacity:1; animation:blink 1s steps(1) infinite; color:inherit; }
@keyframes blink{ 50%{ opacity:0; } }

/* mobile */
@media (max-width:640px){
  .rotating-title{ font-size:0.95rem; top:12px; left:12px; }
}

/* prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .rotating-title .cursor{ animation:none; opacity:1; }
}
/* === Top bar size + rotating title in nav === */
/* ================= HEADER ================= */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  padding: 18px 32px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.229); /* change this if needed */
}


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

/* Left Brand */
.header-brand {
  font-family: 'Righteous';
  font-size: 1.15rem;
  font-weight: 600;
  color: #4b1d1d;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.brand-dynamic {
  font-weight: 600;
}

.cursor {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Right Navigation */
.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color:#321414;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: 0.2s ease;
}

.header-nav a:hover {
  opacity: 2;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .header-nav {
    gap: 16px;
  }
}





/* ========= Skills Section ========= */

.skills-section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-family: 'Morrison', serif;
    font-size: 48px;
    margin-bottom: 40px;
    color: #4a2b27;
}

.skill-group {
    margin-bottom: 60px;
}

.skill-heading {
    font-family: 'Righteous', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #4a2b27;
}

/* ------- SOFT SKILL GRID (fixed & tidy) ------- */

/* grid wrapper (keep inside your .wrap container) */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 20px;
  align-items: start;
}

/* each skill card */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.5);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden; /* ensures children can't visually overflow the rounded corners */
}

/* responsive icon sizing — explicit control for only the icon image */
/* Reset icons so they are NOT forced to be 100% width */
.skill-item img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    display: block;
}


/* defensive override: if some global rule (e.g. img{width:100%}) exists,
   this more specific selector will take precedence. Use !important only as last resort. */
.skill-item > img {
  width: clamp(32px, 4.2vw, 64px);
  height: auto;
}

/* card hover */
.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* optional: ensure grid is constrained by your .wrap container.
   Only use if your grid is currently escaping the page width. */
.wrap .skill-grid {
  width: 100%;
  max-width: 100%;
}
}

/* SOFT SKILLS */
.softskill-list {
    columns: 2;
    column-gap: 40px;
    padding-left: 20px;
    line-height: 1.7;
}

/* LANGUAGES */
.language-list {
    margin-left: 20px;
    line-height: 1.7;
}

/* RESPONSIVE FIX */
@media (max-width: 600px) {
    .softskill-list { columns: 1; }
}


/* ==========================
   CONTACT SECTION
=========================== */

.contact-section {
    padding: 80px ;
    background: #694c2b;
    width: 100%;
    max-width: 2000px;

}

.contact-container {
    width: 90%;
    max-width: 2000px;
    margin: auto;
    display: flex;
    gap: 40px;
}

/* LEFT PANEL */
.contact-left {
    flex: 1;
    background: #111;
    color: white;
    padding: 50px;
    border-radius: 20px;
    background-image: url('../images/map-pattern.png'); /* optional */
    background-size: cover;
    position: relative;
}

.contact-left h2 {
    font-size: 40px;
    margin-bottom: 40px;
}

.contact-info .info-block {
    margin-bottom: 25px;
}

.contact-info .info-block h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.socials a {
    color: white;
    font-size: 22px;
    margin-right: 15px;
    transition: 0.3s;
}

.socials a:hover {
    opacity: 0.6;
}

/* RIGHT PANEL FORM */
.contact-form {
    flex: 1.2;
    background: rgb(255, 248, 238);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.contact-form label {
    font-size: 14px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.upload-label {
    margin-top: 20px;
    cursor: pointer;
}

.upload-label input {
    display: none;
}

.send-btn {
    margin-top: 30px;
    padding: 14px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    background: #444;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-left,
    .contact-form {
        width: 100%;
    }
}
/* =========================
   SOFT SKILL ICON SAFEGUARD
   Paste this at the *end* of your style.css
   ========================= */

/* ensure the skill grid lives inside your constrained wrapper */
.wrap .skill-grid,
.skills-section .skill-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* grid & card (safe, no !important) */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.5);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

/* **Critical override**:
   Force icons to a reasonable responsive size and prevent them from being stretched
   by any global `img { width:100% }` rules. This selector is intentionally specific. */
.skill-item > img,
.skill-item img {
  width: clamp(32px, 4.2vw, 64px) !important; /* min 32px, scales, max 64px */
  height: auto !important;
  max-width: 100% !important;   /* won't exceed its card */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

/* small accessibility nicety: give text some breathing room */
.skill-item > span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #111;
  margin-top: 6px;
}

/* hover effect */
.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

