/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #f4fafd; /* Background color for the entire website, including individual sections */
  --default-color: #6a6b6d; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #149ddd; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 1px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/* Full navigation/header background black */
.header {
  background-color: #000 !important; /* Full header black */
}

/* Navigation menu itself */
.navmenu {
  background-color: #000 !important; /* Nav list area black */
}

/* Nav links white for visibility */
.navmenu a,
.navmenu a:focus {
  color: #fff !important;
}

/* Hover/active states */
.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: #00bfff !important; /* highlight blue or any color you like */
}


/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: black;
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #000 60%, #050505 100%);
  overflow: hidden;
  padding: 60px 20px;
  transition: all 0.4s ease;
}

/* Hero Container */
#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 60px;
}

/* Hero Text */
#hero .hero-text {
  flex: 1;
  min-width: 280px;
  color: #fff;
}

#hero .hero-text .hero-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeSlideDown 1.5s ease forwards;
}

#hero .hero-text .hero-subtitle {
  font-size: 26px;
  margin-bottom: 20px;
  animation: fadeSlideUp 1.8s ease forwards;
}

#hero .hero-text .hero-subtitle span {
  color: #149DDD;
  font-weight: 600;
  border-bottom: 2px solid #149DDD;
}

#hero .hero-text .hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: #ccc;
  max-width: 600px;
  animation: fadeSlideUp 2s ease forwards;
}

/* CV Button */
#hero .hero-text a {
  display: inline-block;
  padding: 12px 35px;
  border-radius: 50px;
  background: linear-gradient(90deg, #149DDD, #00C6FF);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.4s ease;
  margin-top: 20px;
}

#hero .hero-text a:hover {
  background: linear-gradient(90deg, #00C6FF, #149DDD);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(20, 157, 221, 0.6);
}

/* Side Circular Image */
#hero .hero-side-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero .hero-side-img .image-circle {
  width: 350px;
  height: 387px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(20, 157, 221, 0.4);
  border: 4px solid rgba(20, 157, 221, 0.8);
  animation: float 4s ease-in-out infinite;
}

#hero .hero-side-img .image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Fade Animations */
@keyframes fadeSlideDown {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeSlideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ------------------------- */
/* 📱 Responsive Design */
/* ------------------------- */

/* Tablets (below 992px) */
@media (max-width: 992px) {
  #hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  #hero .hero-side-img {
    justify-content: center;
  }

  #hero .hero-side-img .image-circle {
    width: 280px;
    height: 308px;
  }

  #hero .hero-text .hero-title {
    font-size: 48px;
  }

  #hero .hero-text .hero-subtitle {
    font-size: 22px;
  }

  #hero .hero-text .hero-description {
    font-size: 16px;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Mobile (below 576px) */
@media (max-width: 576px) {
  #hero {
    padding: 40px 15px;
  }

  #hero .hero-text .hero-title {
    font-size: 34px;
  }

  #hero .hero-text .hero-subtitle {
    font-size: 18px;
  }

  #hero .hero-side-img .image-circle {
    width: 209px;
    height: 230px;
  }

  #hero .hero-text .hero-description {
    font-size: 15px;
    line-height: 1.6;
  }

  #hero .hero-text a {
    padding: 10px 28px;
    font-size: 15px;
  }
}

/* ---------------------------------------------------
# Education Section
--------------------------------------------------- */
.education {
  background-color: #000; /* dark theme */
  color: #fff;
  padding: 80px 20px;
}

.education .section-title h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 20px;
}

.education .section-title p {
  color: #ccc;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
  text-align: center;
}

/* Education List */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Single Education Item */
.education-item {
  background-color: #111;
  padding: 25px 30px;
  border-radius: 12px;
  position: relative;
  border-left: 4px solid #149DDD;
  border-right: 4px solid #149DDD;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden; /* to keep glow inside */
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(20, 157, 221, 0.4);
}

/* Title, time, description */
.education-item h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: #fff;
}

.education-item .edu-time {
  font-size: 14px;
  color: #149DDD;
  display: block;
  margin-bottom: 10px;
}

.education-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}

/* ===== MOVING GLOW ABOVE AND BELOW EDUCATION ITEM ===== */
.education-item::before,
.education-item::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 3px; /* thickness of the glow line */
  background: linear-gradient(90deg, transparent, #149DDD, transparent);
  animation: slideGlow 5s infinite linear;
  pointer-events: none;
}

/* Top glow */
.education-item::before {
  top: 0;
}

/* Bottom glow */
.education-item::after {
  bottom: 0;
}

/* ===== SHARED GLOW ANIMATION ===== */
@keyframes slideGlow {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}


/* Responsive */
@media (max-width: 768px) {
  .education-item {
    padding: 20px;
  }

  .education-item h3 {
    font-size: 20px;
  }

  .education-item p {
    font-size: 15px;
  }
}

.education .edu-btn {
  background-color: #149DDD;
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.education .edu-btn:hover {
  background-color: rgba(20, 157, 221, 0.85);
}

/* ---------------------------------------------------
# Shared Glow Animation (Used by Skills & Education)
--------------------------------------------------- */
@keyframes neonGlowLine {
  0% { left: -120%; }
  50% { left: 100%; }
  100% { left: -120%; }
}

/* ---------------------------
   Skills Section - With Glow
----------------------------*/
#skills {
  padding: 70px 0;
  background: #000;
  color: #fff;
  position: relative;
}

#skills .section-title h2 {
  color: #fff;
  font-size: 34px;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
}

#skills .section-title p {
  color: #bfbfbf;
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

/* Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  width: 90%;
  margin: auto;
}

/* Skill Card */
.skill-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 15px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;

  /* ✅ Add Left & Right Blue Lines */
  border-left: 3px solid #149DDD;
  border-right: 3px solid #149DDD;
}

/* Hover */
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 14px rgba(21, 163, 255, 0.6);
  border-color: rgba(21, 163, 255, 0.7);
}

/* ===== Glow Lines Back & Forth ===== */
.skill-card::before,
.skill-card::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #149DDD, transparent);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  animation: glowMove 4s infinite ease-in-out;
}

/* Top Line */
.skill-card::before {
  top: 0;
  left: -100%;
}

/* Bottom Line */
.skill-card::after {
  bottom: 0;
  left: -100%;
  animation-delay: 0.3s; /* small delay for nicer effect */
}

/* Hover Boost */
.skill-card:hover::before,
.skill-card:hover::after {
  opacity: 1;
  animation-duration: 2.5s;
}

/* Back & Forth Animation */
@keyframes glowMove {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: -100%; }
}



/* Skill Card Icons & Text */
.skill-card i {
  font-size: 32px;
  margin-bottom: 8px;
  color: #149DDD;
}

.skill-card h3 {
  color: #fff;
  font-size: 15px;
  margin-top: 5px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .skill-card {
    padding: 15px;
  }
  #skills .section-title h2 {
    font-size: 28px;
  }
}




/* Projects Section */
#projects {
  background-color: #000; /* full black */
  color: #fff;
  padding: 80px 20px;
  transition: background-color 0.5s ease;
}

#projects .section-title h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 10px;
}

#projects .section-title p {
  color: #ccc;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Project Cards */
.projects-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  border-left: 4px solid #149DDD;
  border-right: 4px solid #149DDD;
}
/* ===== MOVING GLOW ABOVE AND BELOW PROJECT CARDS ===== */
.projects-item::before,
.projects-item::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 3px; /* thickness of the glow line */
  background: linear-gradient(90deg, transparent, #149DDD, transparent);
  animation: slideGlow 5s infinite linear;
  pointer-events: none;
  opacity: 0.6; /* default visibility */
  transition: opacity 0.3s ease;
  z-index: 2; /* make sure it’s above background but below overlay text */
}

/* Top glow */
.projects-item::before {
  top: 0;
}

/* Bottom glow */
.projects-item::after {
  bottom: 0;
}

/* Make glow fully visible on hover */
.projects-item:hover::before,
.projects-item:hover::after {
  opacity: 1;
}

/* ===== SHARED GLOW ANIMATION ===== */
@keyframes slideGlow {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}


/* Project Image */
.projects-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects-item:hover img {
  transform: scale(1.1);
}

/* Overlay */
.projects-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
}

.projects-item:hover .projects-overlay {
  opacity: 1;
  visibility: visible;
}

/* Overlay Text */
.projects-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.5s ease;
  color: #ffffff !important;
  z-index: 2;
  position: relative;
}

.projects-item:hover .projects-overlay h3 {
  transform: translateY(0);
}

.projects-overlay p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.projects-item:hover .projects-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Highlighted Technologies */
.projects-overlay .tech {
  color: #149DDD;
  font-weight: 600;
}

/* Buttons */
.project-links {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}

.projects-item:hover .project-links {
  opacity: 1;
  transform: translateY(0);
}

.project-links .btn {
  background-color: #149DDD;
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-links .btn:hover {
  background-color: rgba(20,157,221,0.85);
}

.project-links .btn-secondary {
  background-color: rgba(255,255,255,0.2);
}

.project-links .btn-secondary:hover {
  background-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-img img { height: 180px; }
}

@media (max-width: 480px) {
  .projects-overlay h3 { font-size: 18px; }
  .projects-overlay p { font-size: 13px; }
  .project-links .btn { padding: 6px 15px; font-size: 14px; }
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: black;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.section-title h2::after {
  display: none;
}

/* ===== FORM CONTAINER ===== */
.contact .php-email-form.modern-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #149DDD; /* ✅ Left blue border */
  border-right: 4px solid #149DDD;
  position: relative;
  overflow: hidden;

  /* --- Entrance Animation --- */
  transform: scale(0.85) translateY(40px);
  opacity: 0;
  animation: smoothEntrance 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Form entrance animation (fade + scale-up + slide-up) */
@keyframes smoothEntrance {
  0% {
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    filter: blur(6px);
  }
  60% {
    transform: scale(1.03) translateY(-8px);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.contact .php-email-form.modern-form:hover {
  transform: scale(1.02);
  box-shadow: 0px 0px 30px rgba(29, 161, 242, 0.4);
}

/* ===== INPUTS ===== */
.contact .php-email-form input,
.contact .php-email-form textarea {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: all 0.4s ease;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Focus glow */
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #1da1f2;
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.6);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: scale(1.02);
}

/* ===== BUTTON ===== */
.contact .php-email-form button {
  background: linear-gradient(90deg, #1da1f2, #00c6ff);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact .php-email-form button:hover {
  background: linear-gradient(90deg, #00c6ff, #1da1f2);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.6);
}

/* ===== MOVING GLOW ABOVE AND BELOW FORM ===== */
.contact .php-email-form.modern-form::before,
.contact .php-email-form.modern-form::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1da1f2, transparent);
  animation: slideGlow 5s infinite linear;
  pointer-events: none;
}

/* Top glow */
.contact .php-email-form.modern-form::before {
  top: 0;
}

/* Bottom glow */
.contact .php-email-form.modern-form::after {
  bottom: 0;
}

/* ===== MESSAGES ===== */
.sent-message {
  display: none;
  color: #1da1f2;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.5s ease;
}

.loading {
  display: none;
  color: #fff;
  margin-bottom: 10px;
}

.error-message {
  color: #ff4d4d;
  margin-bottom: 10px;
}

/* ===== CONTACT INFO BOXES ===== */
.contact-info .info-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #149DDD;
  border-right: 4px solid #149DDD;
  position: relative;
  overflow: hidden;
}

/* Icon */
.contact-info .info-box i {
  font-size: 28px;
  color: #1da1f2;
  margin-bottom: 10px;
  display: block;
}

/* Title */
.contact-info .info-box h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Paragraph */
.contact-info .info-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Hover effect */
.contact-info .info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(29, 161, 242, 0.3);
}

/* ===== MOVING GLOW ABOVE AND BELOW INFO BOXES ===== */
.contact-info .info-box::before,
.contact-info .info-box::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 3px; /* thickness of the glow line */
  background: linear-gradient(90deg, transparent, #1da1f2, transparent);
  animation: slideGlow 5s infinite linear;
  pointer-events: none;
}

/* Top glow */
.contact-info .info-box::before {
  top: 0;
}

/* Bottom glow */
.contact-info .info-box::after {
  bottom: 0;
}

/* ===== SHARED GLOW ANIMATION ===== */
@keyframes slideGlow {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-info .info-box {
    margin-bottom: 15px;
  }
}


