/**
* Template Name: iPortfolio - v3.3.0
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
* Classic revamp: restrained palette, serif headings, editorial feel.
*/

/*--------------------------------------------------------------
# Classic theme variables
--------------------------------------------------------------*/
/* Light theme base */
:root {
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-bg: #faf9f7;
  --color-bg-section: #f5f4f2;
  --color-header-bg: #2c3e50;
  --color-heading: #1a1a1a;
  
  /* Purple scheme (default) */
  --color-accent: #8b5cf6;
  --color-accent-hover: #7c3aed;
  --color-accent-light: rgba(139, 92, 246, 0.1);
  
  /* Other variables remain */
  --font-heading: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  --font-body: "Plus Jakarta Sans", "Source Sans 3", sans-serif;
  --radius-card: 12px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Dark theme */
[data-theme="dark"] {
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-bg: #0f172a;
  --color-bg-section: #1e293b;
  --color-header-bg: #1e293b;
  --color-heading: #f3f4f6;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Accent locked to Purple */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Prevent flash of unstyled content */
body:not(.loaded) {
  opacity: 1;
}

/* Optimize image rendering */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-accent);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.3s ease, opacity 0.4s, visibility 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: scale(1.03);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  padding: 0 15px;
  background: rgba(44, 62, 80, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.03), 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 2px solid var(--color-accent);
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: var(--font-heading);
}

#header .profile h1 a, #header .profile h1 a:hover {
  color: #eee;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #eee;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#header .profile .social-links a:hover {
  background: #eee;
  color: #333;
  text-decoration: none;
}

#main {
  margin-left: 300px;
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
  #main {
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Theme Toggle Button
--------------------------------------------------------------*/
.theme-toggle-wrapper {
  position: fixed;
  top: 15px;
  right: 70px;
  z-index: 9999;
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 20px;
}

.theme-toggle-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.theme-icon-light,
.theme-icon-dark {
  display: none;
}

/* Show appropriate icon based on theme */
[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* Desktop: in sidebar */
@media (min-width: 1200px) {
  .theme-toggle-wrapper.d-none.d-xl-block {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
  
  .d-none.d-xl-block .theme-toggle-btn {
    margin: 0 auto;
  }
  
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .theme-toggle-wrapper.d-xl-none {
    right: 60px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a, .nav-menu a:focus {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: color 0.25s ease, background 0.25s ease, border-left-color 0.25s ease;
  font-size: 15px;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
}

.nav-menu a i, .nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: inherit;
  transition: color 0.25s ease;
}

/* Hover: background only, no left bar */
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-menu a:hover i {
  color: #fff;
}

/* Active: left-edge accent bar + subtle background - light teal to match dark sidebar */
.nav-menu .active, .nav-menu .active:focus, .nav-menu li:hover > a.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(94, 234, 212, 0.9);
  color: #fff;
}

.nav-menu .active i, .nav-menu .active:focus i, .nav-menu li:hover > a.active i {
  color: #5eead4;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: var(--color-accent);
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50px;
  cursor: pointer;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(94, 234, 212, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 3px),
    linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #0c1222 100%);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px, 100% 100%;
  perspective: 1000px;
  overflow: hidden;
}

#hero:before {
  content: "";
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(44, 62, 80, 0.3) 50%, rgba(15, 23, 42, 0.4) 100%);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { 
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(44, 62, 80, 0.3) 50%, rgba(15, 23, 42, 0.4) 100%);
  }
  50% { 
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, var(--color-accent-light) 50%, rgba(44, 62, 80, 0.35) 100%);
  }
  100% { 
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(44, 62, 80, 0.3) 50%, rgba(15, 23, 42, 0.4) 100%);
  }
}

/* Floating glass orbs */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 0 60px rgba(255, 255, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.glass-orb-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -10%;
  animation: floatOrb1 25s ease-in-out infinite;
}

.glass-orb-2 {
  width: 300px;
  height: 300px;
  top: 60%;
  right: -5%;
  animation: floatOrb2 20s ease-in-out infinite;
}

.glass-orb-3 {
  width: 250px;
  height: 250px;
  bottom: 15%;
  left: 40%;
  animation: floatOrb3 30s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: translate(100px, -80px) scale(1.1);
    opacity: 0.8;
  }
  66% { 
    transform: translate(-50px, 100px) scale(0.9);
    opacity: 0.7;
  }
}

@keyframes floatOrb2 {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% { 
    transform: translate(-120px, 70px) scale(1.15);
    opacity: 0.7;
  }
  66% { 
    transform: translate(80px, -90px) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes floatOrb3 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.4;
  }
  50% { 
    transform: translate(-60px, -120px) scale(1.2) rotate(180deg);
    opacity: 0.65;
  }
}

/* Mobile Profile in Hero */
.hero-mobile-profile {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 48px;
  opacity: 1;
}

.hero-mobile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
  object-fit: cover;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: auto;
  content-visibility: auto;
  display: block;
  /* Prevent layout shift */
  aspect-ratio: 1 / 1;
}

@keyframes profilePulse {
  0%, 100% { 
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 0 var(--color-accent);
  }
  50% { 
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 15px transparent;
  }
}

/* Delay animation start to avoid flash */
.hero-mobile-img {
  animation: profilePulse 3s ease-in-out infinite 1.5s;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-mobile-img {
    animation: none;
  }
}

.hero-mobile-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-mobile-social .social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-mobile-social .social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 10px 30px var(--color-accent-light);
}

#hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: 
    radial-gradient(circle 400px at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle 350px at 80% 70%, rgba(94, 234, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle 300px at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  animation: glassyOrbs 20s ease-in-out infinite;
  pointer-events: none;
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
}

@keyframes glassyOrbs {
  0% { 
    background-position: 20% 30%, 80% 70%, 50% 50%;
    opacity: 0.7;
  }
  33% { 
    background-position: 80% 20%, 30% 80%, 60% 40%;
    opacity: 0.9;
  }
  66% { 
    background-position: 40% 80%, 70% 30%, 30% 60%;
    opacity: 0.8;
  }
  100% { 
    background-position: 20% 30%, 80% 70%, 50% 50%;
    opacity: 0.7;
  }
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  min-width: 300px;
  text-align: center;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
  transform: translateZ(40px);
  transition: transform 0.1s ease-out;
}

#hero p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  font-size: 26px;
  font-family: var(--font-body);
  transform: translateZ(30px);
  transition: transform 0.1s ease-out;
}

#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--color-accent);
  font-weight: 600;
}

#hero .hero-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  transform: translateZ(20px);
  transition: transform 0.1s ease-out;
}

#hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  transform: translateZ(50px);
  transition: transform 0.1s ease-out;
}

#hero .btn-hero {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#hero .btn-hero:first-child {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

#hero .btn-hero:first-child:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--color-accent-light);
}

#hero .btn-hero--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

#hero .btn-hero--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: scale(1.03);
}

/* Hero Get in touch dropdown */
#hero .dropdown-hero {
  position: relative;
  display: inline-block;
}

#hero .dropdown-hero .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 0.15em;
}

#hero .btn-hero-dropdown {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#hero .dropdown-hero .dropdown-menu-hero {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#hero .dropdown-hero .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  transition: background 0.2s ease;
}

#hero .dropdown-hero .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#hero .dropdown-hero .dropdown-item i {
  font-size: 18px;
}

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 60px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  
  #hero h1 {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 16px;
  }
  
  #hero p {
    font-size: 19px;
    margin-bottom: 16px;
  }
  
  #hero .hero-tagline {
    font-size: 16px;
    max-width: 90%;
    margin-bottom: 32px;
    line-height: 1.5;
  }
  
  #hero .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  
  #hero .btn-hero {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 16px 28px;
    font-size: 17px;
  }
  
  #hero .dropdown-hero {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  #hero .btn-hero-dropdown {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
  
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
  
  /* Mobile profile adjustments */
  .hero-mobile-profile {
    margin-bottom: 40px;
  }
  
  .hero-mobile-img {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
    border-width: 4px;
  }
  
  .hero-mobile-social {
    gap: 16px;
  }
  
  .hero-mobile-social .social-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  /* Adjust glass orbs for mobile */
  .glass-orb-1 {
    width: 250px;
    height: 250px;
    top: 5%;
    left: -20%;
  }
  
  .glass-orb-2 {
    width: 200px;
    height: 200px;
    top: 70%;
    right: -15%;
  }
  
  .glass-orb-3 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 30%;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  #hero {
    padding: 50px 20px 50px;
    min-height: 100vh;
  }
  
  #hero h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 14px;
  }
  
  #hero p {
    font-size: 17px;
    margin-bottom: 14px;
  }
  
  #hero .hero-tagline {
    font-size: 15px;
    margin-bottom: 28px;
  }
  
  .hero-mobile-profile {
    margin-bottom: 36px;
  }
  
  .hero-mobile-img {
    width: 140px;
    height: 140px;
    border-width: 4px;
    margin-bottom: 20px;
  }
  
  .hero-mobile-social {
    gap: 14px;
  }
  
  .hero-mobile-social .social-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  #hero .btn-hero {
    max-width: 100%;
    padding: 15px 24px;
    font-size: 16px;
  }
  
  #hero .hero-cta {
    gap: 12px;
  }
  
  .dropdown-hero {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .btn-hero-dropdown {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 72px 0;
  overflow: hidden;
}

.section-bg {
  background: linear-gradient(180deg, var(--color-bg-section) 0%, rgba(245, 244, 242, 0.97) 100%);
}

/* What I Do Showcase - animated chips */
.showcase-section {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.03) 0%, transparent 100%);
}

.showcase-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.showcase-chip {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .showcase-chip {
  color: #e5e7eb;
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(139, 92, 246, 0.4);
}

.showcase-chip:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .showcase-chip:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

.section-title {
  padding-bottom: 36px;
}

.section-title p {
  color: var(--color-text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--color-heading);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  bottom: 0;
  left: 0;
  animation: sectionUnderline 0.8s ease-out forwards;
  transform-origin: left;
}

@keyframes sectionUnderline {
  0% { width: 0; opacity: 0; }
  100% { width: 50px; opacity: 1; }
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes resumePulse {
  0% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
  50% { box-shadow: 0 8px 24px var(--color-accent-light); border-color: var(--color-accent); }
  100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); border-color: var(--color-accent-light); }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--color-heading);
}

.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: var(--color-accent);
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: var(--color-accent);
  float: left;
  line-height: 0;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: var(--color-heading);
  margin-left: 60px;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 15px;
  font-family: var(--font-body);
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: var(--color-accent);
}

/*--------------------------------------------------------------
# Skills (classic tag list)
--------------------------------------------------------------*/
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s ease;
}

[data-theme="dark"] .skill-tag {
  color: #e5e7eb;
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(139, 92, 246, 0.4);
}

.skill-tag:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.02);
  animation: skillPulse 1.5s ease-in-out infinite;
}

[data-theme="dark"] .skill-tag:hover {
  background: rgba(139, 92, 246, 0.2);
}

@keyframes skillPulse {
  0%, 100% { box-shadow: 0 0 0 0 #8b5cf6; }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.skill-tag--alt {
  border-color: rgba(44, 62, 80, 0.2);
  color: #5c5c5c;
}

[data-theme="dark"] .skill-tag--alt {
  color: #9ca3af;
  border-color: rgba(139, 92, 246, 0.3);
}

.skill-tag--alt:hover {
  border-color: #2c3e50;
  background: rgba(44, 62, 80, 0.04);
}

[data-theme="dark"] .skill-tag--alt:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--color-heading);
}

.resume .resume-item {
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

[data-theme="dark"] .resume .resume-item {
  background: rgba(30, 41, 59, 0.5);
}

.resume .resume-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.resume .resume-item h4 {
  line-height: 24px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume .resume-item h4::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-accent-light);
  flex-shrink: 0;
}

.resume .resume-item h5 {
  font-size: 15px;
  background: var(--color-accent-light);
  padding: 6px 14px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 12px;
  border-radius: 6px;
  color: var(--color-accent);
}

.resume .resume-item ul {
  padding-left: 20px;
  margin-top: 12px;
}

.resume .resume-item ul li {
  padding-bottom: 8px;
  line-height: 1.6;
}

.resume .resume-item:last-child {
  margin-bottom: 0;
}

.resume .resume-item p em {
  color: var(--color-text-muted);
  font-weight: 500;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

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

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

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 28px;
  text-align: center;
  background: rgba(20, 157, 221, 0.75);
  transition: 0.3s;
  width: 50%;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: rgba(20, 157, 221, 0.95);
}

.portfolio .portfolio-wrap .portfolio-links a + a {
  border-left: 1px solid #37b3ed;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.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 var(--color-accent);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-accent);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(5, 13, 24, 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;
}

/*--------------------------------------------------------------
# Services / Focus Areas - card style with hover lift
--------------------------------------------------------------*/
.services .icon-box {
  margin-bottom: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  color: #1a1a1a;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.services .icon-box:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

/* Focus Area card glow on scroll-in */
.services .icon-box[data-aos].aos-animate {
  animation: focusCardGlow 2s ease-out forwards;
}

@keyframes focusCardGlow {
  0% { box-shadow: var(--shadow-card); }
  30% { box-shadow: 0 8px 28px var(--color-accent-light); border-color: var(--color-accent); }
  100% { box-shadow: var(--shadow-card); border-color: rgba(0, 0, 0, 0.06); }
}

.services .icon-box > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 22px;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
  transition: background 0.25s ease, color 0.25s ease;
}

.services .icon-box:hover > i {
  background: var(--color-accent-hover);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.services .icon {
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--color-accent);
}

.services .icon i {
  color: #fff;
  font-size: 24px;
  line-height: 0;
}

.services .icon-box:hover .icon {
  background: #fff;
}

[data-theme="dark"] .services .icon-box {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
  color: #e5e7eb;
}

[data-theme="dark"] .services .icon-box h4 {
  color: #f3f4f6;
}

[data-theme="dark"] .services .icon-box p {
  color: #9ca3af;
}

.services .icon-box:hover .icon i {
  color: var(--color-accent);
}

.services .title {
  margin-left: 80px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .title a {
  color: #343a40;
}

.services .title a:hover {
  color: var(--color-accent);
}

.services .description {
  margin-left: 80px;
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right {
  color: #c3e8fa;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background: #fff;
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid #fff;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid var(--color-accent);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-accent);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 130px;
}

/* Contact cards - clean grid, no form, no map */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

[data-theme="dark"] .contact-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .contact-card h4,
[data-theme="dark"] .contact-card p {
  color: var(--color-text);
}

.contact-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.contact-card i {
  font-size: 28px;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.contact-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-card a {
  color: var(--color-accent);
}

.contact-card a:hover {
  color: var(--color-accent-hover);
}

.btn-contact {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: scale(1.02);
}

.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: var(--color-accent);
  float: left;
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-heading);
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-heading);
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

.contact .info .social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

.contact .info .email:hover i, .contact .info .address:hover i, .contact .info .phone:hover i {
  background: var(--color-accent);
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.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 .form-group {
  margin-bottom: 15px;
}

.contact .php-email-form label {
  padding-bottom: 8px;
}

.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 15px;
}

.contact .php-email-form button[type="submit"],
.contact .php-email-form input[type="submit"] {
  background: var(--color-accent);
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
  border-radius: 8px;
}

.contact .php-email-form button[type="submit"]:hover,
.contact .php-email-form input[type="submit"]:hover {
  background: var(--color-accent-hover);
  transform: scale(1.03);
}

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

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

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 20px 0;
  background: #f9f9f9;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

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

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #0e2442;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #eaebf0;
}

#footer .credits a {
  color: rgba(234, 235, 240, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer .credits a:hover {
  color: #fff;
}

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    padding-right: 20px 15px;
  }
}
