/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* 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: #f8fbff;
  --default-color: #2d3748;
  --heading-color: #1a202c;
  --accent-color: #3182ce;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --soft-blue: #f8fbff;
  --light-blue: #ebf8ff;
  --medium-blue: #bee3f8;
  --card-bg: #ffffff;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --background-color: #16285116;
  --default-color: #cbd5e1;
  --heading-color: #f1f5f9;
  --accent-color: #1268d1;
  --surface-color: #1e293b;
  --contrast-color: #f8fafc;
  --soft-blue: #0f172a;
  --light-blue: #1e293b;
  --medium-blue: #334155;
  --card-bg: #1e293b;
}

/* 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: #4a5568;
  --nav-hover-color: #3182ce;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #4a5568;
  --nav-dropdown-hover-color: #3182ce;
}

[data-theme="dark"] {
  --nav-color: #cbd5e1;
  --nav-hover-color: #60a5fa;
  --nav-mobile-background-color: #1e293b;
  --nav-dropdown-background-color: #1e293b;
  --nav-dropdown-color: #cbd5e1;
  --nav-dropdown-hover-color: #60a5fa;
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the same color scheme. */
.light-background {
  --background-color: #f7fafc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1a202c;
  --default-color: #e2e8f0;
  --heading-color: #ffffff;
  --surface-color: #2d3748;
  --contrast-color: #ffffff;
}

/* New background classes */
.soft-blue-background {
  --background-color: var(--soft-blue);
  --surface-color: #ffffff;
}

.white-background {
  --background-color: #ffffff;
  --surface-color: #f8fbff;
}

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

/*--------------------------------------------------------------
# Theme Toggle Button
--------------------------------------------------------------*/
.theme-toggle {
  background: none;
  border: none;
  color: var(--nav-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.theme-toggle:hover {
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--accent-color);
}

.theme-toggle .bi-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .bi-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun {
  display: block;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--light-blue) 50%, var(--surface-color) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/*--------------------------------------------------------------
# Updated Navigation - Transparent
--------------------------------------------------------------*/
.header.fixed-top {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s ease;
  z-index: 999;
}

[data-theme="dark"] .header.fixed-top {
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(71, 85, 105, 0.8);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header.fixed-top.sticky {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header.fixed-top.sticky {
  background: rgba(30, 41, 59, 0.98);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.header.fixed-top .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.header.fixed-top .logo h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.header.fixed-top.sticky .logo h1 {
  color: var(--accent-color);
}

/* Navigation Menu */
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navmenu ul li {
  margin: 0 10px;
}

.navmenu ul li a {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: 0.3s;
  text-decoration: none;
}

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

.navmenu ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.navmenu ul li a:hover::after,
.navmenu ul li a.active::after {
  width: 80%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--default-color);
  background: none;
  border: none;
}

/* Social Links in Header */
.header .social-links {
  display: flex;
  gap: 10px;
  margin: 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);
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Updated Hero Section - Full Site Background
--------------------------------------------------------------*/
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Add floating background elements for entire site */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49, 130, 206, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(49, 130, 206, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s infinite linear reverse;
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.03) 0%, transparent 70%);
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(360deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--default-color);
}

.hero-text .typed {
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
}

.hero-description {
  font-size: 1.1rem !important;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 30px !important;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--heading-font);
  position: relative;
  overflow: hidden;
}

/* Hire Me Button - Subtle Pulse Animation */
.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
  animation: subtle-pulse 3s infinite;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3);
  animation: none; /* Stop pulse on hover */
}

/* View Project Button - Slide In Effect */
.btn-outline {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  position: relative;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3);
}

.btn-outline:hover::before {
  left: 0;
}

/* Animations */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.4);
  }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
  animation: subtle-pulse-dark 3s infinite;
}

[data-theme="dark"] .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@keyframes subtle-pulse-dark {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.5);
  }
}

/* Hero Social Links - AFTER BUTTONS */
.hero-social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--surface-color);
  color: var(--default-color);
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-social-links a {
  background: #334155;
  border-color: rgba(71, 85, 105, 0.5);
  color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-social-links a.github:hover {
  background: #333;
  color: white;
}

.hero-social-links a.linkedin:hover {
  background: #0077b5;
  color: white;
}

.hero-social-links a.twitter:hover {
  background: #000000;
  color: white;
}

.hero-social-links a.facebook:hover {
  background: #3b5998;
  color: white;
}

.hero-social-links a.instagram:hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: white;
}

/* Enhanced Hero Image with Better Borders */
/* NOTCHED CIRCLE - Unique & Modern */
.hero-image {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: conic-gradient(from 0deg, var(--accent-color), #ff6b6b, #4ecdc4, var(--accent-color));
  border-radius: 50%;
  z-index: 1;
  opacity: 0.15;
  animation: rotate-notches 15s linear infinite;
  mask: radial-gradient(circle at center, transparent 68%, black 69%), repeating-conic-gradient(transparent 0deg 8deg, black 8deg 16deg);
}

.hero-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: gentle-float 5s ease-in-out infinite;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 
              inset 0 0 0 5px var(--surface-color), 
              inset 0 0 0 10px var(--accent-color),
              0 0 30px rgba(255, 107, 107, 0.4);
  filter: brightness(1.08) contrast(1.15) saturate(1.1);
  clip-path: circle(50% at 50% 50%);
}

@keyframes rotate-notches {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-image:hover::before {
  animation: rotate-notches 5s linear infinite;
  opacity: 0.25;
}

.hero-image img:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 45px 80px rgba(0, 0, 0, 0.3), 
              inset 0 0 0 8px var(--surface-color), 
              inset 0 0 0 16px var(--accent-color),
              inset 0 0 0 24px rgba(255, 255, 255, 0.9),
              0 0 50px rgba(78, 205, 196, 0.6);
  /* clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); Removed to keep circular shape */
  clip-path: circle(50% at 50% 50%);
  filter: brightness(1) contrast(1.1) saturate(1);
}

/* 📱 Mobile Responsiveness Fix */
@media (max-width: 991px) {
  .hero-image {
    display: none;
  }
  
  .hero {
    padding: 140px 20px 60px;
    min-height: auto;
    text-align: center;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
  .hero {
    padding: 120px 15px 50px;
  }
  
  .hero-content {
    padding: 0 10px;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: transparent;
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .footer {
  border-top: 1px solid rgba(71, 85, 105, 0.8);
}

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

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

[data-theme="dark"] .footer .credits a {
  color: #60a5fa;
}

[data-theme="dark"] .footer .credits a:hover {
  color: #93c5fd;
}

/*--------------------------------------------------------------
# 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 var(--surface-color);
  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);
  }
}

/*--------------------------------------------------------------
# Fixed Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: visible;
  opacity: 1;
  right: 13px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 42px;
  height: 42px;
  border-radius: 50px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
   opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.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 15%);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.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: transparent;
  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 60%);
}

/*--------------------------------------------------------------
# Global Sections with Consistent Background
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: transparent;
  padding: 80px 0;
  overflow: clip;
  position: relative;
  scroll-margin-top: 80px;
}

/* Section Content Containers */
.container {
  position: relative;
  z-index: 2;
}

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

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

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

.section-title p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  background: transparent;
}

.about .content h2 {
  font-weight: 700;
  font-size: 24px;
  color: var(--heading-color);
  margin-top: 25px;
}

.about .content ul {
  list-style: none;
  padding: 5px;
}

.about .content ul li {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  color: var(--default-color);
}

.about .content ul strong {
  margin-right:4px;
  color: var(--heading-color);
  min-width: 90px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

.about .img-fluid {
  position: relative;
  display: block;
  width: 93%;
  height: auto;
  border-radius: 20px;
  background: var(--surface-color);
  padding: 8px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(49, 130, 206, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.4s ease;
  filter: brightness(1.05) contrast(1.03);
}

.about .img-fluid::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.2), rgba(255, 255, 255, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .about .img-fluid::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(30, 41, 59, 0.4));
}

.about .img-fluid:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 25px 50px rgba(49, 130, 206, 0.25),
    0 0 0 2px rgba(49, 130, 206, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  filter: brightness(1.1) contrast(1.06);
  background: linear-gradient(145deg, var(--surface-color), var(--soft-blue));
}

[data-theme="dark"] .about .img-fluid:hover {
  box-shadow:
    0 25px 50px rgba(96, 165, 250, 0.25),
    0 0 0 2px rgba(96, 165, 250, 0.12),
    inset 0 0 0 1px rgba(30, 41, 59, 0.3);
}

.about .img-fluid:hover::before {
  opacity: 1;
}

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

.about .img-fluid {
  animation: softFloat 8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .about .img-fluid {
    animation: none;
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-radius: 14px;
  }
}

/*--------------------------------------------------------------
# Skills Section - Reverted to Simple Style
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

[data-theme="dark"] .skills .progress-bar-wrap {
  background: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .skills .progress .skill {
  color: #e2e8f0;
}

[data-theme="dark"] .skills .progress .skill .val {
  color: #cbd5e1;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Education Section - Enhanced with Grid Transitions
--------------------------------------------------------------*/
#education {
  position: relative;
}

#education .container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

#education .section-title {
  padding-bottom: 60px;
  position: relative;
  text-align: left;
}

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

#education .section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 2px;
}

#education .section-title p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.education-card {
  background: var(--card-bg);
  border-left: 4px solid var(--accent-color);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="dark"] .education-card {
  background: linear-gradient(145deg, #1e293b, #2d3748);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #60a5fa;
}

.education-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .education-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg, #2d3748, #374151);
  border-left: 4px solid #93c5fd;
}

.education-card::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: -9px;
  top: 35px;
  background: var(--background-color);
  border: 4px solid var(--accent-color);
  z-index: 2;
  transition: all 0.3s ease;
}

[data-theme="dark"] .education-card::before {
  background: #0f172a;
  border: 4px solid #60a5fa;
}

.education-card:hover::before {
  transform: scale(1.2);
  background: var(--accent-color);
}

.education-icon {
  font-size: 28px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: block;
}

.education-year {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .education-year {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

.gpa-badge {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 20%));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .gpa-badge {
  background: linear-gradient(135deg, #1c6ccf, #1268d1);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.214);
  border: 1px solid rgba(96, 165, 250, 0.453);
}

.education-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
  line-height: 1.3;
}

[data-theme="dark"] .education-card h3 {
  color: #f8fafc;
}

.education-institution {
  display: block;
  font-size: 15px;
  font-style: italic;
  margin-bottom: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 500;
}

[data-theme="dark"] .education-institution {
  color: #93c5fd !important;
}

.education-card p {
  font-size: 14px;
  color: var(--default-color);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

[data-theme="dark"] .education-card p {
  color: #e2e8f0 !important;
  line-height: 1.7;
}

.education-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

[data-theme="dark"] .education-details {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

[data-theme="dark"] .detail-item {
  color: #d1d5db !important;
}

.detail-item i {
  font-size: 14px;
  color: var(--accent-color);
  margin-right: 10px;
  flex-shrink: 0;
}

[data-theme="dark"] .detail-item i {
  color: #60a5fa;
}

/* Education Section Responsive Design */
@media (max-width: 1200px) {
  #education .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  #education .container {
    max-width: 720px;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
  }
  
  .education-card {
    padding: 25px 20px;
  }
  
  .education-card::before {
    top: 30px;
  }
  
  #education .section-title {
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  #education .container {
    max-width: 540px;
    padding: 0 20px;
  }
  
  #education .section-title {
    text-align: center;
    padding-bottom: 40px;
  }
  
  #education .section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  #education .section-title p {
    font-size: 1rem;
  }
  
  .education-card {
    padding: 22px 18px;
  }
  
  .education-card h3 {
    font-size: 18px;
  }
  
  .education-icon {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  .education-card {
    padding: 20px 16px;
    margin: 0 5px;
  }
  
  .education-card::before {
    width: 14px;
    height: 14px;
    left: -7px;
    top: 25px;
  }
  
  .education-card h3 {
    font-size: 17px;
  }
  
  .gpa-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  #education .container {
    padding: 0 15px;
  }
  
  .education-card {
    padding: 18px 14px;
    margin: 0 2px;
  }
  
  .education-year {
    font-size: 13px;
  }
  
  .education-institution {
    font-size: 14px;
  }
}

@media (min-width: 1400px) {
  #education .container {
    max-width: 1320px;
  }
  
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  background: transparent;
}

.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
  color: var(--default-color);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
  border-radius: 10px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

[data-theme="dark"] .portfolio .portfolio-content .portfolio-info {
  background: rgba(15, 23, 42, 0.95);
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 16px;
  padding: 8px 16px;
  font-weight: 500;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
  border-radius: 20px;
  margin-bottom: 10px;
}

.portfolio .portfolio-content .portfolio-info p {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

[data-theme="dark"] .portfolio .portfolio-content .portfolio-info p {
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  font-size: 20px;
  color: #fff;
  transition: 0.3s;
  margin: 0 10px;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.05);
}
.experience-details {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(52, 152, 219, 0.1);
    }
    
    .dark-mode .experience-details {
        border-top: 1px solid rgba(52, 152, 219, 0.2);
    }
    
    .tech-stack {
        margin-bottom: 1.5rem;
    }
    
    .tech-stack h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: var(--dark);
    }
    
    .tech-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tech-tags span {
        background: rgba(52, 152, 219, 0.1);
        color: var(--primary);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .dark-mode .tech-tags span {
        background: rgba(52, 152, 219, 0.2);
    }
    
    .tech-tags span:hover {
        background: rgba(52, 152, 219, 0.2);
        transform: translateY(-2px);
    }
    
    .dark-mode .tech-tags span:hover {
        background: rgba(52, 152, 219, 0.3);
    }
    
    .responsibilities h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: var(--dark);
    }
    
    .responsibilities ul {
        list-style-type: none;
        padding-left: 0;
    }
    
    .responsibilities li {
        color: var(--gray);
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        position: relative;
        line-height: 1.5;
    }
    
    .responsibilities li:before {
        content: "▸";
        color: var(--primary);
        position: absolute;
        left: 0;
        font-weight: bold;
    }
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
     /* Large ERP Experience Card - Enhanced Alignment */
.experience-container {
    display: grid;
    gap: 30px;
}

.erp-card {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--light-blue) 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.erp-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.erp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), #3182ce);
}

/* Card Header - Improved Alignment */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.role-info {
    flex: 1;
    min-width: 300px;
}

.role-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
    line-height: 1.2;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(52, 152, 219, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

.company-logo {
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 188, 156, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    white-space: nowrap;
}

/* Main Description - Better Alignment */
.main-description {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--default-color);
    margin: 0;
    text-align: justify;
}

/* Role Details - Enhanced Grid Alignment */
.role-details {
    display: grid;
    gap: 40px;
}

.responsibilities h4, 
.technical-skills h4,
.achievements h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.responsibilities h4 i,
.technical-skills h4 i,
.achievements h4 i {
    color: var(--accent-color);
    font-size: 1.6rem;
}

/* Responsibility Grid - Improved Alignment */
.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.responsibility-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.responsibility-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.responsibility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.15);
}
.responsibility-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-color), #3498db);
    border-radius: 20px 20px 20px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}

.responsibility-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px 0 0 0;
}

.responsibility-content {
    flex: 1;
}

.responsibility-content h5 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.3;
}

.responsibility-content p {
    color: var(--default-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Technical Skills - Better Category Alignment */
.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.skill-tag {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.skill-tag:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Achievements - Better List Alignment */
.achievements {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.achievements.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievement-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.achievement-list li {
    color: var(--default-color);
    padding: 12px 0 12px 35px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.achievement-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.achievement-list li:hover {
    transform: translateX(5px);
    border-bottom-color: rgba(52, 152, 219, 0.3);
}

.achievement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(52, 152, 219, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design - Enhanced Alignment */
@media (max-width: 1200px) {
    .erp-card {
        padding: 35px;
    }
    
    .responsibility-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .skill-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .role-info {
        min-width: 100%;
    }
    
    .role-info h3 {
        font-size: 1.8rem;
    }
    
    .duration-badge {
        align-self: flex-start;
    }
    
    .responsibility-grid,
    .achievement-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .erp-card {
        padding: 25px;
    }
    
    .card-header {
        gap: 15px;
    }
    
    .role-info h3 {
        font-size: 1.6rem;
    }
    
    .skill-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .responsibility-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }
    
    .responsibility-icon {
        margin: 0 auto 15px;
    }
    
    .main-description {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .main-description p {
        text-align: left;
    }
    
    .role-details {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .erp-card {
        padding: 20px;
        border-radius: 10px;
    }
    
    .role-info h3 {
        font-size: 1.5rem;
    }
    
    .company-badge {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .duration-badge {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .main-description {
        padding: 15px;
    }
    
    .main-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .responsibilities h4,
    .technical-skills h4,
    .achievements h4 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .responsibility-content h5 {
        font-size: 1.1rem;
    }
    
    .skill-tag {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .achievement-list li {
        padding: 10px 0 10px 30px;
    }
}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  background: transparent;
}

.contact .info-wrap {
  background-color: var(--card-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .contact .info-wrap {
  border: 1px solid rgba(71, 85, 105, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 30px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--default-color);
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--card-bg);
  height: 100%;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .contact .php-email-form {
  border: 1px solid rgba(71, 85, 105, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 12px 15px;
  box-shadow: none;
  border-radius: 8px;
  color: var(--default-color);
  background-color: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  transition: all 0.3s ease;
}

[data-theme="dark"] .contact .php-email-form input[type=text],
[data-theme="dark"] .contact .php-email-form input[type=email],
[data-theme="dark"] .contact .php-email-form textarea {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
}

[data-theme="dark"] .contact .php-email-form input[type=text]:focus,
[data-theme="dark"] .contact .php-email-form input[type=email]:focus,
[data-theme="dark"] .contact .php-email-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 12px 35px;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3);
}

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

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #38a169;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: 8px;
}

.php-email-form .loading {
  display: none;
  background: var(--card-bg);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .php-email-form .loading {
  border: 1px solid rgba(71, 85, 105, 0.8);
}

.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(--card-bg);
  animation: php-email-form-loading 1s linear infinite;
}

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

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

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .hero-content {
    gap: 30px;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p {
    font-size: 1.3rem;
  }
  
  .hero-image img {
    max-width: 280px;
  }

  /* Mobile Navigation */
.mobile-nav-toggle {
  display: block;
}

.navmenu ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 15px;
  background: var(--nav-mobile-background-color);
  flex-direction: column;
  padding: 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  width: 200px;
  z-index: 9999;
  margin-top: 8px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}
  
  [data-theme="dark"] .navmenu ul {
    background: #1e293b;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navmenu ul.show {
    display: flex;
  }
  
  .navmenu ul li {
    margin: 10px 0;
  }
  
  .navmenu ul li a {
    padding: 8px 4px;
    display: block;
    color: var(--nav-color);
  }

  .header .social-links {
    display: none;
  }

  /* Fix mobile navigation overlapping */
  .hero {
    padding-top: 160px;
  }
  
  .section:first-of-type {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 0 60px;
    min-height: auto;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    max-width: 250px;
  }
  
  .hero-social-links {
    justify-content: center;
  }

  section, .section {
    padding: 60px 0;
  }
}

/* Hide hero image on mobile devices */
@media (max-width: 576px) {
  .hero-image {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== DARK MODE BACKGROUND FIXES ===== */
[data-theme="dark"] .light-background {
  --background-color: #1a2030;
  --surface-color: #252d40;
}

[data-theme="dark"] .soft-blue-background {
  --background-color: #1a2030;
  --surface-color: #252d40;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.7s ease, background-color 0.3s ease, border-color 0.3s ease;
}