/* ===== GENERAL STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--light-color);
    background-color: var(--dark-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(139, 148, 158, 0.1);
    z-index: 9999;
}

.progress-line {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

:root {
    --primary-color: #2f81d9;
    --secondary-color: #3B82F6;
    --dark-color: #060a10;
    --darker-color: #0b1118;
    --light-color: #f0f6fc;
    --gray-color: #8b949e;
    --card-bg-color: #21262d;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
    --danger-color: #f85149;
    --side-nav-width: 250px;
}

* {
    max-width: 100%;
}

.container,
.row {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.section-padding {
    padding: var(--section-padding);
}

/* Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-color), transparent);
}

.bg-light {
    background-color: var(--darker-color) !important;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.btn {
    padding: 10px 25px;
    opacity: 0.9;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    opacity: 1;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Utility Classes */
.cv-hidden {
    display: none;
}

/* Progress Bar Utilities */
.progress-95 { width: 95%; }
.progress-90 { width: 90%; }
.progress-85 { width: 85%; }
.progress-80 { width: 80%; }

.btn-outline-primary:active, .btn-outline-primary:focus {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Reset button state after click */
.btn:focus, .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn-outline-primary {
    transition: all 0.3s ease;
}

/* ===== TOP NAVIGATION ===== */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(13, 17, 23, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 15px;
    transition: var(--transition);
}

.nav-toggle-btn {
    display: none;
}

@media (max-width: 768px) {
    .side-nav {
        padding: 0 15px;
        height: 50px;
        justify-content: center;
        background-color: rgba(13, 17, 23, 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .nav-toggle-btn {
        display: flex;
        position: fixed;
        top: 8px;
        right: 15px;
        width: 35px;
        height: 35px;
        background-color: transparent;
        color: var(--primary-color);
        border: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        transition: var(--transition);
        flex-direction: column;
        padding: 5px;
    }

    .nav-toggle-btn:hover {
        transform: scale(1.1);
    }

    /* Hamburger menu icon */
    .nav-toggle-btn span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background-color: #2f81d9;
        transition: all 0.3s ease;
    }

    .nav-toggle-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-links {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        margin-right: 0;
        z-index: 999;
    }

    .side-nav.collapsed .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}
@media (max-width: 767px) {
    .nav-toggle-btn{
       right: 15px;
       left: auto;
    }
}
.nav-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-logo img {
    display: inline-block;
    width: 120px;
    height: 45px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
    transition: var(--transition);
}

.nav-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(78, 84, 200, 0.6);
}

.logo {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 20px;
  margin-left: -10px;
  height: 40px;
  width: auto;
  position: relative;
  z-index: 1002;
  font-size: 1.7rem; /* Increased logo size */
}

.logo span {
  animation: colorChange 4s infinite alternate;
}

.logo .number {
    font-size: 40px;
    animation: colorChange 4s infinite alternate;
    margin-top: -2px;
}

.logo .text {
    font-size: 35px;
    animation: colorChange 4s infinite alternate;
}

.logo .symbols {
  font-size: 35px;
  color: #666;
  animation: colorChangeGray 4s infinite alternate;
}

.logo .symbols.s2 {
  display: inline-block;
  margin-left: 2px;
}

@keyframes colorChange {
    0% { color: #2f81d9; }
    50% { color: #7bb8ff; }
    100% { color: #2f81d9; }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .logo {
        font-size: 24px;
        padding: 2px 12px;
    }
  .logo .number {
        font-size: 32px;
        margin-top: 0;
    }
  .logo .text {
        font-size: 28px;
    }
  .logo .symbols {
        font-size: 29px;
        position: relative;
        top: 1px;
    }
    .logo .symbols.s2 {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
  .logo {
        font-size: 20px;
        padding: 2px 10px;
        left: -1px;
    }
  .logo .number {
        font-size: 28px;
    }
  .logo .text {
        font-size: 24px;
    }
  .logo .symbols {
        font-size: 25px;
    }
}

/* Removed absolute positioning for .s2 */

@keyframes colorChangeGray {
  0% { color: #555; }
  50% { color: #8b949e; }
  100% { color: #555; }
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    margin-left: auto;
    margin-right: 20px;
}

.nav-links li {
    margin: 0 5px;
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--gray-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    border-radius: 5px;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light-color) !important;
    background-color: rgba(47, 129, 217, 0.15) !important;
}

.nav-links a:focus:not(.active) {
    color: var(--gray-color) !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.nav-links a:active:not(.active) {
    color: var(--gray-color) !important;
    background-color: transparent !important;
}

.nav-links a:visited:not(.active) {
    color: var(--gray-color);
}

.nav-links a.active::after {
    width: 80% !important;
}

.nav-links a.active i {
    color: var(--primary-color) !important;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover i,
.nav-links a.active i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        max-width: 100%;
        overflow-x: hidden;
        background-color: rgba(22, 27, 34, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        margin-right: 0;
        z-index: 999;
    }

    .nav-links li {
        margin: 5px 0;
        width: 100%;
    }

    .nav-links a {
        padding: 12px 25px;
        width: 100%;
        border-radius: 0;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-left: 3px solid var(--primary-color);
        background-color: rgba(47, 129, 217, 0.1) !important;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .nav-links {
        margin-right: 10px;
    }

    .nav-links a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .nav-links a i {
        margin-right: 5px;
    }
}

.nav-footer {
    display: flex;
}

.nav-footer .social-icons {
    display: flex;
}

.nav-footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--card-bg-color);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--gray-color);
    font-size: 14px;
    transition: var(--transition);
}

.nav-footer .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .nav-footer {
        display: none;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    width: 100%;
    transition: var(--transition);
}

/* Add spacing between sections */
section.section {
    padding: 140px 0;
    margin-bottom: 60px;
    position: relative;
}

section.section::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

section.section:last-child {
    margin-bottom: 0;
}

.bg-alt {
    background-color: var(--darker-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/new-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.social-icons {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hero-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-social a {
    width: 45px;
    height: 45px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-social a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 49%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    background: linear-gradient(145deg, rgba(78, 158, 255, 0.4), rgba(59, 130, 246, 0.4));
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(78, 158, 255, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .scroll-down-btn {
        width: 45px;
        height: 45px;
        bottom: 30px;
        font-size: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}
.scroll-down-btn:hover {
    background-color: rgba(78, 158, 255, 0.6);
    color: white;
}
@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

/* ===== ABOUT SECTION ===== */
.about-img {
    position: relative;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    text-align: center;
    max-width: 550px;
    margin: 0 auto 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    z-index: 1;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    z-index: 1;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    width: 450px;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.about-img img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(47, 129, 217, 0.3);
}

.about-content {
    padding-left: 50px;
    padding-top: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.about-content .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-row {
        display: none;
    }

    .stat-item {
        display: none;
    }

    .stat-number {
        display: none;
    }

    .stat-label {
        display: none;
    }
}

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

.info-item i {
    width: 35px;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item p {
    margin-bottom: 0;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-color);
}

.info-item span {
    display: block;
    font-size: 1.05rem;
    line-height: 1.5;
}

.info-item a {
    display: inline-block;
    transition: var(--transition);
}

@media (max-width: 767.98px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-item i {
        margin-bottom: 5px;
    }
}

@media (max-width: 575.98px) {
    .footer-contact .phone-link {
        display: inline-block;
    }
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    margin-top: 50px;
}

.skill-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background-color: rgba(47, 129, 217, 0.05);
    border-radius: 50%;
    z-index: 0;
    transition: var(--transition);
}

.skill-card:hover::before {
    transform: scale(1.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: var(--transition);
}

/* Specific colors for each skill icon */
.skill-icon .fa-html5 {
    color: #E44D26; /* HTML5 color */
}

.skill-icon .fa-css3-alt {
    color: #264DE4; /* CSS3 color */
}

.skill-icon .fa-js {
    color: #F7DF1E; /* JavaScript color */
}

.skill-icon .fa-bootstrap {
    color: #7952B3; /* Bootstrap color */
}

.skill-icon .fa-mobile-alt {
    color: #60A5FA; /* Android green for responsive design */
}

.skill-icon .fa-code {
    color: #00C7B7; /* Netlify teal for web performance */
}

.skill-icon .tailwind-icon {
    color: #06B6D4; /* Tailwind CSS color */
    width: 48px;
    height: 48px;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.progress-container {
    position: relative;
    height: 8px;
    margin-bottom: 1.5rem;
    background-color: rgba(47, 129, 217, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 10px;
    height: 100%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-animation 1.5s infinite;
}

@keyframes progress-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== PROJECTS SECTION ===== */
.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
}

.project-filters::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.filter-btn {
    background-color: var(--card-bg-color);
    color: var(--gray-color);
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(47, 129, 217, 0.3);
}

.filter-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.filter-btn:not(.active):focus {
    background-color: var(--card-bg-color) !important;
    color: var(--gray-color) !important;
}

.filter-btn:not(.active):active {
    background-color: var(--card-bg-color) !important;
    color: var(--gray-color) !important;
}

.filter-btn:not(.active):visited {
    background-color: var(--card-bg-color);
    color: var(--gray-color);
}

.project-container {
    margin-top: 30px;
}

.project-item {
    display: flex;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    height: 100%;
    background-color: var(--card-bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(47, 129, 217, 0.2), 0 0 20px rgba(47, 129, 217, 0.1);
    border: 1px solid rgba(47, 129, 217, 0.3);
}

.project-img {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-img img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 1 !important;
    border-radius: 10px 10px 0 0;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-color);
    font-size: 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.project-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.project-links a:nth-child(2) {
    transition-delay: 0.2s;
}

.project-links a:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-5px);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-color);
    min-height: 2.6rem;
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 7.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    min-height: 60px;
    align-content: flex-start;
}

.tech-stack span {
    background-color: rgba(47, 129, 217, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Project Buttons - Performance Optimized */
.project-mobile-buttons {
    display: none; /* Hidden by default on desktop */
    padding: 15px 25px 0;
    gap: 12px;
    justify-content: center;
    will-change: transform; /* Performance optimization */
    contain: layout; /* CSS containment for better performance */
}

.project-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Optimized transitions */
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    will-change: transform; /* Performance hint */
}

.project-mobile-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.project-mobile-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.project-mobile-btn.demo-btn {
    background: linear-gradient(135deg, var(--primary-color), #2f81d9);
    color: white;
    box-shadow: 0 3px 12px rgba(47, 129, 217, 0.3);
}

.project-mobile-btn.demo-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
    color: white;
    box-shadow: 0 5px 18px rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
}

.project-mobile-btn.github-btn {
    background: transparent;
    color: var(--light-color);
    border-color: var(--gray-color);
}

.project-mobile-btn.github-btn:hover {
    background: var(--gray-color);
    color: var(--dark-color);
    border-color: var(--gray-color);
}

/* Show buttons only on mobile devices */
@media (max-width: 768px) {
    .project-mobile-buttons {
        display: flex;
    }

    /* Hide hover overlay on mobile for better performance */
    .project-overlay {
        display: none;
    }

    /* Optimize mobile project cards */
    .project-card:hover {
        transform: none; /* Disable hover transforms on mobile */
    }

    .project-card:hover .project-img img {
        transform: none; /* Disable image scaling on mobile */
    }

    /* Disable hover effects on mobile for better performance */
    .project-mobile-btn:hover {
        transform: translateY(-2px); /* Keep minimal hover effect */
    }

    .project-mobile-btn.demo-btn:hover {
        background: linear-gradient(135deg, var(--primary-color), #2f81d9); /* Keep original color on mobile */
        box-shadow: 0 3px 12px rgba(47, 129, 217, 0.3);
        transform: translateY(-2px); /* Minimal movement */
    }
}

/* Further optimization for smaller screens */
@media (max-width: 480px) {
    .project-mobile-buttons {
        padding: 12px 20px 0;
        gap: 10px;
    }

    .project-mobile-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 100px;
    }

    .project-mobile-btn i {
        margin-right: 6px;
        font-size: 12px;
    }
}

.contact-section-container {
    margin-top: 50px;
}

.contact-info {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-color: rgba(47, 129, 217, 0.05);
    border-radius: 50%;
    z-index: 0;
}

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

.contact-info .info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(78, 158, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-info .info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-info .info-item p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(78, 158, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.social-links a.facebook:hover,
.footer-social a.facebook:hover {
    background-color: #1877f2;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-links a.instagram:hover,
.footer-social a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.social-links a.linkedin:hover,
.footer-social a.linkedin:hover {
    background-color: #0077b5;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-links a.github:hover,
.footer-social a.github:hover {
    background-color: #333;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
}

.social-links a.twitter:hover,
.footer-social a.twitter:hover {
    background-color: #1da1f2;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-links a.youtube:hover,
.footer-social a.youtube:hover {
    background-color: #ff0000;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.contact-form {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: 4px solid var(--primary-color);
}

.contact-form::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background-color: rgba(47, 129, 217, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.form-control {
    height: 50px;
    border: 1px solid #3a3a55;
    border-radius: 5px;
    padding: 10px 15px;
    background-color: var(--card-bg-color);
    color: var(--light-color);
    font-weight: 500;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: var(--card-bg-color);
    color: var(--light-color);
}

.form-control::placeholder {
    color: var(--gray-color);
    opacity: 0.7;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--light-color);
    -webkit-box-shadow: 0 0 0px 1000px var(--card-bg-color) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px 8px;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(47, 129, 217, 0.3);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-direction: row;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-contact .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    position: relative;
    padding: 2px 0;
    border-bottom: none;
}

.footer-contact .phone-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: none;
}

.footer-contact .phone-link:hover::after {
    content: none;
}

.footer-contact .phone-link .call-icon {
    display: none;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
    min-width: 20px;
}

@media (max-width: 575.98px) {
    .info-item span {
        width: 100%;
    }

    .info-item i {
        margin-bottom: 8px;
    }
}

.footer-bottom {
    margin-top: 30px;
}

.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding-left: 0;
}

.phone-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.phone-icon {
    margin-right: 8px;
    font-size: 18px;
    color: var(--primary-color);
    width: 30px;
}

/* تنسيق اسم المطور في الكوبي رايت */
.developer-name {
    font-family: Arial, sans-serif;
    font-weight: bold;
    position: relative;
    display: inline-flex;
    align-items: center;
    animation: colorChange 4s infinite alternate;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.developer-name::before {
    content: '</';
    margin-right: 3px;
    font-size: 0.9em;
    color: #666;
    animation: colorChangeGray 4s infinite alternate;
}

.developer-name::after {
    content: '>';
    margin-left: 3px;
    font-size: 0.9em;
    color: #666;
    animation: colorChangeGray 4s infinite alternate;
}

.developer-name .number {
    font-size: 1.15em;
    animation: colorChange 4s infinite alternate;
}

/* ===== BACK TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(47, 129, 217, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 576px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 20px;
        bottom: 20px;
    }
}

.back-to-top {
    display: none;
}

/* Medium screens (tablets) */
@media (max-width: 991px) and (min-width: 769px) {
    .about-content {
        padding-left: 30px;
    }

    .about-content h3 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }

    .about-img {
        max-width: 450px;
        margin-bottom: 50px;
    }

    .about-img img {
        width: 400px;
        height: 400px;
        transition: none;
    }

    .about-img img:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .about-content {
        padding-left: 0;
        text-align: center;
    }

    .about-content h3 {
        font-size: 2rem;
    }

    .about-content .lead {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 1.05rem;
    }
}

/* تصميم خاص للهواتف - أزرار دائرية محسنة للأداء */
@media (max-width: 768px) {
    /* تصميم أزرار Hero Section للهاتف */
    .hero-content .cta-buttons {
        margin-top: 2rem;
        display: flex;
        gap: 15px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-content .cta-buttons .btn {
        padding: 15px 35px;
        border-radius: 50px; /* دائري */
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        min-width: 150px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease; /* تحسين الانتقالات */
        border: 2px solid transparent;
    }

    .hero-content .cta-buttons .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), #2f81d9);
        border-color: var(--primary-color);
        color: white;
        box-shadow: 0 4px 15px rgba(47, 129, 217, 0.3);
    }

    .hero-content .cta-buttons .btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
        border-color: var(--secondary-color);
        transform: translateY(-2px); /* تقليل الحركة */
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    .hero-content .cta-buttons .btn-outline {
        background: transparent; /* شفاف تماماً */
        border: 2px solid var(--primary-color); /* بوردر أزرق */
        color: var(--primary-color); /* لون النص أزرق */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .hero-content .cta-buttons .btn-outline:hover {
        background: linear-gradient(135deg, var(--primary-color), #2f81d9);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(47, 129, 217, 0.4);
    }

    /* تصميم أزرار About Section للهاتف */
    .about-content .btn {
        padding: 14px 32px;
        border-radius: 45px; /* دائري */
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        min-width: 140px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        margin-bottom: 10px;
        border: 2px solid transparent;
    }

    .about-content .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), #2f81d9);
        border-color: var(--primary-color);
        color: white;
        box-shadow: 0 4px 15px rgba(47, 129, 217, 0.3);
    }

    .about-content .btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    .about-content .mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-content .cta-buttons .btn {
        padding: 12px 28px;
        font-size: 12px;
        min-width: 130px;
        border-radius: 45px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }

    .about-content .btn {
        padding: 12px 28px;
        font-size: 12px;
        min-width: 120px;
        border-radius: 40px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }

    .about-img {
        max-width: 380px;
    }

    .about-img img {
        width: 350px;
        height: 350px;
        transition: none;
    }

    .about-img img:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* أزرار النماذج للهاتف - مبسطة */
@media (max-width: 768px) {
    .contact-form .btn,
    form .btn,
    #my-form-button {
        padding: 14px 32px;
        border-radius: 45px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        min-width: 140px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        border: 2px solid var(--primary-color);
    }

    .contact-form .btn-primary,
    form .btn-primary,
    #my-form-button.btn-primary {
        background: linear-gradient(135deg, var(--primary-color), #2f81d9);
        color: white;
        box-shadow: 0 4px 15px rgba(47, 129, 217, 0.3);
    }

    .contact-form .btn-primary:hover,
    form .btn-primary:hover,
    #my-form-button.btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
}

@media (max-width: 480px) {
    .contact-form .btn,
    form .btn,
    #my-form-button {
        padding: 12px 28px;
        font-size: 12px;
        min-width: 120px;
        border-radius: 40px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
}
/*
Scroll Button Fix CSS
This file fixes the issue with the scroll arrow button staying green after clicking
and ensures it returns to its original blue color
*/

/* Fix for scroll-down-btn to return to original color */
.scroll-down-btn {
    background: linear-gradient(145deg, rgba(78, 158, 255, 0.4), rgba(59, 130, 246, 0.4));
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(78, 158, 255, 0.5);
}

.scroll-down-btn:hover {
    background-color: rgba(78, 158, 255, 0.6);
    color: white;
}

/* Reset button state after click to ensure it returns to original style */
.scroll-down-btn:active,
.scroll-down-btn:focus {
    background: linear-gradient(145deg, rgba(78, 158, 255, 0.4), rgba(59, 130, 246, 0.4));
    color: white;
    box-shadow: 0 4px 15px rgba(78, 158, 255, 0.5);
}

/* Fix for scroll-top-btn to return to original color */
.scroll-top-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(47, 129, 217, 0.3);
    transition: all 0.4s ease;
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Reset button state after click */
.scroll-top-btn:active,
.scroll-top-btn:focus,
.scroll-top-btn.clicked {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(47, 129, 217, 0.3);
}/* Form Styles */
.contact-form {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: auto;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 129, 217, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-color);
    opacity: 0.7;
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

#my-form-button {
    width: 100%;
    padding: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#my-form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(47, 129, 217, 0.2);
}

#my-form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#my-form-button:hover::before {
    left: 100%;
}

.form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 24px;
}

/* Success message */
#my-form-status:not(:empty) {
    padding: 10px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #60A5FA;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading indicator for form submission */
.form-submitting #my-form-button {
    pointer-events: none;
    opacity: 0.7;
}

.form-submitting #my-form-button::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }

    .form-control {
        padding: 12px 15px;
    }

    #my-form-button {
        padding: 12px;
    }
}