/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}



/* ===================================
   Smooth Reveal Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Enhanced Card Hover Effects
   =================================== */
.project-card,
.certificate-card,
.skill-category,
.contact-card {
    position: relative;
    overflow: hidden;
}

.project-card::after,
.certificate-card::after,
.skill-category::after,
.contact-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.project-card:hover::after,
.certificate-card:hover::after,
.skill-category:hover::after,
.contact-card:hover::after {
    width: 500px;
    height: 500px;
}

/* ===================================
   Enhanced Button Ripple Effect
   =================================== */
.btn,
.project-media-btn,
.contact-card-btn {
    position: relative;
    overflow: hidden;
}

.btn::before,
.project-media-btn::before,
.contact-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::before,
.project-media-btn:active::before,
.contact-card-btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

/* ===================================
   Loading Skeleton (Optional Future Enhancement)
   =================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   Enhanced Scroll Animations
   =================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Enhanced Hero Particles
   =================================== */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    animation: particlesMove 20s ease-in-out infinite;
}

@keyframes particlesMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ===================================
   Custom Cursor (Optional - Professional Touch)
   =================================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* ===================================
   Enhanced Project Tags Animation
   =================================== */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .tag::before {
    left: 100%;
}

/* ===================================
   Enhanced Navbar Effects
   =================================== */
.navbar {
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar.scrolled::after {
    transform: scaleX(1);
}

/* ===================================
   Performance Optimization
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Will-change for better performance on animations */
.project-card,
.certificate-card,
.skill-category,
.social-icon,
.tech-icon,
.float-element {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Enhanced Section Dividers
   =================================== */
section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

/* ===================================
   Rest of existing styles...
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: 'Vazir', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent horizontal scroll */
.container,
.container-fluid {
    max-width: 100%;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove extra spacing */
section {
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* ===================================
   Navbar Styles - RESPONSIVE
   =================================== */
.navbar {
    padding: 0.75rem 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 26, 46, 0.98);
}

.navbar .container {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    right: 10%;
}

.nav-link:hover {
    color: #fff !important;
}

/* ===================================
   Custom Animated Hamburger Menu
   =================================== */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 50px;
    height: 50px;
    position: relative;
    background: var(--gradient-1);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.5);
}

.navbar-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Hide default Bootstrap icon */
.navbar-toggler-icon {
    display: none;
}

/* Custom Hamburger Icon */
.navbar-toggler::before,
.navbar-toggler::after,
.navbar-toggler span {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    left: 13px;
}

.navbar-toggler::before {
    top: 14px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar-toggler span {
    top: 23px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar-toggler::after {
    top: 32px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Animated X when menu is open */
.navbar-toggler[aria-expanded="true"]::before {
    top: 23px;
    transform: rotate(45deg);
    background: #fff;
}

.navbar-toggler[aria-expanded="true"] span {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggler[aria-expanded="true"]::after {
    top: 23px;
    transform: rotate(-45deg);
    background: #fff;
}

/* Rotation effect when clicked */
.navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
    background: var(--gradient-2);
}

/* Mobile navbar improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(102, 126, 234, 0.3);
        backdrop-filter: blur(20px);
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0.25rem 0;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-1);
        transition: left 0.3s ease;
        z-index: -1;
        border-radius: 12px;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        left: 0;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff !important;
        transform: translateX(10px);
        background: transparent;
    }

    .nav-link::after {
        display: none;
    }

    /* Add icons to mobile menu items */
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-link::after {
        content: '→';
        margin-right: auto;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        display: inline-block;
        opacity: 1;
        transform: translateX(0);
    }

    /* Language toggle in mobile menu */
    .nav-item:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #langToggle {
        width: 100%;
        padding: 0.75rem;
        background: var(--gradient-1);
        border: none;
        border-radius: 12px;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transition: all 0.3s ease;
    }

    #langToggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    #langToggle i {
        margin-left: 0.5rem;
    }
}

/* Desktop language button */
@media (min-width: 992px) {
    #langToggle {
        transition: all 0.3s ease;
    }

    #langToggle:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }
}

/* ===================================
   Hero Section - FULLY RESPONSIVE
   =================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    padding: 80px 0 40px;
    display: flex;
    align-items: center;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    animation: particlesMove 20s ease-in-out infinite;
}

@keyframes particlesMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.hero-section h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-section h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
}

.typing-text {
    display: inline-block;
    border-left: 3px solid var(--primary-color);
    padding-right: 10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--primary-color);
    }

    50% {
        border-color: transparent;
    }
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.7rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Social Links - Responsive */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--gradient-1);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-lg);
}

/* Hero Image Section - Responsive */
.hero-image-wrapper {
    position: relative;
    max-width: 100%;
    padding: 20px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    /* Hide on mobile by default */
}

.float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.element-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.element-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.code-animation {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    direction: ltr;
    text-align: left;
}

.code-animation pre {
    margin: 0;
    color: #a9b7c6;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    direction: ltr;
    text-align: left;
}

.code-animation code {
    color: #a9b7c6;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    direction: ltr;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Syntax highlighting colors for Python code */
.code-animation code::before {
    content: '';
    display: block;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Section Title - Responsive
   =================================== */
.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title .lead {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===================================
   About Section - FULLY RESPONSIVE
   =================================== */
#about {
    padding: 60px 0;
}

.about-image-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 30px;
}

.profile-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    z-index: 2;
    max-width: 100%;
}

.profile-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    display: block;
}

/* Image Overlay Effect */
.image-overlay-element {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    border-radius: 20px;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 120px;
    height: 120px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 4;
}

.badge-content {
    text-align: center;
    color: #fff;
}

.badge-content h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
}

.badge-content p {
    margin: 0;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.about-content {
    padding: 1rem;
}

.about-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

.about-content .lead {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.about-details {
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-left: 0.75rem;
    width: 30px;
    flex-shrink: 0;
}

.detail-item strong {
    margin-left: 0.5rem;
    color: var(--dark-color);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.detail-item span {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===================================
   Skills Section - RESPONSIVE
   =================================== */
#skills {
    padding: 60px 0;
}

.skill-category {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.skill-category h3 i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.25rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-percentage {
    color: var(--primary-color);
}

.skill-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Tech Stack - Responsive */
.tech-stack {
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.tech-stack h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    min-width: 70px;
}

.tech-icon i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    transition: var(--transition);
}

.tech-icon span {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--text-light);
    text-align: center;
}

.tech-icon:hover {
    transform: translateY(-10px);
}

.tech-icon:hover i {
    color: var(--secondary-color);
    transform: scale(1.2) rotate(360deg);
}

/* ===================================
   Certificates Section - RESPONSIVE
   =================================== */
#certificates {
    padding: 60px 0;
}

.certificate-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 1.5rem;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.certificate-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.certificate-content h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.certificate-content p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.certificate-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.certificate-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.75rem;
    color: var(--accent-color);
    opacity: 0.2;
}

/* ===================================
   Projects Section - RESPONSIVE
   =================================== */
#projects {
    padding: 60px 0;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-media-btn {
    background: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-media-btn:hover {
    background: var(--dark-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.project-media-btn i {
    font-size: 1.2rem;
}

.project-link {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--dark-color);
    color: #fff;
    transform: scale(1.2) rotate(360deg);
}

.project-content {
    padding: 1.25rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: var(--gradient-1);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .tag::before {
    left: 100%;
}

.project-content h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.project-content p {
    color: var(--text-light);
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===================================
   Media Modal (Video/Image Viewer)
   =================================== */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem 1rem;
}

.media-modal.active {
    opacity: 1;
    visibility: visible;
}

.media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.media-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 95vh;
    background: var(--dark-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: auto;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.media-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-close:hover {
    background: var(--gradient-1);
    transform: rotate(90deg);
}

.media-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    min-height: 0;
    overflow: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #000;
    min-height: 400px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.image-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
    background: #111;
    min-height: 400px;
}

.image-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.image-wrapper img.zoomed {
    cursor: move;
    max-width: none;
    max-height: none;
}

.image-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.image-control-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.image-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.media-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.media-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.media-title i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .media-modal {
        padding: 1rem 0.5rem;
    }
    
    .media-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .video-wrapper video,
    .image-wrapper img {
        max-height: 70vh;
    }
    
    .media-title {
        font-size: 1rem;
    }
    
    .media-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* ===================================
   Contact Section - RESPONSIVE
   =================================== */
#contact {
    padding: 60px 0;
}

.contact-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: 100%;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    word-break: break-word;
}

.contact-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: var(--transition);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===================================
   Footer - RESPONSIVE
   =================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-about h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-newsletter {
    margin-bottom: 2rem;
}

.footer-newsletter h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px 0 0 50px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: #fff;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.5rem 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 0.5rem;
}

/* ===================================
   Scroll to Top Button - RESPONSIVE
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .floating-elements {
        display: block;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .floating-elements {
        display: block;
    }

    .float-element {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .image-overlay-element {
        width: 120px;
        height: 120px;
        bottom: -15px;
        right: -15px;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
        top: -10px;
        left: -10px;
    }

    .about-content {
        text-align: center;
        margin-top: 2rem;
    }

    .detail-item {
        justify-content: center;
    }

    .tech-icons {
        gap: 1.25rem;
    }
}

/* Small Devices (Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 90px 0 50px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
        margin: 1.5rem auto;
    }

    .code-animation {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .code-animation pre {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .image-overlay-element {
        width: 100px;
        height: 100px;
        bottom: -10px;
        right: -10px;
    }

    .experience-badge {
        width: 90px;
        height: 90px;
        top: -10px;
        left: -10px;
    }

    .about-content {
        text-align: center;
    }

    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-item i {
        margin: 0 0 0.5rem 0;
    }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        margin-left: 0.3rem;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.65rem 1.25rem;
    }

    .social-links {
        justify-content: center;
        margin: 1.5rem auto 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .code-animation {
        padding: 0.75rem;
        margin-top: 2rem;
    }

    .code-animation pre {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .code-animation code {
        font-size: 0.7rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        margin-bottom: 2rem !important;
    }

    .about-image-container {
        max-width: 90%;
        margin: 0 auto 2rem;
    }

    .image-overlay-element {
        width: 80px;
        height: 80px;
        bottom: -10px;
        right: -10px;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
        top: -10px;
        left: -10px;
    }

    .about-content {
        text-align: center;
        padding: 0.5rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0;
    }

    .detail-item i {
        margin: 0 0 0.5rem 0;
    }

    .detail-item div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .tech-icons {
        gap: 1rem;
    }

    .tech-icon {
        min-width: 60px;
    }

    .certificate-card {
        padding: 1.25rem;
    }

    .certificate-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links ul {
        text-align: center;
    }

    .footer-bottom .row>div {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Ultra Small Devices (Very small phones, less than 375px) */
@media (max-width: 374px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section h2 {
        font-size: 1.15rem !important;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .image-overlay-element {
        width: 60px;
        height: 60px;
    }

    .experience-badge {
        width: 70px;
        height: 70px;
    }

    .badge-content h3 {
        font-size: 1.75rem !important;
    }

    .badge-content p {
        font-size: 0.7rem !important;
    }

    .project-image {
        height: 160px;
    }

    .scroll-top {
        width: 38px;
        height: 38px;
        bottom: 10px;
        right: 10px;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .navbar,
    .scroll-top,
    .footer-newsletter,
    .contact-form,
    .floating-elements,
    .particles-bg {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}

/* Tech Icon Images */
.tech-icon img {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tech-icon:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
}

/* ===================================
   New Contact Section Styles
   =================================== */

/* Contact Cards */
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-card:hover .card-glow {
    opacity: 0.1;
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.email-card .contact-card-icon {
    background: var(--gradient-1);
}

.phone-card .contact-card-icon {
    background: var(--gradient-2);
}

.location-card .contact-card-icon {
    background: var(--gradient-3);
}

.contact-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-info-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.phone-card .contact-card-btn {
    background: var(--gradient-2);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.phone-card .contact-card-btn:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

.location-card .contact-card-btn {
    background: var(--gradient-3);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.location-card .contact-card-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

/* Social Media Section */
.social-media-section {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.social-media-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--dark-color);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-media-card {
    position: relative;
    padding: 2rem 1rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.social-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-media-card i {
    font-size: clamp(2rem, 5vw, 2.5rem);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-media-card span {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.social-card-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    transition: bottom 0.3s ease;
    z-index: 3;
}

.social-card-hover p {
    margin: 0;
    font-size: 0.85rem;
    color: #fff;
}

.social-media-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-media-card:hover .social-card-bg {
    transform: scale(1.1);
}

.social-media-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

.social-media-card:hover .social-card-hover {
    bottom: 0;
}

/* GitHub Card */
.github-card .social-card-bg {
    background: linear-gradient(135deg, #24292e 0%, #000000 100%);
}

/* LinkedIn Card */
.linkedin-card .social-card-bg {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

/* Telegram Card */
.telegram-card .social-card-bg {
    background: linear-gradient(135deg, #0088cc 0%, #00bfff 100%);
}

/* Instagram Card */
.instagram-card .social-card-bg {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Twitter Card */
.twitter-card .social-card-bg {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

/* YouTube Card */
.youtube-card .social-card-bg {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Quick Contact Info */
.quick-contact-info {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.availability-status,
.response-time {
    padding: 1.5rem;
}

.availability-status h5,
.response-time h5 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.availability-status p,
.response-time p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-light);
    margin: 0;
}

.status-indicator {
    width: 15px;
    height: 15px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    animation: blink-status 2s ease-in-out infinite;
    box-shadow: 0 0 10px #10b981;
}

@keyframes blink-status {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.response-time i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Styles for Contact Section */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }

    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .social-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .social-media-card {
        padding: 1.5rem 1rem;
    }

    .social-media-section {
        padding: 2rem 1.5rem;
    }

    .quick-contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .social-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .social-media-card {
        padding: 1.25rem 0.75rem;
    }

    .contact-card-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Coming Soon Card Styles */
.coming-soon-card {
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
}

.coming-soon-card .social-card-hover {
    display: none;
}

.coming-soon-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.95);
    text-align: center;
    z-index: 3;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.coming-soon-badge span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===================================
   Snake Game Styles - Footer Game
   =================================== */
.footer-game {
    margin-bottom: 2rem;
}

.footer-game h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.footer-game p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 1rem;
}

.snake-game-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.score-display,
.high-score-display {
    background: var(--gradient-1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.7);
    }
}

.high-score-display {
    background: var(--gradient-2);
}

#snakeCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    border: 3px solid rgba(102, 126, 234, 0.5);
    box-shadow:
        inset 0 0 30px rgba(102, 126, 234, 0.2),
        0 0 20px rgba(102, 126, 234, 0.3);
    display: block;
    cursor: crosshair;
    transition: all 0.3s ease;
}

#snakeCanvas:hover {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow:
        inset 0 0 40px rgba(102, 126, 234, 0.3),
        0 0 30px rgba(102, 126, 234, 0.5);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.game-btn {
    padding: 0.6rem 1.2rem;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-btn i {
    font-size: 1rem;
}

/* Mobile Touch Controls */
.mobile-controls {
    display: none;
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.horizontal-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.6);
}

.arrow-btn:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

/* Game Over Screen */
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    max-width: 90%;
}

.game-over-screen.active {
    opacity: 1;
    visibility: visible;
    animation: bounce-in 0.5s ease-out;
}

@keyframes bounce-in {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.game-over-screen i {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: rotate-pulse 2s ease-in-out infinite;
}

@keyframes rotate-pulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.game-over-screen h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.game-over-screen p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

#finalScore {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.play-again-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient-2);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

.play-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.7);
}

.play-again-btn i {
    font-size: 1.25rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }

    .snake-game-container {
        padding: 0.75rem;
    }

    .game-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .score-display,
    .high-score-display {
        width: 100%;
        justify-content: center;
    }

    #snakeCanvas {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .footer-game {
        max-width: 100%;
    }

    .snake-game-container {
        padding: 0.5rem;
    }

    .game-controls {
        gap: 0.4rem;
    }

    .game-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .arrow-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .game-over-screen {
        padding: 1.5rem 1rem;
    }

    #snakeCanvas {
        max-height: 250px;
    }
}

@media (max-width: 360px) {
    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .game-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    #snakeCanvas {
        max-height: 200px;
    }
}

/* ===================================
   Game Break Section - نسخه فیکس شده موبایل
   =================================== */
.game-break-section {
    padding: 4rem 0 3rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* دکمه باز کردن بازی */
.game-toggle-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 60px;
    padding: 1.2rem 3rem;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.game-toggle-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

.game-toggle-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.game-toggle-btn .btn-icon {
    font-size: 2.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.game-toggle-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.game-toggle-btn .btn-main-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

.game-toggle-btn .btn-sub-text {
    font-size: 0.9rem;
    color: rgba(102, 126, 234, 0.7);
    font-weight: 500;
}

.game-toggle-btn .btn-arrow {
    font-size: 1.3rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.game-toggle-btn:hover .btn-arrow {
    animation: bounce-arrow 1s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.game-toggle-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-toggle-btn:hover .btn-glow {
    opacity: 1;
}

.game-toggle-btn.active .btn-arrow {
    transform: rotate(180deg);
}

/* بخش بازی */
.game-container-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-top: 0;
}

.game-container-wrapper.show {
    max-height: 1200px;
    opacity: 1;
    margin-top: 3rem;
    animation: slideDown 0.7s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* کانتینر بازی */
.snake-game-container {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.97), rgba(22, 33, 62, 0.97));
    border-radius: 25px;
    padding: 2rem;
    backdrop-filter: blur(25px);
    border: 2px solid rgba(102, 126, 234, 0.25);
    box-shadow:
        0 15px 50px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.snake-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.6), transparent);
}

.snake-game-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(118, 75, 162, 0.6), transparent);
}

/* هدر امتیازات */
.game-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.score-display,
.high-score-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    padding: 0.85rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    border: 1.5px solid rgba(102, 126, 234, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
    min-height: 50px;
}

.score-display:hover,
.high-score-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.score-display i,
.high-score-display i {
    color: #ffd700;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px #ffd700);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Canvas - فیکس شده برای موبایل */
#snakeCanvas {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 18px;
    border: 3px solid rgba(102, 126, 234, 0.45);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(102, 126, 234, 0.4);
    display: block;
    cursor: crosshair;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

#snakeCanvas:hover {
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(102, 126, 234, 0.6);
}

/* دکمه‌های کنترل */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.game-btn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.45);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.65);
}

.game-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
}

.game-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.game-btn i {
    font-size: 1.1rem;
}

/* کنترل‌های موبایل */
.mobile-controls {
    display: none;
    margin-top: 1.25rem;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.horizontal-btns {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.arrow-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:active {
    transform: scale(0.92);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.65);
}

.arrow-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.75);
}

/* Game Over */
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.97);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
    border: 2px solid rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.8);
    max-width: 90%;
    backdrop-filter: blur(25px);
}

.game-over-screen.active {
    opacity: 1;
    visibility: visible;
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.game-over-screen i {
    font-size: 4.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    animation: rotate-pulse 2s ease-in-out infinite;
}

@keyframes rotate-pulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-12deg) scale(1.12);
    }

    75% {
        transform: rotate(12deg) scale(1.12);
    }
}

.game-over-screen h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-over-screen p {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

#finalScore {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.9);
    display: block;
    margin-top: 0.75rem;
    animation: pulse-score 1.5s ease-in-out infinite;
}

@keyframes pulse-score {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.play-again-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border: none;
    border-radius: 60px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 6px 30px rgba(240, 147, 251, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-again-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.8);
}

.play-again-btn i {
    font-size: 1.4rem;
    animation: spin-slow 2s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   ریسپانسیو - فیکس موبایل
   =================================== */
@media (max-width: 768px) {
    .game-break-section {
        padding: 3rem 0 2.5rem;
    }

    .mobile-controls {
        display: flex;
    }

    .game-toggle-btn {
        padding: 1rem 2.25rem;
        gap: 1rem;
    }

    .snake-game-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .game-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .score-display,
    .high-score-display {
        width: 100%;
    }

    /* فیکس Canvas در موبایل */
    #snakeCanvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 576px) {
    .game-break-section {
        padding: 2.5rem 0 2rem;
    }

    .game-toggle-btn {
        padding: 0.9rem 1.75rem;
    }

    .snake-game-container {
        padding: 1.25rem;
        max-width: 100%;
        width: 100%;
    }

    /* فیکس Canvas در موبایل کوچک */
    #snakeCanvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-width: 2px;
    }

    .game-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .arrow-btn {
        width: 52px;
        height: 52px;
    }

    .game-over-screen {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
}

@media (max-width: 400px) {
    .snake-game-container {
        padding: 1rem;
        width: 100%;
    }

    /* فیکس Canvas در موبایل خیلی کوچک */
    #snakeCanvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-width: 2px;
    }

    .arrow-btn {
        width: 48px;
        height: 48px;
    }

    .game-over-screen {
        padding: 1.5rem 1rem;
        max-width: 92%;
    }
}

/* جلوگیری از اسکرول در بازی */
.snake-game-container {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#snakeCanvas {
    touch-action: none;
}

.game-container-wrapper.show {
    touch-action: none;
}

/* ===================================
   Footer Thank You Section - انیمیشن خفن
   =================================== */
.footer-thank-you {
    margin-top: 1rem;
}

.thank-you-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    transition: all 0.4s ease;
}

.thank-you-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.35);
    border-color: rgba(102, 126, 234, 0.5);
}

.thank-you-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Sparkles انیمیشن ستاره‌های نورانی */
.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: #ffd700;
    animation: twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ffd700);
}

.sparkle-1 {
    top: 10%;
    left: 15%;
    font-size: 1.2rem;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 20%;
    right: 10%;
    font-size: 0.9rem;
    animation-delay: 0.5s;
}

.sparkle-3 {
    bottom: 15%;
    left: 10%;
    font-size: 1rem;
    animation-delay: 1s;
}

.sparkle-4 {
    top: 50%;
    left: 5%;
    font-size: 1.1rem;
    color: #ff69b4;
    filter: drop-shadow(0 0 8px #ff69b4);
    animation-delay: 1.5s;
}

.sparkle-5 {
    bottom: 20%;
    right: 15%;
    font-size: 1.3rem;
    color: #667eea;
    filter: drop-shadow(0 0 10px #667eea);
    animation-delay: 0.8s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* آیکون اصلی */
.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.thank-you-icon i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce-icon 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

/* تایتل */
.thank-you-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    animation: glow-text 3s ease-in-out infinite;
}

@keyframes glow-text {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

/* متن */
.thank-you-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* انیمیشن دست تکان دادن */
.animated-wave {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20%,
    40% {
        transform: rotate(-8deg);
    }

    50%,
    60% {
        transform: rotate(14deg);
    }

    70%,
    80% {
        transform: rotate(-4deg);
    }

    90% {
        transform: rotate(10deg);
    }
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .thank-you-card {
        padding: 2.5rem 1.5rem;
    }

    .thank-you-icon {
        font-size: 3.5rem;
    }

    .thank-you-title {
        font-size: 1.5rem;
    }

    .thank-you-text {
        font-size: 1.1rem;
    }

    .animated-wave {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .thank-you-card {
        padding: 2rem 1.25rem;
        margin-top: 1.5rem;
    }

    .thank-you-icon {
        font-size: 3rem;
    }

    .thank-you-title {
        font-size: 1.3rem;
    }

    .thank-you-text {
        font-size: 1rem;
    }

    .animated-wave {
        font-size: 2.2rem;
    }

    .sparkle {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .thank-you-card {
        padding: 1.75rem 1rem;
    }

    .thank-you-icon {
        font-size: 2.5rem;
    }

    .thank-you-title {
        font-size: 1.15rem;
    }

    .thank-you-text {
        font-size: 0.95rem;
    }

    .animated-wave {
        font-size: 2rem;
    }
}

/* ===================================
   Video Modal - ویدیو پلیر خفن
   =================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 1200px;
    animation: modalSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.5);
    z-index: 10002;
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(240, 147, 251, 0.8);
}

.video-player-wrapper {
    background: linear-gradient(135deg, rgba)
}