/*--------------------------------------------------------------
# Material Icons
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: "Open Sans", sans-serif;
    color: #000000;
    position: relative;
    background: transparent;
    font-size: 17px; /* Increased from default (typically 16px) */
}

body::before {
    content: "";
    position: fixed;
    background: #ffffff;
    background-size: cover;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
}


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

a {
    color: #4285F4;
}

a:hover {
    color: #4285F4;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    transition: ease-in-out 0s;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 997;
    overflow-y: auto;
}

#header * {
    transition: ease-in-out 0s;
}

#header h1 {
    font-size: 42px;
    margin-top: 0px;
    margin-right: 15px;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

#header h1 a, #header h1 a:hover {
    color: #000000;
    line-height: 1;
    display: inline-block;
}

#header h2 {
    font-size: 24px;
    margin-top: 20px;
    color: #240072;
}





#header h2 span {
    color:  #000000;
    border-bottom: 5px solid #000000 ;
    padding-bottom: 5px;
}


#header img {
    padding: 0;
    margin: 0;
}

#header .social-links {
    margin-top: 40px;
    display: flex;
}

#header .social-links a {
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    color: #ffffff;
    line-height: 1;
    margin-right: 8px;
    border-radius: 100%;
    width: 45px;
    height: 45px;
}

#header .social-links a:hover {
    background: #192a56;
}

@media (max-width: 992px) {
    #header h1 {
        font-size: 36px;
    }
    #header h2 {
        font-size: 20px;
        line-height: 30px;
    }
    #header .social-links {
        margin-top: 15px;
    }
    #header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
    margin-top: 35px;
}

.nav-menu ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li + li {
    margin-left: 30px;
}

.nav-menu a {
    display: block;
    position: relative;
    color: #fff;
    font-size: 19px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

.nav-menu a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #9e7f25;
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
}

.nav-menu a:hover:before, .nav-menu li:hover > a:before, .nav-menu .active > a:before {
    visibility: visible;
    width: 25px;
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
    color: #12d640;
    text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 9998;
    background: 0;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.mobile-nav-toggle i {
    color: #000000;
    font-size: 26px;
    display: block;
    line-height: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.15); /* Soft transparency */
    backdrop-filter: blur(10px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(10px); /* Ensure support on Safari */
    overflow: hidden auto;
    transform: translateY(-100%);
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overscroll-behavior: contain;
    border-radius: 12px; /* Smooth rounded edges */
}


.mobile-nav-active .mobile-nav {
    transform: translateY(0);
}

.mobile-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 60px 16px 16px;
    margin: 0;
    list-style: none;
}

.mobile-nav a {
    color: #fff;
    padding: 12px 16px; /* Reduced from 14px 16px */
    font: 500 16px/1.5 "Poppins", sans-serif;
    text-decoration: none;
    display: block;
    transform: translateZ(0);
}

.mobile-nav a:active {
    color: #000000;
}

.mobile-nav-overly,
.mobile-nav *:before,
.mobile-nav *:after {
    display: none !important;
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
/* MATERIAL ICONS FONT LOADING */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: 
      local('Material Icons'),
      local('MaterialIcons-Regular'),
      url(https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
  }
  
  /* MOBILE NAVIGATION ICONS */
  .mobile-nav a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important; /* Reduced from 14px 20px */
    position: relative !important;
  }
  
  .mobile-nav a .material-icons.mobile-menu-icon {
    /* Font Properties */
    font-family: 'Material Icons' !important;
    font-size: 30px !important; /* Increased from 24px */
    font-weight: normal !important;
    font-style: normal !important;
    color: #4285F4 !important; /* Pure black */
}

    
    /* Sizing & Spacing */
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    line-height: 1 !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    
    /* Color & Display */
    color: #0dcd3c !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Rendering Optimizations */
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }
  
  /* iOS SPECIFIC FIXES */
  @supports (-webkit-touch-callout: none) {
    .mobile-nav a .material-icons.mobile-menu-icon {
      -webkit-text-stroke: 0.45px #0dcd3c !important;
      text-shadow: 0 0 0.5px rgba(13, 205, 60, 0.7) !important;
    }
  }
  
  /* ICON CONTENT - FIXED TO MATCH YOUR HTML (#portfolio instead of #projects) */
  .mobile-nav a[href*="#header"] .material-icons.mobile-menu-icon::before { content: "home"; }
  .mobile-nav a[href*="#about"] .material-icons.mobile-menu-icon::before { content: "person"; }
  .mobile-nav a[href*="#education"] .material-icons.mobile-menu-icon::before { content: "school"; }
  .mobile-nav a[href*="#certification"] .material-icons.mobile-menu-icon::before { content: "verified"; }
  .mobile-nav a[href*="#research"] .material-icons.mobile-menu-icon::before { content: "science"; }
  .mobile-nav a[href*="#experience"] .material-icons.mobile-menu-icon::before { content: "work_history"; }
  .mobile-nav a[href*="#portfolio"] .material-icons.mobile-menu-icon::before { content: "api"; } /* Fixed from #projects to #portfolio */
  .mobile-nav a[href*="#skills"] .material-icons.mobile-menu-icon::before { content: "skull"; }
  .mobile-nav a[href*="#blogs"] .material-icons.mobile-menu-icon::before { content: "newsmode"; }
  .mobile-nav a[href*="#contact"] .material-icons.mobile-menu-icon::before { content: "email"; }
  
  /* ACTIVE STATE */
  .mobile-nav .active a .material-icons.mobile-menu-icon {
    color: #0dcd3c !important;
    transform: scale(1.05) !important;
  }
  
  /* FALLBACK FOR WHEN ICONS DON'T LOAD */
  .mobile-nav a i.mobile-menu-icon:empty:before {
    content: attr(data-fallback);
    font-family: initial !important;
    font-size: 20px;
  }
  /* Header Top */


/* Header Top */
#header.header-top {
    height: 90px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2); /* Pure white with low opacity for glassmorphism */
    backdrop-filter: blur(10px); /* Blur effect for frosted glass */
    -webkit-backdrop-filter: blur(10px); /* Safari compatibility */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border for depth */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for glassmorphism */
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    #header.header-top {
        background: rgba(255, 255, 255, 0.5); /* Slightly more opaque fallback */
    }
}

#header.header-top .social-links, #header.header-top h2 {
    display: none;
}

#header.header-top h1 {
    margin-right: auto;
    font-size: 36px;
}

#header.header-top .container {
    display: flex;
    align-items: center;
}

#header.header-top .nav-menu {
    margin: 0;
}

@media (max-width: 768px) {
    #header.header-top {
        height: 60px;
    }
    #header.header-top h1 {
        font-size: 26px;
    }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    overflow: hidden;
    position: absolute;
    width: 100%;
    top: 120px; /* Reduced from 140px */
    bottom: 100%;
    opacity: 0;
    z-index: 2;
    
}

section.section-show {
    top: 70px;
    bottom: auto;
    opacity: 1;
    padding-bottom: 0px;
}

section .container {
    background: rgba(0, 0, 0, 0);
    padding: 30px;
}

@media (max-width: 768px) {
    section {
        top: 20px; /* Reduced from 120px */
    }
    section.section-show {
        top: 30px;
        
    }
}

.section-title h2 {
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    line-height: 1px;
    margin: 0 0 15px 0; /* Reduced from 20px */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
    font-family: "Poppins", sans-serif;
}

.section-title h2::after {
    content: "";
    width: 120px;
    height: 4px;
    display: inline-block;
    background: #000000;
    margin: 4px 10px;
}

.section-title p {
    margin: 0;
    margin: -15px 0 10px 0; /* Reduced from 15px */
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    color: #fff;
}
section {
    padding-bottom: 50px !important;
}
/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-me .content h3 {
    font-weight: 700;
    font-size: 26px;
    color: #1c7d32;
}

.about-me .content ul {
    list-style: none;
    padding: 0;
}

.about-me .content ul li {
    padding-bottom: 10px;
}

.about-me .content ul i {
    font-size: 20px;
    padding-right: 2px;
    color: #1c7d32;
}

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

/*--------------------------------------------------------------
# Counts
--------------------------------------------------------------*/
.counts {
    padding: 70px 0 60px;
}

.counts .count-box {
    padding: 30px 30px 25px 30px;
    width: 100%;
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
}

.counts .count-box i {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    color: #1c7d32;
    border-radius: 50px;
}

.counts .count-box span {
    font-size: 36px;
    display: block;
    font-weight: 600;
    color: #fff;
}

.counts .count-box p {
    padding: 0;
    margin: 0;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
    height: 50px;
    display: block;
    background: none;
}

.skills .progress .skill {
    padding: 0;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: #fff;
}

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

.skills .progress-bar-wrap {
    background: rgba(255, 255, 255, 0.15);
}

.skills .progress-bar {
    width: 1px;
    height: 10px;
    transition: .9s;
    background-color: #1c7d32;
}

/*--------------------------------------------------------------
# Interests
--------------------------------------------------------------*/
.interests .icon-box {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 15px solid #f6f8f9;
    border-radius: 10px; 
    transition: ease-in-out 0.3s;
}


.interests .icon-box i {
    font-size: 30px;
    padding-right: 10px;
    line-height: 1;
}

.interests .icon-box h3 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    color: #fff;
}

.interests .icon-box:hover {
    background: rgba(66, 132, 244, 0.2); /* 65% transparency */
    
}




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

.testimonials .testimonial-item .testimonial-img {
    width: 90px;
    border-radius: 50%;
    margin: -40px 0 0 40px;
    position: relative;
    z-index: 2;
    border: 6px solid rgba(255, 255, 255, 0.12);
}

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

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

.testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right {
    color: rgba(255, 255, 255, 0.25);
    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 0 15px;
    padding: 20px 20px 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.testimonials .owl-nav, .testimonials .owl-dots {
    margin-top: 5px;
    text-align: center;
}

.testimonials .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.testimonials .owl-dot.active {
    background-color: #1c7d32 !important;
}

@media (max-width: 767px) {
    .testimonials {
        margin: 30px 10px;
    }
}

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

.resume .resume-item {
    padding: 0 0 20px 20px;
    margin-top: -2px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.resume .resume-item h4 {
    line-height: 18px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    color: #1c7d32;
    margin-bottom: 10px;
}

.resume .resume-item h5 {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.resume .resume-item ul li {
    padding-bottom: 10px;
}

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

.resume .resume-item::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50px;
    left: -9px;
    top: 0;
    background: #9e7f25;
    border: 2px solid #9e7f25;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
    text-align: center;
    background: #09203a;
    padding: 40px 40px;
    transition: all ease-in-out 0.3s;
    margin: 10px
}

.services .icon-box .icon {
    margin: 0 auto;
    width: 64px;
    height: 64px;
    background: #f6f8f9;
    border-radius: 5px;
    transition: all .3s ease-out 0s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform-style: preserve-3d;
}

.services .icon-box .icon i {
    color: #fff;
    font-size: 28px;
}

.services .icon-box .icon::before {
    position: absolute;
    content: '';
    left: -8px;
    top: -8px;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    transition: all .3s ease-out 0s;
    transform: translateZ(-1px);
}

.services .icon-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}

.services .icon-box h4 a {
    color: #fff;
}

.services .icon-box p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.services .icon-box:hover {
    background: #042e5f;
    border-color: #f6f8f9;
}

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

.services .icon-box:hover .icon i {
    color: #f6f8f9;
}

.services .icon-box:hover .icon::before {
    background: #4284f4;
}

.services .icon-box:hover h4 a, .services .icon-box:hover p {
    color: #4284f4;
}

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

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

.portfolio #portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 8px 16px 10px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    background: #000000;
    margin: 0 3px 10px 3px;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
}

.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
    background: #192a56;
}

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

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

.portfolio .portfolio-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:transparent; /* Semi-transparent white */
    border: 15px solid #f6f8f9;
    border-radius: 0;
    transition: all ease-in-out 0.3s;
    z-index: 2;
    opacity: 1;
    
}


.portfolio .portfolio-wrap .portfolio-info {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    z-index: 3;
    transition: all ease-in-out 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

@supports not (backdrop-filter: blur(10px)) {
    .portfolio .portfolio-wrap .portfolio-info {
        background: rgba(255, 255, 255, 0.5) !important;
    }
}

.portfolio .portfolio-wrap .portfolio-info::before {
    display: block;
    content: "";
    width: 48px;
    height: 48px;
    position: absolute;
    top: 35px;
    left: 35px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #fffefe;
    transition: all 0.5s ease 0s;
    z-index: 9994;
    
}

.portfolio .portfolio-wrap .portfolio-info::after {
    display: block;
    content: "";
    width: 48px;
    height: 48px;
    position: absolute;
    bottom: 35px;
    right: 35px;
    border-bottom: 5px solid #ffffff;
    border-right: 5px solid #ffffff;
    transition: all 0.5s ease 0s;
    z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
    font-size: 20px;
    color: #000000;
    font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
    text-align: center;
    z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
    color: #fff;
    margin: 0 2px;
    font-size: 28px;
    display: inline-block;
    transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
    color: #4285f4;
}

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

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

.portfolio .portfolio-wrap:hover .portfolio-info::before {
    top: 15px;
    left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
    bottom: 15px;
    right: 15px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
    color: #444444;
    padding: 20px;
    width: 100%;
    background: #ffffff; /* Pure solid white */
    border: 15px solid #f6f8f9; /* Matching solid border */
    border-radius: 8px; /* Slightly rounded corners */
}



.contact .info-box {
    display: flex; /* Enables Flexbox */
    justify-content: space-evenly; /* Ensures even spacing between icons */
    align-items: center;
}

.contact .info-box i.bx {
    font-size: 20px;
    color: #ffffff;
    border-radius: 20%;
    padding: 18px;
    background: rgb(0, 0, 0);
    margin: 10px; /* Adjust as needed to fine-tune spacing */
}


.contact .info-box h3 {
    font-size: 20px;
    color: #4284F4;
    font-weight: 700;
    margin: 10px 0 8px 68px;
}

.contact .info-box p {
    padding: 0;
    color: #000000;
    line-height: 24px;
    font-size: 14px;
    margin: 0 0 0 68px;
}

.contact .info-box .social-links {
    margin: 5px 0 0 68px;
    display: flex;
}

.contact .info-box .social-links a {
    font-size: 23px;
    display: inline-block;
    color: #fff;
    line-height: 1;
    margin-right: 12px;
    transition: 0.3s;
}

.contact .info-box .social-links a:hover {
    color: #4285f4;
}




.contact .php-email-form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
}

.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;
    background: rgba(255, 255, 255, 0.08);
    background: #ed3c0d;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    background: #1c7d32;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    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 #1c7d32;
    border-top-color: #eee;
    -webkit-animation: animate-loading 1s linear infinite;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input, .contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    transition: 0.3s;
    color: #fff;
}

.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.11);
}

.contact .php-email-form input::-webkit-input-placeholder, .contact .php-email-form textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.contact .php-email-form input::-moz-placeholder, .contact .php-email-form textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.contact .php-email-form input:-ms-input-placeholder, .contact .php-email-form textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.contact .php-email-form input::-ms-input-placeholder, .contact .php-email-form textarea::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

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

.contact .php-email-form input {
    padding: 20px 15px;
}

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

.contact .php-email-form button[type="submit"] {
    background: #1c7d32;
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
    background: #15bb62;
}

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

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

/*--------------------------------------------------------------
# Credits
--------------------------------------------------------------*/
.credits {
    position: fixed;
    right: 15px;
    bottom: 15px;
    font-size: 13px;
    color: #fff;
    z-index: 1;
}

.credits a {
    color: #1c7d32;
    transition: 0.3s;
}

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

@media (max-width: 992px) {
    .credits {
        left: 50%;
        right: 0;
        transform: translateX(-50%);
    }
}

/* Fix portfolio item background */
.portfolio .portfolio-wrap {
    background: transparent !important;
}

.portfolio .portfolio-wrap::before {
    content: "";
    background: rgba(246, 248, 249, 0) !important; /* Soft transparency for glass effect */
    backdrop-filter: blur(0px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    position: absolute;
    inset: 0; /* Auto width and height */
    transition: all ease-in-out 0.3s;
    z-index: 2;
    opacity: 1;
}


/* Prevent white flashes on scroll */
html, body {
    background: #ffffff !important; /* Pure white background */
    
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box; /* Ensures border fits within the layout */
}




/* Fix for iOS/Safari rendering */
body::before {
    height: 100% !important;
    z-index: -1 !important;
}

/* Disable tap highlights */
a, button, .portfolio-wrap {
    -webkit-tap-highlight-color: transparent;
}

/* Fix for venobox iframe container */
.vbox-overlay {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism blur effect */
    -webkit-backdrop-filter: blur(10px); /* Cross-browser support */
}


.vbox-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.vbox-content {
    background: transparent !important;
    border: none !important;
}

.venobox iframe {
    background: transparent !important;
    -webkit-backdrop-filter: blur(10px); /* Cross-browser support */;
    backdrop-filter: none !important;
    
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}


.portfolio .portfolio-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent !important;
    border: 15px solid #f6f8f9;
    border-radius: 0;
    transition: all ease-in-out 0.3s;
    z-index: 2;
    opacity: 1;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}




.portfolio .portfolio-info {
    background: #ffffff !important;
}

/* Prevent white flashes during transitions */
.vbox-overlay, .vbox-container {
    transition: none !important;
    animation: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Fix Google Material Close Button */
.vbox-close {
    display: block !important;
    position: fixed;
    top: 15px;
    right: 15px;
    background: transparent !important;
    border: none !important;
    font-size: 32px !important;
    color: #fff !important;
    cursor: pointer;
    z-index: 10000;
    padding: 5px;
    transition: all 0.3s;
}

.vbox-close:hover {
    color: #d61212 !important;
    transform: scale(1.1);
}

.vbox-close i {
    font-family: 'Material Icons';
    font-size: inherit !important;
    color: inherit !important;
}

/* Custom gamepad close button for mobile */





.vbox-overlay {
   background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism blur effect */
    -webkit-backdrop-filter: blur(10px); /* Cross-browser support */
    
}


/* Add this to ensure default buttons are visible */
.vbox-close,
.vbox-prev,
.vbox-next {
  display: block !important;
}






/* Custom styling for Venobox close, previous, and next buttons */
/* Custom styling for Venobox close, previous, and next buttons */

/* Custom Venobox Button Styling */
.vbox-close, 
.vbox-next, 
.vbox-prev {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

/* Button icons */
.vbox-close:before, 
.vbox-next:before, 
.vbox-prev:before {
  color: #4284F4 !important;
  font-weight: 900 !important;
  font-size: 8px !important;
  text-shadow: none !important;
}



/* Position adjustments */
.vbox-close {
  top: 20px !important;
  right: 20px !important;
}

.vbox-next, 
.vbox-prev {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.vbox-prev {
  left: 20px !important;
}

.vbox-next {
  right: 20px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .vbox-close, 
  .vbox-next, 
  .vbox-prev {
    width: 35px !important;
    height: 35px !important;
  }
  
  .vbox-close:before, 
  .vbox-next:before, 
  .vbox-prev:before {
    font-size: 18px !important;
  }
}


@keyframes pulse {
    0% { 
        transform: scale(1); 
        
    }
    50% { 
        transform: scale(1.1); 
        
    }
    100% { 
        transform: scale(1); 
        
    }
}









/* Global scrollbar styling - hidden but functional */
html {
  overflow-y: scroll; /* Force scrollbar to prevent shifting */
  scrollbar-width: none; /* Firefox - hide scrollbar */
  scroll-behavior: smooth; /* Smooth scrolling for all devices */
  overscroll-behavior: contain; /* Prevent overscroll bounce for better control */
  touch-action: pan-y; /* Optimize touch scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
}

body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* Section scroll handling */
section {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overscroll-behavior: contain; /* Prevent overscroll bounce in sections */
  touch-action: pan-y; /* Optimize touch scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
}

section::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* Iframe scroll handling */
iframe {
  scrollbar-width: none !important; /* Firefox - force hide scrollbar */
  -ms-overflow-style: none !important; /* IE/Edge - force hide scrollbar */
  overflow: -moz-scrollbars-none !important; /* Legacy Firefox support */
  overscroll-behavior: contain; /* Prevent overscroll bounce in iframes */
  touch-action: pan-y; /* Optimize touch scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
}

iframe::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Opera - force hide scrollbar */
}

/* Ensure proper scrolling container */
.section-show {
  height: calc(100vh - 70px);
  overflow-y: auto;
}

/* Fix for header when scrolled */
#header.header-top {
  position: fixed;
  width: 100%;
  z-index: 9997;
}

/* Adjust section positioning to account for fixed header */
section.section-show {
  padding-top: 15px;
  margin-top: 0;
}

/* Prevent flash of unstyled content */
body.loaded {
  visibility: visible;
  opacity: 1;
}


