/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f172a; /* deep navy */
  color: #fff;
  line-height: 1.6;
}

/* HEADER */
.site-header {
   background: linear-gradient(90deg, #0f172a, #1e3a8a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  height: 70px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;

}
.logo:hover{
    cursor: pointer;
}
.logo img { height: 40px; 
  filter:drop-shadow( 0 12px 30px rgb(240, 242, 243));
}
.nav-links a {
  color: white;
  margin-left: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #38bdf8; }

#skills-carousel {
  position: relative;
  margin: 40px auto;
  width: 340px;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 25px;

  background: rgba(15,23,42,0.6); backdrop-filter: blur(12px);  
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 12px 30px rgba(56,189,248,0.4);
  animation: floatBox 4s ease-in-out infinite;
}

#skills-carousel:hover {
  cursor: pointer;
  filter: drop-shadow(0 12px 30px rgba(56,189,248,0.3))
          drop-shadow(0 12px 30px rgba(14,23,19,0.6));
}

#skills-carousel img {
  position: absolute;
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0;
  transform: scale(0.85) rotate(-4deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
#skills-carousel img.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Floating animation */
@keyframes floatBox {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
/* HERO */
.hero-section {
  height: 100vh;
  background: linear-gradient(135deg, #040913, #2f519a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  color: #fff;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1150px;
  width: 100%;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}


.speech-bubble {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid #38bdf8;
  color: #38bdf8;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  animation: floatBubble 4s ease-in-out infinite;
}
@keyframes floatBubble {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}


.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-content h1 .highlight {
  color: #38bdf8;
}

.hero-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #cce0ff;
}

.hero-subtext {
  font-size: 18px;
  margin-bottom: 30px;
  color: #e6f0ff;
  max-width: 500px;
}

.cta-buttons .btn {
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  margin: 0 12px 12px 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}
.btn.primary:hover {
  background: #1e40af;
  transform: translateY(-4px);
}

.btn.secondary {
  border: 2px solid #38bdf8;
  color: #38bdf8;
}
.btn.secondary:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: translateY(-4px);
}

.about-section {
  padding: 100px 20px;
   background: linear-gradient(90deg, #1a2746, #2e59d0);
  color: #fff;
  text-align: center;
}

.about-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-header .subtitle {
  font-size: 18px;
  color: #cce0ff;
  margin-bottom: 50px;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image img {
  width: 340px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}
.about-image img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.about-text {
  max-width: 550px;
  text-align: left;
}

.about-text .intro {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #e6f0ff;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: rgba(255,255,255,0.08);
  padding: 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
}

.about-stats {
  display: flex;
  gap: 25px;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.stat-box {
  background: rgba(255,255,255,0.12);
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  flex: 1;
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.stat-box h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #38bdf8; /* bright accent blue */
}
.stat-box p {
  font-size: 14px;
  color: #e6f0ff;
}

.cv-btn {
  display: inline-block;
  padding: 14px 28px;
  margin-left: 190px;
  background: #2563eb;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cv-btn:hover {
  background: #1e40af;
  transform: translateY(-4px);
  cursor: pointer;
}

/* PROJECTS */
.projects-section {
  padding: 80px 80px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  text-align: center;
}
.projects-header .section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}
.projects-header .section-subtitle {
  font-size: 18px;
  color: #d0d6e2;
  margin-bottom: 45px;
  display: block;
}

/* Filter buttons */
.filter-controls {
  margin-bottom: 40px;
}
.filter-controls .control {
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  margin: 0 8px;
  transition: all 0.3s ease;
}
.filter-controls .control.active,
.filter-controls .control:hover {
  background: #51A1EC;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(81,161,236,0.5);
}

/* Desktop stays grid */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin: 0 auto;
}

.project-item {
  background: #97939337;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 320px; /* fixed card width */
}

.project-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 20px rgba(81,161,236,0.4);
  cursor: pointer;
}

.project-wrapper img,
.project-wrapper video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Text label at bottom */
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(23, 23, 23, 0.544); /* light background for readability */
  color: #fff; /* black text */
  text-align: center;
  max-height: 80px; 
}

.project-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-info p {
  font-size: 14px;
  color: #b8b7b7;
}


.project-item:hover .project-info {
  background: rgba(81,161,236,0.7);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px; /* extra spacing around content */
}

.lightbox-content {
  max-width: 1200px; /* bigger screen container */
  width: 90%;
  text-align: center;
  color: white;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  animation: fadeIn 0.4s ease;
}

/* Media inside lightbox */
#lightbox-media-container img,
#lightbox-media-container video {
  max-width: 70%;   /* smaller size relative to container */
  max-height: 70vh; /* keep it smaller vertically */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(81,161,236,0.5);
  margin: 20px auto;
  transition: transform 0.3s ease;
}
#lightbox-media-container img:hover,
#lightbox-media-container video:hover {
  transform: scale(1.05);
}

/* Title & description */
#lightbox-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
}
#lightbox-desc {
  font-size: 16px;
  color: #d0d6e2;
  margin-top: 6px;
}

/* Close button */
.close-lightbox {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-lightbox:hover {
  color: #51A1EC;
  cursor:pointer;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


/* SKILLS */
.skills-main {
  padding: 80px 80px;
  background: linear-gradient(135deg, #0c1837, #3d6aca);
  text-align: center;
}
.skills-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #ffffff;
}
.skills-header .header-subtitle {
  font-size: 18px;
  color: #d0d6e2; /* softer gray-blue for readability */
  margin-bottom: 40px; /* extra spacing below subtitle */
  display: block;
}
.skills-bento {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin: 0 auto;

}
.bento-item {
  background: rgba(255,255,255,0.08);
  padding: 25px 70px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  
}
.bento-item:hover {
  transform: translateY(-6px) scale(1.05);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 6px 15px rgba(81,161,236,0.4);
  cursor:pointer;
}
.skill-icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}
.bento-item h3 {
  font-size: 18px;
  color: #ffffff;
  margin-top: 8px;
}

/* CONTACT */
.contact-section {
  padding: 60px 20px;
   background: #0f172a;
  text-align: center;
}
.contact-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffffff;
}
.contact-header p {
  margin-bottom: 20px;
  color: #d0d6e2;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.social-icons a {
  color: #ffffff; /* default white */
  font-size: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a2435;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.social-icons a:hover {
  background: #51A1EC; /* lively blue glow */
  color: #ffffff;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 6px 15px rgba(81,161,236,0.6);
}
.social-icons img {
  height: 28px;
  filter: brightness(0) invert(1); /* force white logos */
  transition: transform 0.3s ease;
}
.social-icons a:hover img {
  transform: rotate(10deg) scale(1.1);
}
.social-icons a:hover i {
  transform: rotate(10deg) scale(1.1);
}
/* FOOTER */
.site-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}
.site-footer p {
  margin: 0;
  color: #a9cce3;
}
/* BUTTONS */
.btn.primary, .cv-btn {
  background: #2563eb;
  color: #fff;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn.primary:hover, .cv-btn:hover {
  background: #1e40af;
  transform: translateY(-4px);
}
.scroll-btn{
    display:none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* HERO */
  .site-header {
    height: 55px;
    padding: 0 0px;
    width: 100vw;              /* force full viewport width */
    left: 0;
    right: 0;
    overflow: hidden;  
  }

.header-container {
  width: 100%;
  padding: 0 15px;            /* consistent spacing */
  box-sizing: border-box;
}
  .logo img {
    height: 30px;
    filter: drop-shadow(0 4px 10px rgba(56,189,248,0.5));
  }

  .nav-links {
    display: none; /* hide desktop links */
  }

  /* Example hamburger menu button */
  .menu-toggle {
    display: block;
    font-size: 24px;
    color: #38bdf8;
    cursor: pointer;
  }
  .hero-section {
    padding: 120px 20px;
    text-align: center;
    height: 100vh;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .speech-bubble {
    margin: 0 auto 20px;
    font-size: 16px;
    padding: 10px 20px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .hero-subtext {
    font-size: 16px;
    margin: 20px auto;
    max-width: 90%;
  }

  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-buttons .btn {
    margin: 8px;
    padding: 12px 20px;
    font-size: 16px;
  }
  .robot{
    margin-right:40px;
  }
  .author{
margin-right:40px;
  }
  #skills-carousel {
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, rgba(30,58,138,0.85), rgba(37,99,235,0.85));
    box-shadow: 0 8px 20px rgba(56,189,248,0.4);
    display:none;
  }
  /* ABOUT */
  .about-container {
    flex-direction: column;
    align-items: center;   /* center everything neatly */
    text-align: center;
    gap: 30px;             /* tighter spacing */
    padding: 0 20px;       /* balanced horizontal padding */
  }

  .about-image img {
    width: 200px;          /* smaller, consistent image size */
    border-radius: 16px;
  }

  .about-text {
    max-width: 100%;       /* full width on mobile */
    text-align: center;
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr); /* two per row for balance */
    gap: 12px;
    width: 100%;
  }
  .project-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}


  .about-card {
    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
  }

  .about-stats {
    flex-direction: row;   /* stats side by side */
    justify-content: center;
    gap: 15px;
  }

  .stat-box {
    padding: 15px;
    border-radius: 10px;
  }

  .stat-box h3 {
    font-size: 20px;
  }

  .stat-box p {
    font-size: 12px;
  }

  .cv-btn {
    margin: 20px auto 0;
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
  }
/* PROJECTS - Horizontal Scroll */
.projects-section {
  padding: 60px 20px;
  min-width: auto;
  position: relative;
}

.filter-controls .control {
  margin: 10px 0px; /* more breathing room */
}
 .projects-grid {
    display: flex;
     flex-wrap: nowrap !important;   /* force single row */
    overflow-x: auto !important;    /* enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;  /* snap cards neatly */
    gap: 20px;
    padding: 10px;
    justify-content: start;
  }

  .project-item {
    flex: 0 0 80%;                  /* each card ~80% of viewport */
    scroll-snap-align: start;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 6px 15px rgba(56,189,248,0.3);
  }


  .project-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(56,189,248,0.4);
  }
.project-wrapper img,
.project-wrapper video {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-info {
  padding: 12px;
  background: rgba(15,23,42,0.85);
  text-align: center;
}
.project-info h3 {
  font-size: 16px;
  color: #38bdf8;
}
.project-info p {
  font-size: 14px;
  color: #cce0ff;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(56,189,248,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
  display: block !important;
}

.scroll-btn.left {
  left: 10px;
  top:520px;
}

.scroll-btn.right {
  right: 10px;
  top:520px;
}
.scroll-btn:disabled {
  background-color: #ccc;      /* grey background */
  color: #666;                 /* grey text */
  cursor: not-allowed;         /* disabled cursor */
  opacity: 0.6;                /* faded look */
}

.lightbox-content {
    width: 95%;
    max-width: none;
    padding: 15px;
    border-radius: 8px;
  }

/* Media inside lightbox */
#lightbox-media-container img,
#lightbox-media-container video {
  max-width: 100%;   /* smaller size relative to container */
  max-height: 100vh; /* keep it smaller vertically */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(81,161,236,0.5);
  margin: 20px auto;
  transition: transform 0.3s ease;
}
#lightbox-media-container img:hover,
#lightbox-media-container video:hover {
  transform: scale(1.05);
}

  #lightbox-title { font-size: 20px; }
  #lightbox-desc { font-size: 14px; }
  .close-lightbox { font-size: 28px; top: 10px; right: 15px; }
   .skills-main {
    padding: 60px 20px;
    background: linear-gradient(135deg, #10182e, #1e3a8a);
  }

.skills-bento {
  display: flex;
  flex-wrap: wrap;              /* allow items to wrap to new rows */
  justify-content: center;      /* center items in each row */
  gap: 20px;                    /* spacing between items */
  margin: 0 auto;
}

.bento-item {
  flex: 0 1 160px;              /* base width for each item */
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.bento-item:hover {
  background: rgba(56,189,248,0.15);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 15px rgba(56,189,248,0.4);
  cursor: pointer;
}
  /* CONTACT */
  .social-icons {
    flex-wrap: wrap;
    gap: 20px;
  }
}
/* Tablet view (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
 .skills-main {
    width: 100%;              /* make section fluid */
    max-width: 1024px;        /* cap at tablet width */
    margin: 0 auto;
    padding: 60px 40px;       /* balanced padding */
  }

  .skills-bento {
    display: flex;
    flex-wrap: wrap;          /* allow wrapping */
    justify-content: center;  /* center items in each row */
    gap: 25px;
  }

  .bento-item {
    flex: 0 1 220px;          /* each item ~220px wide */
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }

  .bento-item:hover {
    background: rgba(56,189,248,0.15);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 15px rgba(56,189,248,0.4);
    cursor: pointer;
  }
  .hero-content{
    padding-left: 87px;
  }
 .hero-content .typing-text{
    margin-left:30px;
 }
  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;   /* center items in the row */
  }

  .project-item {
    width: 300px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 6px 15px rgba(56,189,248,0.3);
  }

  .projects-section{
    height:auto;
  }

  .project-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(56,189,248,0.4);
  }

   .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-content{
    margin-left: 130px;
  }
  .speech-bubble{
    margin-left: 160px;
  }
  .typing-text{
    margin-left: 100px;
  }
  .cta-buttons{
    margin-left:40px;
  }
  .hero-content p {
    margin-left:0px;
    text-align: center;
  }
  .hero-content h1{
    margin-left:0px;
  }
  #skills-carousel {
    margin-top: 20px;
    align-self: flex-start;
  }
  .lightbox-content {
    width: 100%;
    max-width: none;
    padding: 15px;
    border-radius: 8px;
  }

/* Media inside lightbox */
#lightbox-media-container img,
#lightbox-media-container video {
  width: 100%;   /* smaller size relative to container */
  max-height: 100vh; /* keep it smaller vertically */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(81,161,236,0.5);
  margin: 20px auto;
  transition: transform 0.3s ease;
}
#lightbox-media-container img:hover,
#lightbox-media-container video:hover {
  transform: scale(1.05);
}
.scroll-btn{
    display:none !important;
}

}
@media (max-width: 768px) {
  .projects-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px;
    justify-content: flex-start !important;
  }

  .project-item {
    flex: 0 0 85% !important;   /* each card ~85% of viewport */
    scroll-snap-align: center;
    margin: 0 auto;
  }
}
