.logo-cloud{
  position: relative; padding: 10px; min-height: 150px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
.logo-tile{
  width: 64px; height: 64px; border-radius: 16px; background:#ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center;
  color:#2c2c2c; font-weight:700; filter: drop-shadow(0 6px 10px rgba(0,0,0,.06));
  transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
  transform: translate(0,0); opacity:.95;
}
.logo-cloud:hover .logo-tile{ transform: translate(var(--tx,0), var(--ty,0)); box-shadow: 0 14px 28px rgba(0,0,0,.12); }
.logo-tile:hover{ z-index: 2; transform: translate(var(--tx,0), var(--ty,0)) scale(1.06); }

/* Skills matrix layout */
.skills-matrix{ display: grid; grid-template-columns: 1fr; gap: 18px; }
.skill-group{ border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: 14px; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.04); }
.sg-header{ font-weight: 700; color:#1a1a1a; margin-bottom: 8px; }
@media(min-width: 992px){
  .skills-matrix{ grid-template-columns: 1fr 1fr; }
}

/* Dark glossy skill cards with neon glow */
.skill-card{
  background: #0f1115 !important;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
  transform: translateZ(0);
}
.skill-card::before{
  content:""; position:absolute; inset:-40%;
  background: radial-gradient(600px 300px at 20% 10%, rgba(106,141,255,.25), transparent 60%),
              radial-gradient(500px 320px at 120% 120%, rgba(255,138,214,.22), transparent 60%),
              radial-gradient(500px 320px at -20% 120%, rgba(163,0,0,.18), transparent 60%);
  filter: blur(20px); opacity:.65; transition: transform .4s ease, opacity .4s ease;
  transform: translate3d(0,10px,0);
}
.skill-card:hover::before{ transform: translate3d(0,0,0); opacity:.9; }
.skill-card:hover{ box-shadow: 0 16px 40px rgba(0,0,0,.55); transform: translateY(-4px); }
.skill-card .card-title{ color:#eaeef8; font-weight:700; }
.skill-card .badge{ background: rgba(255,255,255,.08); color:#eaeef8; border:1px solid rgba(255,255,255,.12); }
.skill-card .badge.text-bg-secondary{ background: rgba(255,255,255,.06); }
.skill-card .card-body{ color:#d7dcea; }
.skill-card .badge{ transform: translateY(4px); opacity:.9; transition: transform .25s ease, opacity .25s ease; }
.skill-card:hover .badge{ transform: translateY(0); opacity:1; }

/* Skills band - no card, dark tiles */
.skills-band{
  background: radial-gradient(700px 400px at 10% 0%, rgba(106,141,255,.12), transparent 60%),
              radial-gradient(600px 400px at 110% 20%, rgba(255,138,214,.12), transparent 60%),
              linear-gradient(180deg,#0d0f12,#0b0d10);
  border-radius: 20px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 20px 40px rgba(0,0,0,.28);
}
.skills-band-title{ color:#1a1a1a; font-weight:700; margin: 12px 4px 10px; }

/* App Dock (icon row) */
.app-dock-wrapper{ 
  display:flex; 
  justify-content:center; 
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.app-dock{
  display:flex; 
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px; 
  padding: 16px 20px; 
  border-radius: 22px;
  background: #f2f4f7; 
  /* box-shadow: inset 0 0 0 1px #e7e9ee, 0 10px 24px rgba(0,0,0,.08); */
  max-width: 100%;
}

.app-item{ 
  display:flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 6px; 
  width: 72px; 
  flex-shrink: 0;
}

.app-name{ 
  font-size: 12px; 
  color:#2c2c2c; 
  opacity:.8; 
  line-height:1; 
  text-align:center; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  width:100%; 
}

.app-icon{ 
  width:72px; 
  height:72px; 
  border-radius: 20px; 
  background: transparent; 
  position:relative; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  transition: transform .25s ease; 
}

.app-icon .label{ 
  color:#2c2c2c; 
  font-weight:800; 
  letter-spacing:.5px; 
}

.app-icon::before{ 
  content: none; 
}

.app-icon:hover{ 
  transform: translateY(-8px); 
}

.app-icon-img{ 
  width:100%; 
  height:100%; 
  object-fit: contain; 
  border-radius: 20px; 
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); 
  transition: filter .25s ease; 
  background: transparent; 
}

.app-icon:hover .app-icon-img{ 
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28)); 
}

/* Responsive for App Dock */
@media (max-width: 768px) {
  .app-dock-wrapper {
    padding: 8px 0;
  }
  
  .app-dock {
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
  }
  
  .app-item {
    width: 64px;
  }
  
  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  
  .app-name {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .app-dock {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  
  .app-item {
    width: 56px;
  }
  
  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  
  .app-name {
    font-size: 10px;
  }
}
.blend-multiply{ mix-blend-mode: multiply; }
.tile-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 14px; place-items: center;
}
.skill-tile{
  width: 64px; height: 64px; border-radius: 16px; background: #121418;
  box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  color:#e7ecf8; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:22px; transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.skills-band:hover .skill-tile{ transform: translate(0, -10px); }
.skill-tile:hover{ transform: translate(0, -12px) scale(1.06); box-shadow: 0 18px 36px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }
@import "https://unpkg.com/transition-style/transition.hackpack.min.css";
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
.body-bg{
  background-color: #2B2B2B
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #757575 #FFFFFF;
}
/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 5px;
  width: 6.5px;
}
*::-webkit-scrollbar-track {
  border-radius: 20px;
  background-color: #FFFFFF;
}
*::-webkit-scrollbar-track:hover {
  background-color: #707070;
}
*::-webkit-scrollbar-track:active {
  background-color: #B8C0C2;
}
*::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background-color: #757575;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: #000000;
}
*::-webkit-scrollbar-thumb:active {
  background-color: #FFFFFF;
}

@keyframes wipe-in-up {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

[transition-style="in:wipe:up"] {
  animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-up both;
}

.language-icon {
  font-size: 3.5rem;
  margin: 1.0rem;
  color: #FFFFFF;
}
.language-icon:hover {
  color: #007bff;
  transform: scale(1.2);
}
.navbar{
  background: rgba(255, 255, 255, 0); 
  box-shadow: 2px 7px 20px 10px rgba(255, 255, 255, 0.115);
  backdrop-filter: blur(3.25px);
}
sh-x{
  box-shadow: 2px 7px 20px 10px rgba(17, 17, 17, 1);
  /* box-shadow: 2px 7px 20px 11px rgba(255, 255, 255, 0.51); */
}
sh-x2{
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.bg-nmain {
  position: relative;
  background-image: url('../Photo/DSCF2374.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 0;
  overflow: hidden;
}

.bg-nmain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.7), rgba(255,255,255,0)); /* ไล่ขาวจากขวาไปซ้าย */
  backdrop-filter: blur(3px); /* เพิ่มความละมุนอีกนิด */
  z-index: 1;
  pointer-events: none;
}
.bg-nmain > * {
  position: relative;
  z-index: 2;
}
.bg-cleanmain {
  position: relative;
  background-image: url('../Photo/DSCF2374.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px;
  min-height: 28vh; /* ค่าเริ่มต้นสำหรับมือถือ - ปรับให้เล็กลง */
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.bg-cleanmain:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* 👉 สำหรับหน้าจอกว้างกว่า 768px (Tablet ขึ้นไป) */
@media (min-width: 768px) {
  .bg-cleanmain {
    min-height: 45vh; /* ปรับให้เล็กลงจาก 70vh */
    max-width: 85%;
  }
}

/* 👉 สำหรับหน้าจอกว้างกว่า 1200px (Desktop) */
@media (min-width: 1200px) {
  .bg-cleanmain {
    min-height: 50vh;
    max-width: 80%;
  }
}

.bg-cleanmain > * {
  position: relative;
  z-index: 1; /* ให้เนื้อหาอยู่เหนือพื้นหลัง */
}
.bg-cleanmain2 {
  position: relative;
  background-image: url('../Photo/retouch_2025051920044956.jpg');
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  overflow: hidden;
}

.bg-cleanmain2 > * {
  position: relative;
  z-index: 1; /* ให้เนื้อหาอยู่เหนือพื้นหลัง */
}

.dashed-border {
  border: 1.5px dashed #2C2C2C; /* ความหนา 2px, สีทอง */
 border-radius: 0;    /* มุมโค้ง */
  padding: 1rem;
}

.bg-submain {
  background-image: url('../Photo/20230220_005806.jpg');
  background-size: cover;
}
.bg-main {
  background-image: url('../Photo/gilles-lambert-msk5nnsasly-unsplash.avif');
  background-size: cover;
}
.bg-main-pas {
  background-image: url('../Photo/gilles-lambert-msk5nnsasly-unsplash.avif');
  background-size: cover;
}
.block11{
  text-align: center;
  margin-top: 20.5vh;
}
.block3 {
  height: 90vh;
  background-color: #0B0D0C;
  background-size: cover;
}
.block4 {
  height: 30vh;
  background-color: #232427;
}
.a1{
  background-image: url('./Photo/a1.png');
  background-size: cover ;
  width: auto;
  height: 450px;
  margin: 30px;
 
}
.centerpage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.container1{
  box-sizing: border-box;
}
.responsive-profile {
  font-size: 64px;
}

@media (min-width: 768px) {
  .responsive-profile {
    font-size: 64px;
  }
}

@media (min-width: 1200px) {
  .responsive-profile {
    font-size: 74px;
  }
}
.section-title {
  font-size: 45px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 64px;
  }
}

@media (min-width: 1200px) {
  .section-title {
    font-size: 84px;
  }
}
img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.borderef {
    position: relative;
    height: 342px;
    width: 260px;
    background: transparent;
    border-radius: 15px;
    border: 2px solid #fff;
    opacity: 0;
    transition: 1.5s ease;
  }
  .borderef:hover {
    opacity: 1;
  }
  .cardef {
    height: 379px;
    width: 300px;
    background: #808080;
    margin: 30px;
    border-radius: 20px;
    transition: .8s ease;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .card0ef {
    background: url("../Photo/371488979_690728899700823_6830333154561649852_n.jpg") center center no-repeat;
    background-size: 300px;
  }
  .card0ef:hover {
    background: url("../Photo/371488979_690728899700823_6830333154561649852_n.jpg") left center no-repeat;
    background-size: 480px;
  }
  .h2ef {
    position: absolute;
    bottom: 142.5px;
    left: 25px;
    width: 15px;
    color:#fff;
    font-size: 30px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, .5);
  }
  .iconef {
    position: absolute;
    fill: #fff;
    color: #fff;
    height: 100px;
    bottom: 30px;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
  }
  .iconef i {
    font-size: 20px;
    transition: .2s ease;
  }
  .iconef i:hover {
    font-size: 30px;
  }

.magicpattern { 
    top: 70px;
    right: 80%;
    width: 500px;
    height: 400px;
    background-repeat: no-repeat; 
    /* Prevent background image from repeating */
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1000 1000%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3CclipPath id=%22a%22%3E%3Cpath fill=%22currentColor%22 d=%22M790 641.5Q664 783 460 852.5T130.5 711Q5 500 156 333t361-196.5q210-29.5 304.5 167t-31.5 338Z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cg clip-path=%22url(%23a)%22%3E%3Cpath fill=%22%23fff%22 d=%22M790 641.5Q664 783 460 852.5T130.5 711Q5 500 156 333t361-196.5q210-29.5 304.5 167t-31.5 338Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  }
.magicpattern-2{ 
    top: 70px;
    right: 10%;
    width: 500px;
    height: 400px;
    background-repeat: no-repeat; 
    /* Prevent background image from repeating */
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 1000 1000%22 xmlns=%22http:%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3CclipPath id=%22a%22%3E%3Cpath fill=%22currentColor%22 d=%22M790 641.5Q664 783 460 852.5T130.5 711Q5 500 156 333t361-196.5q210-29.5 304.5 167t-31.5 338Z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cg clip-path=%22url(%23a)%22%3E%3Cpath fill=%22%23fff%22 d=%22M790 641.5Q664 783 460 852.5T130.5 711Q5 500 156 333t361-196.5q210-29.5 304.5 167t-31.5 338Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  }
  .blobs-main{
    background-image:url("../Photo/blobanimation.svg") ;
    background-repeat: no-repeat; /* Prevent background image from repeating */
    width: 100%;
    height: 100%;
    /* display: flex; */
    /* object-fit: contain; */
    /* Add some padding or spacing if needed */
    /* padding: 220px; */
    /* Add a semi-transparent overlay for better readability of content */
  }
  .shd{
    box-shadow: 2px 7px 20px 10px rgba(17, 17, 17, 1);
  }

  .scroll-wrapper {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mockup-card {
    scroll-snap-align: start;
    transition: transform 0.3s ease;
  }

  .mockup-card:hover {
    transform: translateY(-6px);
  }

  .scroll-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }

  /* From Uiverse.io by bociKond */ 
.container-add {
   width: 100%;
  height: 100%;
  --s: 84px;
  --c1: #f2f2f2;
  --c2: #cdcbcc;
  --c3: #999999;

  --_g: 0 120deg, #0000 0;
  background: conic-gradient(
      from 0deg at calc(500% / 6) calc(100% / 3),
      var(--c3) var(--_g)
    ),
    conic-gradient(
      from -120deg at calc(100% / 6) calc(100% / 3),
      var(--c2) var(--_g)
    ),
    conic-gradient(
      from 120deg at calc(100% / 3) calc(500% / 6),
      var(--c1) var(--_g)
    ),
    conic-gradient(
      from 120deg at calc(200% / 3) calc(500% / 6),
      var(--c1) var(--_g)
    ),
    conic-gradient(
      from -180deg at calc(100% / 3) 50%,
      var(--c2) 60deg,
      var(--c1) var(--_g)
    ),
    conic-gradient(
      from 60deg at calc(200% / 3) 50%,
      var(--c1) 60deg,
      var(--c3) var(--_g)
    ),
    conic-gradient(
      from -60deg at 50% calc(100% / 3),
      var(--c1) 120deg,
      var(--c2) 0 240deg,
      var(--c3) 0
    );
  background-size: calc(var(--s) * 1.732) var(--s);
}
.cardshadows:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.backdrop-blur-custom {
  backdrop-filter: blur(8px); /* Blur effect */
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
}

/* Primary Navigation */
.primary-nav {
  background-color: rgba(248, 248, 255, 0.85);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;
}

.primary-nav.nav-scrolled {
  background-color: rgba(248, 248, 255, 0.95);
  box-shadow: 0 15px 35px rgba(15, 15, 30, 0.08);
}

.primary-nav .container-fluid {
  min-height: 70px;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.75rem;
  max-width: 100%;
}

.primary-nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link-ux {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2c2c2c;
  position: relative;
  padding: 0.25rem 0.35rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  background-color: transparent;
}

.nav-link-ux::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a30000, #c50000);
  transition: width 0.3s ease;
  border-radius: 999px;
}

.nav-link-ux:hover,
.nav-link-ux:focus-visible {
  color: #a30000;
}

.nav-link-ux.active {
  color: #a30000;
  background-color: transparent;
}

.nav-link-ux.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(163, 0, 0, 0.1), rgba(255, 255, 255, 0.4));
  font-weight: 600;
  color: #a30000;
  box-shadow: 0 4px 18px rgba(163, 0, 0, 0.15);
}

.nav-cta i {
  font-size: 0.75rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #a30000, #ff6d6d);
  z-index: 1200;
  transition: width 0.1s ease-out;
}

header[id],
section[id],
footer[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 992px) {
  .primary-nav-links {
    padding: 0.4rem 1rem;
    gap: 0.75rem;
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .primary-nav-links {
    max-width: calc(100% - 110px);
  }
}

/* Footer */
.footer-modern {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 60px 0 30px;
}

.footer-main {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 140px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.footer-brand-copy {
  color: #4c4c4c;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2c2c2c;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(163, 0, 0, 0.12);
  color: #a30000;
  transform: translateY(-2px);
}

.footer-heading {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: #5f5f63;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #a30000;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 24px;
}

.footer-bottom-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #7d7d84;
  font-size: 0.9rem;
}

.footer-bottom-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #a30000;
}

@media (max-width: 576px) {
  .footer-modern {
    padding: 48px 0 24px;
  }

  .footer-brand {
    align-items: flex-start;
  }
}

/* Certificates Section */
.certificate-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.certificate-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 18px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8ff 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(163, 0, 0, 0.12);
}

.certificate-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.certificate-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certificate-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.certificate-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.certificate-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #7c7c83;
}

.certificate-desc {
  margin: 0;
  color: #4a4a50;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .certificate-row {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }

  .certificate-logo {
    width: 56px;
    height: 56px;
  }
}



  

  /* Navcss */
 

 

/* Codeflow-style Promo */
#codeflow-promo .promo-wrap{
  position: relative;
  border-radius: 28px;
  padding: clamp(20px,4vw,40px);
  /* Soft modern gradient: clean base with gentle red and cool accents */
  background:
    radial-gradient(900px 500px at -10% 0%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(163,0,0,.12), transparent 65%),
    radial-gradient(700px 500px at 0% 120%, rgba(106,141,255,.12), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 60%, #eef1f7 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
#codeflow-promo .promo-title{
  color:#1a1a1a;
  font-size: clamp(24px,3.2vw,40px);
}
#codeflow-promo .promo-desc{
  color:#3a3a3a;
  opacity:.8;
  font-size: clamp(14px,2vw,18px);
  margin-bottom: 16px;
}
#codeflow-promo .promo-badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,#6a8dff,#8f6aff,#ff8ad6);
  color:#101010;
  font-weight:600;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
#codeflow-promo .promo-badge span:first-child{
  background:#000;
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
}
#codeflow-promo .phone-tilt{
  perspective: 1200px;
}
#codeflow-promo .phone-img{
  width: clamp(220px,46vw,420px);
  transform: rotate(-12deg) skewX(-2deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat{
  0%,100%{ transform: rotate(-12deg) skewX(-2deg) translateY(0); }
  50%{ transform: rotate(-12deg) skewX(-2deg) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce){
  #codeflow-promo .phone-img{ animation:none; }
}
  
/* Profile section refinements */
.profile-title{
  color: #111;
  letter-spacing: .6px;
  background: linear-gradient(90deg,#6a8dff 0%, #a30000 60%, #111 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profile-title-outline{
  position: absolute;
  inset: auto 0 -12px 0;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(44,44,44,.25);
  opacity: .5;
  pointer-events: none;
}
.profile-subhead{
  font-size: 20px;
  color: #a30000;
  letter-spacing: 1px;
}
.profile-photo{
  width: 100%;
  min-height: 420px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)),
              url('../Photo/retouch_2025051920044956.jpg') center/cover no-repeat;
  outline: 1px solid rgba(0,0,0,.06);
}

/* AirDrop collage */
.airdrop-collage{
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 24px;
  background: #f2f4f8;
  overflow: hidden;
}
.airdrop-card{
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%,-50%);
  width: min(96%, 420px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(0,0,0,.15);
}
.airdrop-header{
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  color: #2c2c2c;
}
.airdrop-photo{ aspect-ratio: 16/9; overflow: hidden; }
.airdrop-photo img{ width: 100%; height: 100%; object-fit: cover; }
.airdrop-input{
  margin: 8px 12px 0 12px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.airdrop-input span{ font-weight:600; color:#2c2c2c; }
.airdrop-input .mic{ border:0; background:transparent; color:#6b7280; }
.airdrop-actions{
  display:flex; gap:0; margin-top: 8px;
}
.airdrop-actions .btn-decline,
.airdrop-actions .btn-accept{
  flex:1; padding:12px 0; border:0; background:#fff; font-weight:600;
}
.airdrop-actions .btn-decline{ color:#3b82f6; border-top:1px solid #edf0f4; border-right:1px solid #edf0f4; border-bottom-left-radius:18px; }
.airdrop-actions .btn-accept{ color:#3b82f6; border-top:1px solid #edf0f4; border-bottom-right-radius:18px; }

.float-item{ position:absolute; backdrop-filter: blur(4px); border-radius:14px; box-shadow:0 10px 20px rgba(0,0,0,.15); }
.float-item.chip{ background:#fff; padding:8px 12px; font-weight:700; color:#2c2c2c; border:1px solid #e6e8ee; }
.fi-1{ width:96px; left: -10px; top: 22%; transform: rotate(-12deg); }
.fi-2{ left: 68%; top: 8%; }
.fi-3{ left: 58%; bottom: 6%; }
.fi-4{ width:auto; left: 6%; bottom: 8%; }
.fi-5{ right: 6%; top: 40%; width: 100px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); border-radius: 14px; }

/* Profile: Education & About blocks */
.profile-block{
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.profile-heading{
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .3px;
  color: #2c2c2c;
  font-weight: 600;
}
/* remove decorative underline for magazine-like style */
.profile-heading::after{ content: none; }
/* comfortable reading */
.profile-block p{ line-height: 1.9; color: #2c2c2c; }
.edu-item{ align-items: flex-start; }
.edu-item .edu-logo{ height: 48px; width: auto; }
.edu-list{ position: relative; padding-left: 22px; }
.edu-list::before{
  content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: #e5e7eb; /* subtle neutral rail */
}
.edu-item{ position: relative; padding-left: 6px; transition: transform .2s ease, background-color .2s ease; }
.edu-item::before{
  content:""; position: absolute; left: -17px; top: 10px; width: 10px; height: 10px;
  background: #a30000; /* red dot */
  border-radius: 50%; box-shadow: 0 0 0 5px rgba(163,0,0,.18);
}
.edu-item:hover::before{ box-shadow: 0 0 0 7px rgba(163,0,0,.22); }
.edu-item:hover{ transform: translateX(4px); }
.edu-year{
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #ffffff; color:#2c2c2c; font-weight: 600; border:1px solid #e5e7eb;
}

/* Skills: Folder reveal */
.skill-folder{ position: relative; height: 180px; cursor: pointer; }
.skill-folder .sf-back{
  position:absolute; inset: 10px 10px 24px 10px; border-radius: 16px;
  background: linear-gradient(180deg,#7bb7ff,#4395ff);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}
.skill-folder .sf-cover{
  position:absolute; left: 6px; right: 6px; bottom: 6px; height: 120px;
  border-radius: 16px; background: linear-gradient(180deg,#9ad0ff,#4aa5ff);
  display:flex; align-items:end; padding: 12px 16px; color:#fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  transform-origin: bottom left; transition: transform .35s ease, box-shadow .35s ease;
}
.skill-folder .sf-title{ font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.skill-folder .sf-content{
  position:absolute; inset: 12px; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.skill-folder .sf-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; place-items: center; }
.sf-logo{ font-size: 22px; color:#1a1a1a; font-weight:700; }

.skill-folder:hover .sf-cover{ transform: translateY(-28px) rotateX(6deg); box-shadow: 0 20px 32px rgba(0,0,0,.22); }
.skill-folder:hover .sf-content{ opacity: 1; transform: translateY(0); }

.skill-folder.open .sf-cover{ transform: translateY(-28px) rotateX(6deg); box-shadow: 0 20px 32px rgba(0,0,0,.22); }
.skill-folder.open .sf-content{ opacity: 1; transform: translateY(0); pointer-events:auto; }

/* Emphasis for About Me lead */
.about-intro{
  font-weight: 800;
  font-size: 1.22em;
  color: #2c2c2c;
}
.edu-item .edu-logo{ height: 50px; width: auto; }

/* Minimal Contact Section Style */
.contact-info-minimal {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item:hover {
  padding-left: 8px;
}

.contact-info-label {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 18px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.6;
}

.contact-info-value > div {
  margin-bottom: 4px;
}

.contact-intro-text {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid #f0f0f0;
}

.contact-link {
  color: #1d1d1f;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #a30000;
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: #a30000;
  transform: translateX(4px);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-social-link {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  background: #fafafa;
}

.contact-social-link:hover {
  color: #ffffff;
  background: #a30000;
  border-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(163, 0, 0, 0.2);
}

/* Minimal Form Style */
.contact-form-minimal {
  background: transparent;
  padding: 0;
}

.form-group-minimal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.form-label-minimal {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
}

.form-control-minimal {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 2px solid #e5e5e5;
  background: transparent;
  font-size: 16px;
  color: #1d1d1f;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control-minimal:focus {
  outline: none;
  border-bottom-color: #a30000;
  border-bottom-width: 2px;
  padding-left: 8px;
}

.form-control-minimal::placeholder {
  color: #86868b;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.form-control-minimal:focus::placeholder {
  opacity: 0.4;
}

.form-control-minimal:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #1d1d1f;
  border-bottom-color: #a30000;
}

textarea.form-control-minimal {
  resize: vertical;
  min-height: 140px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  background: #fafafa;
  transition: all 0.3s ease;
}

textarea.form-control-minimal:focus {
  border-color: #a30000;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(163, 0, 0, 0.05);
}

.btn-submit-minimal {
  background: linear-gradient(135deg, #a30000 0%, #c50000 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(163, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-submit-minimal:hover {
  background: linear-gradient(135deg, #c50000 0%, #a30000 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(163, 0, 0, 0.3);
}

.btn-submit-minimal:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(163, 0, 0, 0.2);
}

.btn-submit-minimal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info-minimal {
    gap: 24px;
  }
  
  .contact-info-card {
    padding: 30px 24px !important;
  }
  
  .contact-info-item {
    padding: 12px 0;
  }
  
  .contact-info-label {
    font-size: 12px;
  }
  
  .contact-info-value {
    font-size: 16px;
  }
  
  .contact-social-link {
    font-size: 14px;
    padding: 8px 14px;
  }
  
  .form-label-minimal {
    font-size: 13px;
  }
  
  .form-control-minimal {
    font-size: 15px;
    padding: 12px 0;
  }
  
  textarea.form-control-minimal {
    padding: 14px;
  }
  
  .btn-submit-minimal {
    width: 100%;
    padding: 16px 32px;
  }
}

/* iOS Widgets for Contact Section */
.ios-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ios-widget {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ios-widget:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ios-widget-medium {
  grid-column: span 1;
}

.ios-widget-large {
  grid-column: span 2;
}

.ios-widget-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-email {
  background: linear-gradient(135deg, rgba(163, 0, 0, 0.15), rgba(139, 0, 0, 0.1));
}

.widget-location {
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.15), rgba(26, 26, 26, 0.1));
}

.widget-availability {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(30, 64, 175, 0.1));
}

/* Widget Medium Style */
.ios-widget-medium .ios-widget-content {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.widget-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.widget-icon i {
  font-size: 24px;
  color: #2c2c2c;
}

.widget-text {
  flex: 1;
  min-width: 0;
}

.widget-label {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.widget-value {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
}

.widget-link {
  color: #1d1d1f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget-link:hover {
  color: #a30000;
}

/* Widget Large Style */
.ios-widget-large .widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ios-widget-large .widget-icon {
  width: 44px;
  height: 44px;
}

.ios-widget-large .widget-icon i {
  font-size: 20px;
}

.ios-widget-large .widget-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.3px;
}

.ios-widget-large .widget-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-widget-large .widget-status {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ios-widget-large .widget-subtitle {
  font-size: 15px;
  color: #86868b;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .ios-widgets-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .ios-widget-large {
    grid-column: span 1;
  }
  
  .ios-widget {
    padding: 16px;
    border-radius: 18px;
  }
  
  .widget-icon {
    width: 48px;
    height: 48px;
  }
  
  .widget-icon i {
    font-size: 20px;
  }
  
  .widget-value {
    font-size: 16px;
  }
  
  .ios-widget-large .widget-status {
    font-size: 24px;
  }
}

/* iPhone Frame for Contact Section */
.iphone-frame-wrapper {
  padding: 40px 20px;
  perspective: 1000px;
}

.iphone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1d1d1f;
  border-radius: 42px;
  padding: 8px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2px rgba(0, 0, 0, 0.2);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.iphone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

/* iPhone Notch */
.iphone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 28px;
  background: #1d1d1f;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* iPhone Content */
.iphone-content {
  padding: 50px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.contact-phone-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-phone-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.contact-phone-subtitle {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 400;
}

.contact-phone-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.contact-phone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-phone-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.25);
}

.contact-phone-item i {
  font-size: 24px;
  width: 32px;
  text-align: center;
  opacity: 0.9;
}

.contact-phone-item span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
  .iphone-frame-wrapper {
    padding: 30px 20px;
  }
  
  .iphone-frame {
    width: 240px;
    height: 500px;
    border-radius: 36px;
    transform: none;
  }
  
  .iphone-screen {
    border-radius: 30px;
  }
  
  .iphone-screen::before {
    width: 120px;
    height: 24px;
  }
  
  .contact-phone-title {
    font-size: 24px;
  }
  
  .contact-phone-item {
    padding: 16px;
  }
  
  .contact-phone-item i {
    font-size: 20px;
  }
  
  .contact-phone-item span {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .iphone-frame {
    width: 200px;
    height: 420px;
    border-radius: 30px;
  }
  
  .iphone-screen {
    border-radius: 24px;
  }
  
  .iphone-screen::before {
    width: 100px;
    height: 20px;
  }
  
  .contact-phone-title {
    font-size: 20px;
  }
  
  .contact-phone-subtitle {
    font-size: 14px;
  }
  
  .contact-phone-items {
    gap: 12px;
  }
  
  .contact-phone-item {
    padding: 12px;
    gap: 12px;
  }
  
  .contact-phone-item i {
    font-size: 18px;
    width: 28px;
  }
  
  .contact-phone-item span {
    font-size: 13px;
  }
}

/* iOS Showcase Style - Portfolio Cards */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

.row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.ios-project-card {
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.ios-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ios-project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

/* Project specific gradient backgrounds */
.ios-project-image.bg-asm {
  background: linear-gradient(35deg, #ffffff 10%, #30906a 60%, #3fbf9b);
}

.ios-project-image.bg-homema {
  background: linear-gradient(35deg, #ffffff 10%, #ffc209 50%, #ffda56);
}

.ios-project-image.bg-votemai {
  background: linear-gradient(35deg, #ffffff 5%, #030329 50%, #1a1a40);
}

.ios-project-image.bg-olaf {
  background: linear-gradient(35deg, #ffffff 0%, #f0f0f5 100%);
}


.ios-project-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.ios-project-card:hover .ios-project-image img {
  transform: scale(1.05);
}

.ios-project-dock {
  margin: -16px 20px 24px 20px;
  position: relative;
  z-index: 10;
}

.ios-project-content {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-project-card:hover .ios-project-content {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16),
              0 4px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.ios-project-title {
  font-size: 24px;
  font-weight: 400;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.ios-project-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
  letter-spacing: -0.2px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.ios-project-desc {
  font-size: 15px;
  font-weight: 400;
  color: #86868b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .ios-project-card {
    border-radius: 18px;
  }
  
  .ios-project-image {
    padding: 16px;
  }
  
  .ios-project-image img {
    width: 90%;
    height: 90%;
    border-radius: 10px;
  }
  
  .ios-project-dock {
    margin: -12px 16px 20px 16px;
  }
  
  .ios-project-content {
    padding: 20px 16px;
    border-radius: 16px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.60);
  }
  
  .ios-project-title {
    font-size: 22px;
  }
  
  .ios-project-subtitle {
    font-size: 16px;
  }
  
  .ios-project-desc {
    font-size: 14px;
  }
}

/* Project badges and buttons */
.tech-badge-minimal {
  background-color: #ffffff !important;
  color: #1d1d1f !important;
  font-size: 0.6rem !important;
  padding: 0.25rem 0.5rem !important;
  font-weight: 400;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  line-height: 1.2;
}

.tech-badge-minimal i {
  font-size: 0.6rem !important;
  margin-right: 0.25rem !important;
}

.tech-badge-minimal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0.95;
}

.ios-project-content .btn {
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-project-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.ios-project-content .btn:first-child:hover {
  background-color: #1a1e22 !important;
}

.ios-project-content .btn:last-child:hover {
  background-color: #0056b3 !important;
}

/* GitHub icon-only button - minimal size */
.github-icon-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
}

.github-icon-btn i {
  font-size: 14px !important;
  margin: 0 !important;
}

/* Demo button - outline style, same size as GitHub */
.demo-btn-outline {
  width: auto !important;
  height: 32px !important;
  padding: 0 0.75rem !important;
  min-height: 32px !important;
  background-color: transparent !important;
  color: #1d1d1f !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 400 !important;
}

.demo-btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Minimal Experience Cards with Accordion - iOS Glass Effect */
.experience-card-minimal {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
              0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.experience-card-minimal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

.experience-card-minimal:hover {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 
              0 4px 12px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.experience-card-header {
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.experience-card-header:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.experience-card-header .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.experience-card-header .row > [class*="col"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.experience-logo-minimal {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.experience-card-minimal:hover .experience-logo-minimal {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.experience-logo-minimal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.experience-title {
  font-size: 1.35rem;
  color: #1d1d1f;
  font-weight: 500;
}

.experience-company {
  font-size: 1rem;
  color: #86868b;
  font-weight: 400;
}

.experience-toggle-icon {
  color: #86868b;
  font-size: 0.875rem;
  transition: transform 0.3s ease, color 0.2s ease;
}

.experience-card-minimal.expanded .experience-toggle-icon {
  transform: rotate(180deg);
  color: #1d1d1f;
}

.experience-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.experience-card-minimal.expanded .experience-card-details {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.experience-details-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.experience-card-minimal.expanded .experience-details-content {
  opacity: 1;
  transform: translateY(0);
}

.experience-check-icon {
  color: #34c759;
  font-size: 0.875rem;
}

.experience-project-highlight {
  background: rgba(0, 122, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid #007aff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.experience-project-highlight i {
  color: #007aff;
}

@media (max-width: 768px) {
  .experience-card-minimal {
    margin-left: 0;
    margin-right: 0;
  }
  
  .experience-card-header {
    padding: 1rem;
  }
  
  .experience-card-header .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .experience-card-header .row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .experience-logo-minimal {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  
  .experience-title {
    font-size: 1.15rem;
    word-wrap: break-word;
  }
  
  .experience-company {
    font-size: 0.9rem;
    word-wrap: break-word;
  }
  
  .experience-card-minimal.expanded .experience-card-details {
    padding: 0 1rem 1rem 1rem;
    padding-top: 1rem;
  }
  
  .experience-details-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 576px) {
  .experience-card-header {
    padding: 0.875rem;
  }
  
  .experience-card-header .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  
  .experience-card-header .row > [class*="col"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  .experience-card-minimal.expanded .experience-card-details {
    padding: 0 0.875rem 0.875rem 0.875rem;
    padding-top: 0.875rem;
  }
}

/* iOS Community Cards */
.ios-community-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
              0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ios-community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

.ios-community-card:hover {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 
              0 4px 12px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.ios-community-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ios-community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-community-card:hover .ios-community-image img {
  transform: scale(1.05);
}

.ios-community-content {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 18px;
  margin: -16px 16px 20px 16px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-community-card:hover .ios-community-content {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16),
              0 4px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.ios-community-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.2px;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.ios-community-title i {
  color: #1d1d1f;
  opacity: 0.7;
}

.ios-community-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #86868b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .ios-community-content {
    padding: 1.25rem;
    margin: -12px 12px 16px 12px;
  }
  
  .ios-community-title {
    font-size: 1rem;
  }
  
  .ios-community-desc {
    font-size: 0.8125rem;
  }
  
  .ios-community-image {
    height: 180px;
  }
}

/* Visual Highlights Section */
#portfolio {
  position: relative;
  overflow: hidden;
}

#portfolio .container {
  position: relative;
  z-index: 1;
}

.visual-highlight-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 35%, rgba(163, 0, 0, 0.25), rgba(248, 248, 255, 0));
  opacity: 0;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Visual Highlights Carousel Styles */
.visual-highlights-carousel-wrapper {
  padding: 0 60px;
  margin: 0 auto;
  max-width: 1400px;
  position: relative;
}

.visual-highlights-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1rem;
  will-change: transform;
  align-items: stretch;
}

.carousel-slide {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 0;
  display: flex;
}

.carousel-slide .ios-project-card {
  width: 100%;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  font-size: 18px;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .visual-highlights-carousel-wrapper {
    padding: 0 50px;
  }
  
  .carousel-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .visual-highlights-carousel-wrapper {
    padding: 0 40px;
  }
}

/* iOS Widgets Section */
.ios-widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ios-widget {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.ios-widget:nth-child(1) { animation-delay: 0.1s; }
.ios-widget:nth-child(2) { animation-delay: 0.2s; }
.ios-widget:nth-child(3) { animation-delay: 0.3s; }
.ios-widget:nth-child(4) { animation-delay: 0.4s; }
.ios-widget:nth-child(5) { animation-delay: 0.5s; }
.ios-widget:nth-child(6) { animation-delay: 0.6s; }
.ios-widget:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ios-widget:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Pulse Animation */
.ios-widget-pulse:hover {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-4px) scale(1.02);
  }
  50% {
    transform: translateY(-4px) scale(1.05);
  }
}

/* Gradient Shimmer Effect */
.gradient-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.ios-widget-gradient:hover .gradient-shimmer {
  animation: shimmer 1.5s infinite;
}

/* Profile Picture Animation */
.ios-widget-profile:hover .profile-img {
  transform: scale(1.1) rotate(5deg);
}

.ios-widget-profile:active .profile-img {
  transform: scale(0.95) rotate(-5deg);
}

/* Chevron Animation */
.ios-chevron {
  transition: transform 0.3s ease;
}

.ios-widget-pulse:hover .ios-chevron {
  animation: chevronBounce 0.6s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Icon Animations */
.ios-icon-rotate:hover {
  animation: rotate 1s ease-in-out infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ios-icon-bounce:hover {
  animation: bounce 0.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.ios-icon-pulse:hover {
  animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.ios-icon-shake:hover {
  animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

/* Plus Icon Rotation */
.ios-widget-plus:hover .ios-plus-rotate {
  transform: rotate(90deg);
}

.ios-widget-plus:active .plus-icon-wrapper {
  transform: scale(0.9);
}

.plus-icon-wrapper {
  transition: transform 0.2s ease;
}

/* Counter Animation */
.counter {
  display: inline-block;
}

/* Status Pulse Animation */
@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* AI Pulse Animation */
@keyframes aiPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* Interactive Card Arrow */
.interactive-card .fa-arrow-right {
  transition: transform 0.3s ease;
}

/* Navbar Padding */
.navbar-padding {
  padding-left: 40px;
  padding-right: 40px;
}

/* Navbar Responsive Padding */
@media (max-width: 768px) {
  .navbar-padding {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .ios-widgets-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 16px !important;
  }
  
  .ios-widget[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ios-widgets-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .ios-widget[style*="grid-column: span 2"] {
    grid-column: span 2 !important;
  }
}

/* TikTok embed adjustments */
.tiktok-embed {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: inherit !important;
}

/* Project Modal Popup Styles */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.modal-active {
  opacity: 1;
  visibility: visible;
}

.project-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
}

.project-modal.modal-active .project-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
  color: #2c2c2c;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-modal-close:hover {
  background: #ffffff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-modal-body {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.project-modal-image-container {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f8f8ff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.project-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-modal-info {
  padding: 32px;
}

.project-modal-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-modal-subtitle {
  font-size: 18px;
  color: #a30000;
  margin-bottom: 16px;
  font-weight: 500;
}

.project-modal-description {
  font-size: 16px;
  line-height: 1.7;
  color: #55555c;
  margin-bottom: 24px;
}

.project-modal-tech {
  padding: 20px;
  background: #f8f8ff;
  border-radius: 12px;
  margin-bottom: 16px;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-card-clickable {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(15, 15, 30, 0.25) !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .project-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 20px;
  }

  .project-modal-image-container {
    height: 200px;
    padding: 20px;
  }

  .project-modal-info {
    padding: 24px 20px;
  }

  .project-modal-title {
    font-size: 24px;
  }

  .project-modal-subtitle {
    font-size: 16px;
  }

  .project-modal-description {
    font-size: 15px;
  }

  .project-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Smooth scrollbar for modal */
.project-modal-body::-webkit-scrollbar {
  width: 8px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: #a30000;
  border-radius: 4px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
  background: #8a0000;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hide Navigation on Mobile */
  nav.sticky-top.backdrop-blur-custom.primary-nav {
    display: none !important;
  }

  /* Hide scroll progress on mobile */
  .scroll-progress {
    display: none !important;
  }

  /* Add spacing between sections on mobile */
  section.container-fluid {
    margin-bottom: 2.5rem !important;
  }

  section {
    margin-bottom: 2.5rem !important;
  }

  /* Increase padding for sections on mobile */
  section.container-fluid > .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Profile section mobile spacing */
  section#profile.container-fluid {
    padding-bottom: 2rem !important;
  }

  section#profile.container-fluid > .container {
    padding-top: 2rem !important;
  }

  /* Skills section mobile spacing */
  section.container-fluid[style*="background-color: #f8f8ff"] {
    padding-bottom: 2rem !important;
  }

  /* Automation section mobile spacing */
  section.container-fluid[style*="linear-gradient"] {
    padding-bottom: 2rem !important;
  }

  /* Portfolio section mobile spacing */
  section#portfolio.container-fluid {
    padding-bottom: 2rem !important;
  }

  section#portfolio.container-fluid > .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* UI/UX Projects section mobile spacing */
  section.container-fluid[style*="background-color: #ffffff"] {
    padding-bottom: 2rem !important;
  }

  section.container-fluid[style*="background-color: #ffffff"] > .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Portfolio List section mobile spacing */
  section#portfolio-list.container-fluid {
    padding-bottom: 2rem !important;
  }

  /* Experience section mobile spacing */
  section#experience.container-fluid {
    padding-bottom: 2rem !important;
  }

  section#experience.container-fluid > .container {
    padding-top: 2rem !important;
  }

  /* Certificates section mobile spacing */
  section#certificates {
    padding-bottom: 2rem !important;
  }

  section#certificates > .container {
    padding-top: 2rem !important;
  }

  /* Animated Divider mobile spacing */
  .container-fluid[style*="background-color: #f8f8ff"]:not(section) {
    padding-bottom: 1rem !important;
    padding-top: 1.5rem !important;
  }

  /* Adjust container padding for better mobile spacing */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Reduce margin for better mobile layout */
  .row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
  }

  .row > * {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Hero section mobile adjustments */
  header#home {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Show navigation on tablet */
  nav.sticky-top.backdrop-blur-custom.primary-nav {
    display: block !important;
  }

  /* Moderate spacing for tablet */
  section.container-fluid {
    margin-bottom: 1.5rem !important;
  }
}