/**
* 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: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Inter", sans-serif;
}

/* Modern Color Palette - Soft and Professional */
:root { 
  --background-color: #fafbfc; /* Very soft gray-white */
  --default-color: #2d3748; /* Soft dark gray for text */
  --heading-color: #1a202c; /* Darker gray for headings */
  --accent-color: #667eea; /* Soft blue-purple */
  --accent-hover: #5a67d8; /* Slightly darker accent */
  --surface-color: #ffffff; /* Pure white for cards */
  --contrast-color: #ffffff; /* White text on dark backgrounds */
  --border-color: #e2e8f0; /* Very soft border */
  --text-muted: #718096; /* Muted text color */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Nav Menu Colors */
:root {
  --nav-color: #718096;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #1a202c;
  --nav-dropdown-background-color: #2d3748;
  --nav-dropdown-color: #a0aec0;
  --nav-dropdown-hover-color: #ffffff;
}

/* Color Presets */
.light-background {
  --background-color: #f7fafc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1a202c;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #2d3748;
  --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);
  line-height: 1.7;
  font-weight: 400;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
}

/* Modern Card Styling */
.modern-card {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.modern-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

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

.php-email-form .sent-message {
  display: none;
  color: #22543d;
  background: #f0fff4;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 500;
  border-radius: 8px;
  border-left: 4px solid #38a169;
}

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

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

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

/* Enhanced Hero Background */
.hero-bg {
  background: var(--gradient-primary);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: gradientShift 10s ease-in-out infinite;
  top: 0;
  left: 0;
}

@keyframes gradientShift {
  0%, 100% { 
    background: var(--gradient-primary);
  }
  50% { 
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  }
}

.profile-img.animated-glow {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.profile-img.animated-glow:hover {
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 20px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.header .profile-img img {
  margin: 20px auto;
  display: block;
  width: 120px;
  border: 4px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.header .profile-img img:hover {
  border-color: var(--accent-color);
}

.header .logo {
  line-height: 1;
  margin-bottom: 20px;
  text-align: center;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .social-links {
  margin: 0 0 30px 0;
  text-align: center;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  color: var(--text-muted);
  margin: 0 4px;
  border-radius: 12px;
  text-align: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

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

@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: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 90%;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.header .header-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.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 20px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 4px;
}

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

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--accent-color);
  background: rgba(102, 126, 234, 0.1);
}

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

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

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

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

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

.section-title p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-primary);
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.1;
}

.hero:before {
  content: "";
  background: rgba(26, 32, 44, 0.7);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin-left: 0;
  font-size: 48px;
  font-weight: 700;
  color: var(--contrast-color);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  margin: 20px 0;
  font-size: 20px;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.hero a {
  color: var(--contrast-color);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 8px;
  display: inline-block;
}

.hero a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.about .content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# What's New Section
--------------------------------------------------------------*/
.whats-new {
  background: var(--surface-color);
}

.whats-new-item {
  padding: 5px;
  margin-bottom: 16px;
  background: var(--surface-color);
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.whats-new-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-medium);
}

.whats-new-item .icon {
  font-size: 20px;
  margin-right: 12px;
}

.whats-new-item strong {
  color: var(--accent-color);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 30px;
}

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

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent-color);
  font-weight: 700;
}

.skills .progress-bar-wrap {
  background: var(--border-color);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.skills .progress-bar {
  width: 1px;
  height: 12px;
  transition: 1.2s ease;
  background: var(--gradient-primary);
  border-radius: 6px;
}

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

.resume .resume-item {
  padding: 25px;
  margin-bottom: 20px;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.resume .resume-item:hover {
  box-shadow: var(--shadow-medium);
}

.resume .resume-item h4 {
  line-height: 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 14px;
  padding: 6px 12px;
  display: inline-block;
  font-weight: 500;
  margin-bottom: 10px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--accent-color);
  border-radius: 20px;
}

.resume .experience-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.resume .logos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.resume .logo {
  max-width: 120px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
  .resume .experience-item {
    flex-direction: column;
  }
  
  .resume .logos {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
  background: var(--gradient-primary);
  color: var(--contrast-color);
}

.stats .stats-item {
  padding: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stats .stats-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.stats .stats-item i {
  color: var(--contrast-color);
  font-size: 48px;
  margin-bottom: 20px;
}

.stats .stats-item .purecounter {
  color: var(--contrast-color);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  display: block;
}

.stats .stats-item p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 40px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 8px 10px 8px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
}

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

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.portfolio .portfolio-content:hover {
  box-shadow: var(--shadow-medium);
}

.portfolio .portfolio-content img {
  transition: 0.3s;
  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(26, 32, 44, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.portfolio .portfolio-content .portfolio-info p {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  font-size: 24px;
  color: #fff;
  transition: 0.3s;
  margin: 0 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 90%;
  backdrop-filter: blur(10px);
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

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

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background: var(--surface-color);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  border-radius: 12px;
}

.contact .info-item {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--contrast-color);
  background: var(--accent-color);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.contact .info-item:hover i {
  transform: scale(1.1);
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

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

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

.scroll-top:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

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

/*--------------------------------------------------------------
# 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(--border-color);
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 90%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

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

/*--------------------------------------------------------------
# Responsive Design Improvements
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  section, .section {
    padding: 60px 0;
  }
}