:root {
  --bg-color: #ffffff;
  --toggle-bg: #ccc;
  --toggle-circle: #ffffff;
  --heading-bg: #eef0f2;
  --section-title: #3b434a;
  --text-color: #444444;
  --h3-title: #3b434a;
  --h5-background: #eef0f2;
  --icon-box-background: #ffffff;
  --card-border: #e0e0e0; /* Added for definition */
  --a-text: #111;
  --box-shadow: 0px 5px 15px rgba(214, 215, 216, 0.4);
  --form-color: rgb(255, 255, 255);
  --form-button: #ffb727;
  --form-button-hover: #ffc85a;
  --meta-text: #666;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --toggle-bg: #444;
  --toggle-circle: #f5f5f5;
  --heading-bg: rgba(255, 255, 255, 0.05);
  --section-title: #f4f4f4;
  --text-color: #c3c3c3;
  --h3-title: #e0e0e0;
  --h5-background: #1e1e1e;
  --icon-box-background: #1e1e1e;
  --card-border: #333333; /* Dark border */
  --a-text: #e8e7e7;
  --box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.6);
  --form-color: rgb(64, 64, 64);
  --form-button: #c18d26;
  --form-button-hover: #977938;
  --meta-text: #888;
}

/* --- REPO SECTION STYLES --- */
section.services {
    background-color: var(--bg-color);
    padding: 60px 0;
    transition: background 0.3s ease;
}

.section-title h2 {
    color: var(--section-title);
    font-weight: 700;
}

.section-title p {
    color: var(--text-color);
}

/* Card Design */
.repo-card {
    background: var(--icon-box-background);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
}

.repo-card:hover {
    transform: translateY(-5px);
    border-color: var(--form-button);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.repo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--h3-title);
    margin: 0;
    word-break: break-word;
}

.repo-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Limit description to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom Metadata Row */
.repo-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--meta-text);
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--form-button); /* Default color */
}

.repo-link-btn {
    margin-left: auto;
    color: var(--form-button);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.repo-link-btn:hover {
    color: var(--form-button-hover);
}

/* Pagination Styling */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-item .page-link {
    background-color: var(--icon-box-background);
    border-color: var(--card-border);
    color: var(--text-color);
}

.page-item.disabled .page-link {
    background-color: var(--h5-background);
    opacity: 0.6;
}

.page-item .page-link:hover {
    background-color: var(--form-button);
    color: #fff;
    border-color: var(--form-button);
}

/* Certificate */
/* Container for the window */
/* --- 1. CARD GRID DESIGN --- */
.cert-card {
  background: var(--icon-box-background, #fff);
  border: 1px solid var(--card-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  height: 100%; /* Makes all cards same height */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative; /* Keep context */
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-color: var(--form-button, #ffb727);
  cursor: pointer;
}

/* Image Wrapper - Forces images to look uniform */
.cert-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 Aspect Ratio container */
  background-color: #f8f9fa;
  overflow: hidden;
}

.cert-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows whole certificate without cropping */
  padding: 10px;       /* White space around cert */
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.05);
}

.cert-body {
  padding: 20px;
  flex-grow: 1; /* Pushes content to fill height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--h3-title, #333);
}

.cert-issuer {
  font-size: 0.9rem;
  color: var(--text-color, #666);
  margin-bottom: 15px;
}

.cert-date {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- 2. MODAL (POPUP) FIX --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 100000; /* SUPER HIGH Z-INDEX TO PREVENT FREEZE */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal.active {
  display: flex; /* Flex centers everything */
}

/* The Image inside Modal */
.modal-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

/* The Close Button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  z-index: 100001;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover {
  color: var(--form-button, #ffb727);
}

/* Caption Text */
#modalCaption {
  margin-top: 15px;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- PAGINATION STYLES --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background-color: var(--icon-box-background, #fff);
    border: 1px solid var(--card-border, #e0e0e0);
    color: var(--text-color, #444);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.page-btn:hover {
    border-color: var(--form-button, #ffb727);
    color: var(--form-button, #ffb727);
    transform: translateY(-2px);
}

.page-btn.active {
    background-color: var(--form-button, #ffb727);
    color: #fff; /* Text inside active button should be white */
    border-color: var(--form-button, #ffb727);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: rgba(0,0,0,0.05);
}
/*end of certificate*/




.theme-switch {
  display: inline-block;
  height: 30px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

/* Icons inside the slider */
.slider .bi {
  font-size: 14px;
  z-index: 1;
  transition: 0.4s;
  color: #fff;
}

.sun { opacity: 0; transform: rotate(-90deg); }
.moon { opacity: 1; }

/* The Moving Circle */
.slider:before {
  background-color: var(--primary);
  bottom: 3px;
  content: "";
  height: 22px;
  left: 4px;
  position: absolute;
  transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
  width: 22px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px var(--primary);
}

/* --- CHECKED STATE (Light Mode) --- */
input:checked + .slider {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

input:checked + .slider:before {
  transform: translateX(30px);
  background-color: #fbbf24; /* Yellow sun color */
  box-shadow: 0 0 10px #fbbf24;
}

/* Icon Animation on Toggle */
input:checked + .slider .sun { opacity: 1; transform: rotate(0); color: #d97706; }
input:checked + .slider .moon { opacity: 0; transform: rotate(90deg); }
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}
canvas#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Puts it behind text */
  pointer-events: none; /* Allows clicking through it */
  opacity: 1;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Optional: Slight fade in Light Mode if it's too distracting */
body.light-mode canvas#neural-bg {
  opacity: 0.8;
}
a {
  color: #ffb727;
  text-decoration: none;
}

a:hover {
  color: #ffc85a;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--form-button);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 28px;
  color: var(--a-text);
  line-height: 0;
}
.back-to-top:hover {
  background: var(--form-button-hover);
  color: var(--a-text);
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  z-index: 997;
  transition: all 0.5s;
  height: 80px;
  background: rgba(25, 28, 31, 0.8);
}
#header.header-transparent {
  background: transparent;
}
#header.header-scrolled {
  height: 60px;
  background: rgba(25, 28, 31, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}
.navbar li {
  position: relative;
}
.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
  font-size: 12px;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}
.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}
.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #ffb727;
}
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}
.navbar .dropdown ul li {
  min-width: 200px;
}
.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  color: #3b434a;
  letter-spacing: 1px;
}
.navbar .dropdown ul a i {
  font-size: 12px;
}
.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: #ffb727;
}
.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}
.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}
.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}
@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: white;
  mix-blend-mode: difference;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 1040px) {
  .mobile-nav-toggle {
    display: block;
  }
  #header {
    justify-content: flex-start !important;
    padding-left: 20px;
}
  .navbar ul {
    display: none;
  }
}
.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(36, 41, 46, 0.9);
  transition: 0.3s;
  z-index: 999;
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 65px;
  right: 30px;
}
.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: var(--icon-box-background);
  overflow-y: auto;
  transition: 0.3s;
}
.navbar-mobile a, .navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--h3-title);
}
.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #ffb727;
}
.navbar-mobile .getstarted, .navbar-mobile .getstarted:focus {
  margin: 15px;
}
.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}
.navbar-mobile .dropdown ul li {
  min-width: 200px;
}
.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}
.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}
.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: #ffb727;
}
.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}
h1,h2,h3,h4,h5,span,p,a,img,.product-card,.cert-card,.repo-card,.icon-box,.card-body,footer,.row,button{z-index: 2;}
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    z-index: 2;
  width: 100%;
  height: 100vh;
  background: url("../img/index.webp") top right;
  background-size: cover;
  position: relative;
  background-position: center;
}
#hero:before {
  content: "";
  background: rgba(0, 0, 0, 0.65);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}
#hero .hero-container {
  position: absolute;
  bottom: 0;
  top: 200px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 15px;
}
#hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-family: "Satisfy", serif;
  color: #fff;
  mix-blend-mode: difference;
}
#hero h2 {
  color: #eee;
  margin-bottom: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#hero .btn-scroll {
  transition: 0.4s;
  color: rgba(255, 255, 255, 0.6);
  animation: up-down 1s ease-in-out infinite alternate-reverse both;
}
#hero .btn-scroll i {
  font-size: 48px;
}
#hero .btn-scroll:hover {
  color: #ffb727;
}

#hero .btn {
  background-color: DodgerBlue;
  border: none;
  color: white;
  padding: 12px 30px;
  cursor: pointer;
  font-size: 20px;
}

/* Darker background on mouse-over */
#hero .btn:hover {
  background-color: RoyalBlue;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}
@media (max-width: 575px) {
  #hero h1 {
    font-size: 40px;
  }
  #hero h2 {
    text-align: center;
    margin-bottom: 30px;
  }
}

@-webkit-keyframes up-down {
  0% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(-5px);
  }
}

@keyframes up-down {
  0% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(-5px);
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg {
  background-color: white;
}

.section-title {
  text-align: center;
  padding: 30px 0;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  color: var(--section-title);
  position: relative;
  z-index: 2;
}
.section-title span {
  position: absolute;
  top: 30px;
  color: var(--heading-bg);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 0;
}
.section-title p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 575px) {
  .section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .section-title span {
    font-size: 38px;
  }
}

/*--------------------------------------------------------------
# About Me
--------------------------------------------------------------*/
.about{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.about .content h3 {
  font-weight: 700;z-index: 2;
  font-size: 26px;
  color: var(--h3-title);
  text-transform: uppercase;
}
.about .content ul {
  list-style: none;
  padding: 0;
}
.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.about .content ul strong {
  margin-right: 10px;
}
.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #ffb727;
  line-height: 0;
}
.about .content p:last-child {
  margin-bottom: 0;
}
.about .content .count-box {
  width: 100%;
}
.about .content .count-box i {
  display: block;
  font-size: 36px;
  color: #ffb727;z-index: 2;
  float: left;
  line-height: 0;
}
.about .content .count-box span {
  font-size: 36px;
  line-height: 30px;
  display: block;
  font-weight: 700;
  color: #3b434a;z-index: 2;
  margin-left: 50px;
}
.about .content .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 50px;z-index: 2;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #5d6a75;
}
.about .content .count-box a {
  font-weight: 600;z-index: 2;
  display: block;
  margin-top: 20px;
  color: #5d6a75;
  font-size: 15px;
  font-family: "Satisfy", serif;
  transition: ease-in-out 0.3s;
}
.about .content .count-box a:hover {
  color: #82909c;
}
/* Base Image Style */
.about .image {
  background: url("../img/lucky.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
  z-index: 2;
  /* Modern "Clean Card" Styling */
  border-radius: 16px; /* Smooth, modern corners */
  position: relative;
  
  /* Physics-based Transition (Smooth like iOS) */
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
  
  /* Initial Depth */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* Subtle filter for a premium "editorial" look */
  filter: contrast(1.05) saturate(0.9);
}

/* Hover Effect: The "Lift" */
.about .image:hover {
  /* Scales up slightly and moves up */
  transform: scale(1.02) translateY(-10px);
  
  /* Shadow grows to create the illusion of floating higher */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  
  /* Image becomes vibrant */
  filter: contrast(1.1) saturate(1.1);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .about .image {
    min-height: 400px; /* Slightly smaller on phones */
  }
}
hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7000ff, transparent);
  margin: 70px 0;
  box-shadow: 0 0 10px rgba(112, 0, 255, 0.4); /* Glow effect */
  opacity: 0.8;
}
.about .skills-content {
  margin-top: 30px;
}
.about .skills-content .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}
.about .skills-content .progress .skill {
  padding: 10px 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  color: #3b434a;
}
.about .skills-content .progress .skill .val {
  float: right;
  font-style: normal;
}
.about .skills-content .progress-bar-wrap {
  background: #e6e8eb;
}
.about .skills-content .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: #ffb727;
}

/*--------------------------------------------------------------
# My Resume
--------------------------------------------------------------*/
.resume{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--h3-title);
}
.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #82909c;
  position: relative;
}
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffb727;
  margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 16px;
  background: var(--h5-background);
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}
.resume .resume-item ul {
  padding-left: 20px;
}
.resume .resume-item ul li {
  padding-bottom: 10px;
}
.resume .resume-item:last-child {
  padding-bottom: 0;
}
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #82909c;
}

.internship-main{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.internship-main .internship-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--h3-title);
}
#internship-logo {
  max-width: 150px;
  display: block;
  margin: 0 auto;
}

.internship-card{
  margin-bottom: 10px;
}

#main,#latest-blogs{
  background-color: var(--bg-color);
  transition: .5s background-color;
}

/*--------------------------------------------------------------
#shop
----------------------------------------------------------------*/
/* Grid Setup */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Increased gap for better spacing */
    margin-bottom: 40px;
}

/* Card Styling */
.product-card {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Keeps content inside rounded corners */
    display: flex;
    flex-direction: column; /* Ensures footer aligns at bottom if needed */
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image Wrapper & Styling - MAKES IMAGES UNIFORM */
.product-image-wrapper {
    display: block;
    width: 100%;
    height: 350px; /* Taller height makes them look bigger */
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY: Crops image to fit the box without stretching */
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* Details Section */
.product-details {
    padding: 20px;
    text-align: center;
}

.product-title {
    display: block;
    font-size: 18px; /* Larger Title */
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Short Description Styling */
.product-short-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    
    /* Optional: Limit to 2 lines to keep grid even */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-short-desc p {
    margin: 0; /* Remove default paragraph margins from WP content */
    display: inline;
}

.product-price {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    background-color: #f3f4f6; /* Light gray background */
    padding: 6px 12px;
    border-radius: 6px;        /* Rounded corners */
    margin-bottom: 15px;
    margin-top: 10px;
}

.btn-add-to-cart {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background-color: #333;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
}


/*--------------------------------------------------------------
# My Services
--------------------------------------------------------------*/
.services{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.services .icon-box {
  margin:20px 0;
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: var(--icon-box-background);
  box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  transition: all 0.3s ease-in-out;
  text-align: center;
  border: 1px solid var(--icon-box-background);
}
.services .icon {
  margin: 0 auto 20px auto;
  padding-top: 17px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  background: #fff4df;
}
.services .icon i {
  font-size: 36px;
  line-height: 1;
  color: #ffb727;
}
.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}
.services .title a {
  color: var(--a-text);
  transition: 0.3s;
}
.services .description {
  font-size: 15px;
  line-height: 28px;
  margin-bottom: 0;
}
.services .icon-box:hover {
  border-color: #ffb727;
}
.services .icon-box:hover .title a {
  color: #ffb727;
}



.game-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .game-card {
    font-size: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  .game-card img:hover {
    transform: scale(1.05);
  }
  .game-card h2 {
    font-size: 14px;
  margin: 10px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  position: relative;
  }
.game-title:hover::after {
  content: attr(data-title);
  position: absolute;
  top: 110%;
  left: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 12px;
  pointer-events: none;
}
.game-title {
  font-size: 14px;
  margin: 10px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  position: relative;
}
  .game-card p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  @media screen and (max-width: 1024px) {
    .game-list {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media screen and (max-width: 768px) {
    .game-list {
      grid-template-columns: repeat(2, 1fr);
    }
    .game-card img{
        height: 100px;
    }
  }



/*--------------------------------------------------------------
# My Portfolio
--------------------------------------------------------------*/
.portfolio{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.portfolio #portfolio-flters {
  list-style: none;
  margin-bottom: 20px;
}
.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  margin: 0 10px 10px 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  color: #444444;
  transition: all 0.3s ease-in-out;
  border: 2px solid #fff;
}
.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
  color: #f3a200;
  border-color: #ffb727;
}
.portfolio .portfolio-item {
  margin-bottom: 30px;
}
.portfolio .portfolio-item .portfolio-img {
  overflow: hidden;
}
.portfolio .portfolio-item .portfolio-img img {
  transition: all 0.8s ease-in-out;
}
.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 15px;
  bottom: 0;
  z-index: 3;
  right: 15px;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
}
.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0px;
}
.portfolio .portfolio-item .portfolio-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 0;
}
.portfolio .portfolio-item .portfolio-info .preview-link, .portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 40px;
  font-size: 24px;
  top: calc(50% - 18px);
  color: #fff;
  transition: 0.3s;
}
.portfolio .portfolio-item .portfolio-info .preview-link:hover, .portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: #ffc041;
}
.portfolio .portfolio-item .portfolio-info .details-link {
  right: 10px;
}
.portfolio .portfolio-item:hover .portfolio-img img {
  transform: scale(1.2);
}
.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.portfolio-details {
  padding-top: 40px;
}
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}
.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #ffb727;
}
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #ffb727;
}
.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(59, 67, 74, 0.08);
}
.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}
.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}
.portfolio-details .portfolio-description {
  padding-top: 30px;
}
.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}
.portfolio-details .portfolio-description p {
  padding: 0;
}

.card-body{
  background-color: var(--icon-box-background);
}
.card{
  border: 1px solid var(--box-shadow);
}
.page-link{
  background-color: var(--h5-background);
}
/*--------------------------------------------------------------
# Contact Me
--------------------------------------------------------------*/
.contact{
  background-color: var(--bg-color);
  transition: .5s background-color;
}
.contact .info-box {
  color: #444444;
  text-align: center;
  box-shadow: 0 0 30px var(--box-shadow);
  padding: 20px 0 30px 0;
}
.contact .info-box i.bx {
  font-size: 24px;
  color: #ffb727;
  border-radius: 50%;
  padding: 15px;
  background: var(--heading-bg);
}
.contact .info-box h3 {
  font-size: 20px;
  color: #777777;
  font-weight: 700;
  margin: 10px 0;
}
.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}
.contact .social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
.contact .social-links a {
  font-size: 18px;
  display: inline-block;
  color: #687683;
  line-height: 1;
  margin: 0 8px;
  transition: 0.3s;
  padding: 14px;
  border-radius: 50px;
  border: 1px solid #dde1e4;
}
.contact .social-links a:hover {
  color: #fff;
  border-color: #ffb727;
  background: #ffb727;
}
.contact .php-email-form {
  box-shadow: 0 0 30px var(--box-shadow);
  padding: 27px;
}
.contact .php-email-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}
.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}
.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}
.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}
.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}
.contact .php-email-form input::focus, .contact .php-email-form textarea::focus {
  background-color: #ffb727;
}
.contact .php-email-form input {
  padding: 10px 15px;
}
.contact .php-email-form textarea {
  padding: 12px 15px;
}
.contact .php-email-form button[type=submit] {
  background: var(--form-button);
  border: 0;
  padding: 10px 24px;
  margin-top: 20px;
  color: #fff;
  transition: 0.4s;
  border-radius: 5px;
}
.contact .php-email-form button[type=submit]:hover {
  background: var(--form-button-hover);
}
.contact .form-control{
  background-color: var(--form-color);
}
@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: url("../img/footer-bg.webp") top center no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 80px 0;
  position: relative;
}
#footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}
#footer .container {
  position: relative;
}
#footer h3 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  position: relative;
  font-family: "Satisfy", serif;
  padding: 0;
  margin: 0 0 15px 0;
}
#footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}
#footer .social-links {
  margin: 0 0 40px 0;
}
#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--form-button);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
#footer .social-links a:hover {
  background: var(--form-button-hover);
  color: #fff;
  text-decoration: none;
}
#footer .copyright {
  margin: 0 0 5px 0;
}
#footer .credits {
  font-size: 13px;
}