/* Global Styles */
:root {
    --animation-duration: 0.3s;
    --transition-timing: ease;
    --mobile-animation-duration: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* موبایل ریسپانسیو - جلوگیری از اسکرول افقی و تصاویر واکنش‌گرا */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
    /* Fixed-top navbar spacing (prevents content going under navbar) */
    padding-top: 90px;
}

/* تصاویر در همه صفحات ریسپانسیو */
img {
    max-width: 100%;
    height: auto;
}

/* Language Support */
body[dir="rtl"] {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', sans-serif;
    text-align: right;
}

/* RTL Support for Arabic and Persian */
[dir="rtl"] .language-switcher {
    left: 20px;
    right: auto;
    flex-direction: column !important; /* Always vertical */
}

[dir="rtl"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .navbar-nav .nav-link {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .hero-buttons .btn {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .hero-buttons .btn:last-child {
    margin-right: 0;
}

[dir="rtl"] .benefit-item {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .project-card {
    text-align: right;
}

[dir="rtl"] .value-card {
    text-align: right;
}

[dir="rtl"] .stat-item {
    text-align: right;
}

[dir="rtl"] .certificate-item {
    text-align: right;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .form-control::placeholder {
    text-align: right;
}

[dir="rtl"] .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .btn i:first-child {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .btn i:last-child {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .hero-benefits {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-benefits .benefit-item {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .hero-benefits .benefit-item:last-child {
    margin-right: 0;
}

[dir="rtl"] .floating-astronaut {
    transform: scaleX(-1);
}

[dir="rtl"] .planet {
    animation-direction: reverse;
}

[dir="rtl"] .stars {
    animation-direction: reverse;
}

/* Additional RTL Mobile Support */
@media (max-width: 768px) {
    [dir="rtl"] .language-switcher,
    html[dir="rtl"] .language-switcher,
    body[dir="rtl"] .language-switcher {
        left: 20px;
        right: auto;
        flex-direction: column !important; /* Keep vertical even in RTL */
        flex-wrap: nowrap !important;
        bottom: 20px;
        width: auto !important;
        max-width: none !important;
    }
    
    [dir="rtl"] .hero-buttons {
        flex-direction: column;
    }
    
    [dir="rtl"] .hero-buttons .btn {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    [dir="rtl"] .hero-benefits {
        flex-direction: column;
        align-items: flex-end;
    }
    
    [dir="rtl"] .hero-benefits .benefit-item {
        margin: 0.25rem 0;
    }
    
    [dir="rtl"] .navbar-nav {
        text-align: right;
    }
    
    [dir="rtl"] .navbar-nav .nav-link {
        margin: 0;
        padding: 0.5rem 0;
    }
}

/* RTL Form Support */
[dir="rtl"] .form-floating > label {
    right: 0.75rem;
    left: auto;
}

[dir="rtl"] .form-floating > .form-control {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

[dir="rtl"] .form-floating > .form-control:focus ~ label,
[dir="rtl"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.1rem);
}

/* RTL Animation Adjustments */
[dir="rtl"] .animate-in {
    animation: fadeInUpRTL 0.6s ease forwards;
}

@keyframes fadeInUpRTL {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Language Switcher Wrapper */
.language-switcher-wrapper {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Ensure Google Translate is never visible - Aggressive */
.language-switcher-wrapper .google-translate-container,
.language-switcher-wrapper #google_translate_element,
#google_translate_element,
.google-translate-container {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Google Translate Container - Completely Hidden */
.google-translate-container {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Google Translate Widget Styling - Completely Hidden */
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

#google_translate_element select {
    background: rgba(26, 26, 46, 0.9) !important;
    border: 1px solid rgba(116, 185, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#google_translate_element select:hover {
    background: rgba(116, 185, 255, 0.2) !important;
    border-color: #74b9ff !important;
}

#google_translate_element select option {
    background: rgba(26, 26, 46, 0.95) !important;
    color: #ffffff !important;
}

/* Hide Google Translate Banner - Completely Hidden and Removed */
.goog-te-banner-frame,
.goog-te-banner,
.goog-te-menu-frame,
.goog-te-ftab,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
iframe[src*="translate.google.com"],
iframe[src*="translate.googleapis.com"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide Google Translate Footer */
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Hide all Google Translate UI elements */
.goog-te-banner,
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-ftab,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
.goog-te-menu-value span,
.goog-te-menu-value:before,
.goog-te-menu-value:after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide Google Translate Dropdown */
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.google-translate-container {
    display: none !important;
    visibility: hidden !important;
}

/* Language Switcher - Always Vertical */
.language-switcher {
    display: flex !important;
    flex-direction: column !important; /* Always vertical - never horizontal */
    flex-wrap: nowrap !important; /* Prevent wrapping to horizontal */
    gap: 0.5rem;
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    width: auto !important;
    max-width: none !important;
}

/* Force vertical in all RTL states */
[dir="rtl"] .language-switcher,
html[dir="rtl"] .language-switcher,
body[dir="rtl"] .language-switcher {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

[dir="rtl"] .language-switcher-wrapper {
    left: auto;
    right: 20px;
}

/* Google Translate Additional Styling */
.goog-te-gadget {
    font-family: inherit !important;
    color: #ffffff !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #ffffff !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #ffffff !important;
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .language-switcher-wrapper {
        bottom: 100px;
        left: 10px;
    }
    
    [dir="rtl"] .language-switcher-wrapper {
        left: auto;
        right: 10px;
    }
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateZ(0) scale(1.05);
    -webkit-transform: translateZ(0) scale(1.05);
}

.lang-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.5);
}

.lang-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateZ(0) scale(1.05);
    -webkit-transform: translateZ(0) scale(1.05);
}

.lang-btn.active {
    background: rgba(116, 185, 255, 0.3);
    border-color: #74b9ff;
}

.lang-btn img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Space Background Animation — pointer-events: none تا کلیک را نگرفته و سوئیچ زبان کار کند */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    /* Performance optimization */
    will-change: background-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Pause heavy animations until we explicitly enable them for better LCP */
.space-background,
.text-gradient,
.floating-astronaut,
.planet,
.stars {
    animation-play-state: paused;
}

.animations-on .space-background,
.animations-on .text-gradient,
.animations-on .floating-astronaut,
.animations-on .planet,
.animations-on .stars {
    animation-play-state: running;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.planets {
    position: absolute;
    width: 100%;
    height: 100%;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.planet-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.planet-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.planet-3 {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
    top: 30%;
    right: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #74b9ff !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #74b9ff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #74b9ff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Flag Icons Styling */
.fi {
    width: 20px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dropdown-item .fi {
    width: 18px;
    height: 13px;
}

.dropdown-item.active {
    background-color: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
}

.dropdown-item.active .fi {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Generic Page Hero (used by inner pages like login/register/resume/etc.) */
.page-hero {
    position: relative;
    padding: 120px 0 40px;
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
        overflow-x: hidden;
    }

    .page-hero {
        padding: 110px 0 30px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
        margin: 0.2rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #b2bec3;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 0.25rem;
}

.text-gradient {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #1a1a2e;
    transform: translateY(-3px);
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all var(--animation-duration) var(--transition-timing);
    /* Performance optimization */
    transform: translateZ(0);
}

.benefit-item:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.2);
}

.benefit-item i {
    font-size: 1.2rem;
    color: #74b9ff;
}

.benefit-item span {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
}

/* RTL Support for Benefits */
body[dir="rtl"] .benefit-item {
    flex-direction: row-reverse;
}

/* Value Proposition Section */
.bg-gradient {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1), rgba(162, 155, 254, 0.1));
    position: relative;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%2374b9ff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(116, 185, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.4);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #74b9ff, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.3);
}

.value-card h3 {
    color: #74b9ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: #b2bec3;
    line-height: 1.6;
    font-size: 0.95rem;
}

.floating-astronaut {
    font-size: 15rem;
    color: #74b9ff;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

/* Sections */
.section {
    padding: 40px 0;
    position: relative;
}

/* Reduce work for below-the-fold sections */
.section:not(.hero-section) {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff !important;
}

.section-title .text-gradient {
    color: #ffffff !important;
}

/* About Section & Service pages - تایتل و متن روشن، نه مشکی */
.about-content h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #74b9ff !important;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0 !important;
    margin-bottom: 2rem;
}

.about-content ul,
.about-content ol {
    color: #e2e8f0 !important;
}

.about-content li {
    color: #e2e8f0 !important;
}

/* هر h2 در سکشن (صفحات سرویس و غیره) سفید */
.section h2 {
    color: #ffffff !important;
}

/* زیرعنوان‌های سکشن در صفحات سرویس (مثل Web Design Project Samples) */
.section .col-12 > h3 {
    color: #ffffff !important;
    font-weight: 600;
}

/* کارت پروژه در صفحات سرویس */
.project-content h4 {
    color: #ffffff !important;
    font-weight: 600;
}

.project-content p {
    color: #e2e8f0 !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(116, 185, 255, 0.2);
}

.skill-item i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-item span {
    color: #ffffff !important;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #74b9ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #b2bec3;
}

/* Services Section */
.service-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all var(--animation-duration) var(--transition-timing);
    height: 100%;
    /* Performance optimization */
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(116, 185, 255, 0.2);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: #74b9ff;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #b2bec3;
    line-height: 1.6;
}

/* Projects Section */
.project-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

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

.project-overlay .btn {
    background: rgba(116, 185, 255, 0.9);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.project-overlay .btn.btn-success {
    background: rgba(40, 167, 69, 0.9);
}

.project-overlay .btn.btn-success:hover {
    background: rgba(40, 167, 69, 1);
}

.project-overlay .btn:hover {
    background: rgba(116, 185, 255, 1);
    transform: scale(1.05);
}

/* Video Modal Styles */
.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(116, 185, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
    color: #ffffff;
}

.modal-title {
    color: #74b9ff;
}

.btn-close {
    filter: invert(1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-content p {
    color: #b2bec3;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

/* Large Project Items - Full Width List Style */
.projects-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-item-large {
    width: 100%;
    margin-bottom: 3rem;
}

.project-item-wrapper {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.project-item-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(116, 185, 255, 0.25);
    border-color: rgba(116, 185, 255, 0.4);
}

.project-image-large {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}


.project-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
}

.placeholder-content {
    text-align: center;
    color: rgba(116, 185, 255, 0.6);
}

.placeholder-content i {
    margin-bottom: 1rem;
    color: rgba(116, 185, 255, 0.5);
}

.placeholder-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(116, 185, 255, 0.7);
    margin: 0;
}

.project-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}


.project-item-wrapper:hover .project-image-large img {
    transform: scale(1.05);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item-wrapper:hover .project-image-overlay {
    opacity: 1;
}

.project-content-large {
    padding: 3rem;
    background: rgba(26, 26, 46, 0.6);
}

.project-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(116, 185, 255, 0.2);
}

.project-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #74b9ff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-domain-large {
    font-size: 1.1rem;
    color: #74b9ff;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.project-domain-large i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.project-domain-large a {
    color: #74b9ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-domain-large a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.project-description-full {
    margin-bottom: 2rem;
}

.project-description-full p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin: 0;
    text-align: justify;
}

.project-technologies {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(116, 185, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(116, 185, 255, 0.15);
}

.tech-title {
    font-size: 1.1rem;
    color: #74b9ff;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tech-title i {
    font-size: 1rem;
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag-large {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    color: #74b9ff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(116, 185, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.tech-tag-large:hover {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.2);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
}

.project-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(116, 185, 255, 0.15);
    color: #74b9ff;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.project-type-badge i {
    font-size: 0.9rem;
}

.project-visit-btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    background: linear-gradient(135deg, #74b9ff 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
    display: inline-flex;
    align-items: center;
}

.project-visit-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
    background: linear-gradient(135deg, #6366f1 0%, #74b9ff 100%);
    color: #ffffff;
}

.project-visit-btn-large i {
    font-size: 0.9rem;
}

.no-projects-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #b2bec3;
}

.no-projects-message i {
    color: rgba(116, 185, 255, 0.5);
    margin-bottom: 1rem;
}

.no-projects-message p {
    font-size: 1.2rem;
}

/* Responsive Design for Large Project Items */
@media (max-width: 768px) {
    .project-content-large {
        padding: 2rem 1.5rem;
    }
    
    .project-title-large {
        font-size: 1.6rem;
    }
    
    .project-image-large {
        height: 250px;
    }
    
    .project-description-full p {
        font-size: 1rem;
        text-align: left;
    }
    
    .project-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-visit-btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .tech-tags-container {
        gap: 0.5rem;
    }
    
    .tech-tag-large {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .project-content-large {
        padding: 1.5rem 1rem;
    }
    
    .project-title-large {
        font-size: 1.4rem;
    }
    
    .project-image-large {
        height: 200px;
    }
}

/* Resume Section */
.resume-section {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resume-section h3 {
    color: #74b9ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.resume-section h3 i {
    margin-left: 0.5rem;
}

.resume-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.2);
}

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

.resume-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.resume-item p {
    color: #b2bec3;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.certificate-item {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    background: rgba(116, 185, 255, 0.2);
}

.certificate-item i {
    font-size: 2rem;
    color: #74b9ff;
    margin-bottom: 0.5rem;
    display: block;
}

/* Contact Section */
.contact-form {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #74b9ff;
    box-shadow: 0 0 0 0.2rem rgba(116, 185, 255, 0.25);
    color: #ffffff;
}

.form-control::placeholder {
    color: #b2bec3;
}

/* Select/dropdown: show chevron so users know they can choose an option */
select.form-control,
select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b2bec3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.25rem;
}
[dir="rtl"] select.form-control,
[dir="rtl"] select.form-select {
    background-position: left 12px center;
    padding-right: 15px;
    padding-left: 2.25rem;
}

/* Fix contrast on forms (Bootstrap defaults are dark) */
.form-label,
.form-check-label,
label {
    color: #ffffff !important;
}

/* Certificate and card text — avoid black on dark background */
.certificate-content h5,
.certificate-item h5 { color: #ffffff; }
.certificate-content p { color: #b2bec3; }

.contact-form a,
.contact-form a:visited {
    color: #74b9ff;
}

.contact-form a:hover {
    color: #a29bfe;
}

/* Login / Register - bottom switch block */
.auth-switch-block {
    padding-top: 1rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
}
.auth-switch-text {
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.btn-auth-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid #74b9ff;
    color: #74b9ff;
}
.btn-auth-link:hover {
    background: rgba(116, 185, 255, 0.15);
    color: #ffffff;
    border-color: #74b9ff;
    transform: translateY(-2px);
}

/* Contact Info Cards */
.contact-info-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(116, 185, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(116, 185, 255, 0.2);
}

.contact-info-icon {
    font-size: 2.5rem;
    color: #74b9ff;
    margin-bottom: 1rem;
}

.contact-info-card h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info-card p {
    color: #b2bec3;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.95) 100%);
    padding: 4rem 0 2rem 0;
    border-top: 2px solid rgba(116, 185, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(116, 185, 255, 0.5), transparent);
}

.footer-title {
    color: #74b9ff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand h4 {
    color: #74b9ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand h4 i {
    margin-right: 0.5rem;
}

.footer-description {
    color: #b2bec3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #74b9ff;
    transform: translateX(5px);
    padding-left: 5px;
}

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

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #b2bec3;
}

.footer-contact i {
    color: #74b9ff;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: #b2bec3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #74b9ff;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    color: #b2bec3;
    text-decoration: none;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: transparent;
    color: #74b9ff;
    transform: translateX(5px);
    border-color: transparent;
}

.footer-social-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: #b2bec3;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social-link {
        flex: 0 0 auto;
        min-width: 120px;
    }
}

/* WhatsApp Fixed Button */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    isolation: isolate;
    /* Fix for mobile scroll jitter */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    overflow: visible;
}

.whatsapp-fixed::before,
.whatsapp-fixed::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    opacity: 0;
    animation: whatsappPulse 2.8s ease-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    transform: scale(1);
    -webkit-transform: scale(1);
}

.whatsapp-fixed::after {
    animation-delay: 1.4s;
    border-color: rgba(255, 255, 255, 0.35);
}

.whatsapp-fixed:hover {
    transform: translateZ(0) scale(1.1);
    -webkit-transform: translateZ(0) scale(1.1);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-fixed i {
    position: relative;
    z-index: 1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Footer Social Media Links - Old styles removed, using new footer styles above */

/* Navbar Social Dropdown */
.navbar .dropdown-menu {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(116, 185, 255, 0.3);
    backdrop-filter: blur(10px);
}

.navbar .dropdown-item {
    color: #ffffff;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --animation-duration: var(--mobile-animation-duration);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .floating-astronaut {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    
    .whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .footer .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure contact section and all sections are accessible via anchor links */
section[id] {
    scroll-margin-top: 100px; /* Account for fixed navbar */
    min-height: 50vh; /* Ensure section has enough height */
}

/* Contact section specific styles for Android compatibility */
#contact {
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    min-height: 60vh;
}

/* Loading Animation - Completely Fixed */
.loading {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.loading.loaded {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Force all content to be visible - Anti-disappearing fix */
.service-card, .project-card, .skill-item, .stat-item, .value-card, .certificate-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
    transition: none !important;
}

/* Lazy Loading Styles */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(90deg, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img.lazy-loaded {
    opacity: 1;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.hero-section,
.section,
.navbar {
    will-change: transform;
}

/* Reduce animation on mobile for better performance */
@media (max-width: 768px) {
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    .space-background {
        animation-duration: 20s !important;
    }
    
    .floating-astronaut {
        animation-duration: 4s !important;
    }
    
    .planet {
        animation-duration: 15s !important;
    }
    
    /* Disable heavy animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Prevent Layout Shift on Mobile */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

.floating-astronaut {
    font-size: 15rem;
    color: #74b9ff;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    /* Prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Fix mobile layout shifts */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 80px 0 40px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-image {
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floating-astronaut {
        font-size: 8rem;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    
    /* Prevent container shifts */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Fix benefit items layout */
    .hero-benefits {
        justify-content: center;
        gap: 1rem;
    }
    
    .benefit-item {
        flex-shrink: 0;
        min-width: 120px;
    }
    
    /* Fix value cards layout */
    .value-card {
        min-height: 280px;
        margin-bottom: 1rem;
    }
    
    /* Fix service cards layout */
    .service-card {
        min-height: 250px;
        margin-bottom: 1rem;
    }
    
    /* Fix project cards layout */
    .project-card {
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    /* Fix video cards layout */
    .video-card {
        min-height: 350px;
        margin-bottom: 1rem;
    }
    
    /* Fix stats layout */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        min-height: 120px;
    }
    
    /* Fix skills grid */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item {
        min-height: 80px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .floating-astronaut {
        font-size: 6rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .benefit-item {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .value-card {
        min-height: 260px;
    }
    
    .service-card {
        min-height: 220px;
    }
    
    .project-card {
        min-height: 380px;
    }
    
    .video-card {
        min-height: 320px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(116, 185, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 185, 255, 0.7);
}

/* Video Cards Styling */
.video-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 185, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(116, 185, 255, 0.4);
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video {
    width: 100%;
    height: auto;
    min-height: 250px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: block;
    object-fit: contain;
    cursor: pointer;
}

/* Video loading state - show gradient background until video loads */
.project-video:not([src]) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #533483 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Ensure video is visible and ready to play */
.project-video {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-video[poster] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Video controls visibility */
.project-video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

.project-video::-webkit-media-controls-play-button {
    background-color: #74b9ff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.project-video::-webkit-media-controls-play-button:hover {
    background-color: #0984e3;
    transform: scale(1.1);
}

.video-content {
    text-align: center;
}

.video-content h4 {
    color: #74b9ff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-content p {
    color: #b2bec3;
    margin: 0;
    font-size: 0.9rem;
}

/* Video controls styling */

.project-video::-webkit-media-controls-play-button {
    background-color: #74b9ff;
    border-radius: 50%;
}

.project-video::-webkit-media-controls-play-button:hover {
    background-color: #0984e3;
}

/* Additional video enhancements for better visibility */
.project-video::-webkit-media-controls-timeline {
    background-color: rgba(116, 185, 255, 0.3);
}

.project-video::-webkit-media-controls-current-time-display,
.project-video::-webkit-media-controls-time-remaining-display {
    color: #fff;
    font-weight: 600;
}

.project-video::-webkit-media-controls-volume-slider {
    background-color: rgba(116, 185, 255, 0.3);
}

.project-video::-webkit-media-controls-mute-button {
    background-color: #74b9ff;
    border-radius: 50%;
}

/* Ensure videos are not affected by dark overlays */
.video-container::before,
.video-container::after {
    display: none;
}

/* Ensure video displays with natural colors */
.project-video {
    filter: none;
}

/* Ensure video poster displays naturally */
.project-video[poster] {
    filter: none;
}

/* Remove any potential overlays from video elements */
.project-video * {
    filter: none;
}

/* Certificate Gallery Styles */
.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.certificate-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 185, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(116, 185, 255, 0.3);
    border-color: rgba(116, 185, 255, 0.5);
}

.certificate-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-image {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover .certificate-overlay {
    opacity: 1;
}

.certificate-view-btn {
    background: rgba(116, 185, 255, 0.9);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.certificate-view-btn:hover {
    background: rgba(116, 185, 255, 1);
    transform: scale(1.05);
}

.certificate-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    background: rgba(116, 185, 255, 0.05);
}

.certificate-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(116, 185, 255, 0.5);
}

.certificate-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* PDF Certificate Styles */
.pdf-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    overflow: hidden;
}

.pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #ffffff;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdf-preview-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 200px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.pdf-header {
    text-align: center;
    border-bottom: 2px solid #74b9ff;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

.pdf-logo {
    color: #74b9ff;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.pdf-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.pdf-body {
    text-align: center;
    margin-bottom: 0.8rem;
}

.pdf-certificate-title {
    font-size: 1rem;
    font-weight: 700;
    color: #74b9ff;
    margin-bottom: 0.3rem;
}

.pdf-recipient {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.pdf-description {
    font-size: 0.7rem;
    color: #666;
}

.pdf-footer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    font-size: 0.7rem;
    color: #e74c3c;
}

.pdf-footer i {
    margin-right: 0.3rem;
}

.pdf-viewer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-download {
    text-align: center;
    margin-top: 1rem;
}

.pdf-download .btn {
    background: rgba(116, 185, 255, 0.9);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdf-download .btn:hover {
    background: rgba(116, 185, 255, 1);
    transform: scale(1.05);
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.certificate-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.certificate-modal .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #74b9ff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design for Certificates */
@media (max-width: 768px) {
    .certificate-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .certificate-image-container {
        height: 120px;
    }
    
    .certificate-placeholder {
        padding: 2rem 1rem;
    }
    
    .certificate-placeholder i {
        font-size: 2rem;
    }
    
    .certificate-placeholder p {
        font-size: 1rem;
    }
    
    .certificate-modal .modal-content {
        max-width: 95%;
        padding: 0.5rem;
    }
    
    .certificate-modal .modal-content img {
        max-height: 70vh;
    }
}

/* Personal Photos Gallery Styles */
.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(116, 185, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(116, 185, 255, 0.4);
    border-color: rgba(116, 185, 255, 0.6);
}

.photo-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.photo-item:hover .photo-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.8), rgba(26, 26, 46, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-view-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a1a2e;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-view-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.photos-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    border: 3px dashed rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    background: rgba(116, 185, 255, 0.05);
    grid-column: 1 / -1;
}

.photos-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgba(116, 185, 255, 0.5);
}

.photos-placeholder p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Photos Modal */
.photos-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.photos-modal .modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    background: rgba(26, 26, 46, 0.98);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(116, 185, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photos-modal .modal-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.photos-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photos-modal .modal-close:hover {
    color: #74b9ff;
    background: rgba(116, 185, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Design for Photos */
@media (max-width: 768px) {
    .photos-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .photo-image-container {
        height: 250px;
    }
    
    .photos-placeholder {
        padding: 3rem 1rem;
    }
    
    .photos-placeholder i {
        font-size: 3rem;
    }
    
    .photos-placeholder p {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .photos-modal .modal-content {
        max-width: 98%;
        padding: 0.5rem;
    }
    
    .photos-modal .modal-content img {
        max-width: 95vw;
        max-height: 75vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .photos-modal .modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* New Marketing-Focused Styles */
.service-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-cta .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.service-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.services-cta {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(40, 167, 69, 0.1));
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.services-cta h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.trust-elements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.trust-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.trust-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .services-cta {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }
    
    .services-cta h3 {
        font-size: 1.5rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    .trust-elements {
        margin-top: 1rem;
    }
    
    .trust-item {
        padding: 0.5rem;
    }
    
    .trust-item span {
        font-size: 0.85rem;
    }
}

/* Hero Contact Information Styles */
.hero-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive adjustments for contact info */
@media (max-width: 768px) {
    .hero-contact-info {
        margin-top: 1rem;
    }
    
    .contact-item {
        padding: 0.5rem 0.75rem;
    }
    
    .contact-item span {
        font-size: 0.9rem;
    }
}

/* Force 2 columns on mobile for services, value proposition, and projects */
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .service-card,
    .value-card,
    .project-card {
        margin-bottom: 1rem;
    }
}

/* Mobile layout improvements */
@media (max-width: 576px) {
    /* Keep WhatsApp button fully visible with safe-area support */
    .whatsapp-fixed {
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
    }
    
    .language-switcher,
    [dir="rtl"] .language-switcher,
    html[dir="rtl"] .language-switcher,
    body[dir="rtl"] .language-switcher {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        left: 15px;
        padding: 0.4rem;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        flex-direction: column !important; /* Always vertical on mobile */
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: none !important;
    }
    
    /* Prevent body scroll jitter */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    html {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
}

/* Packages Section Styles */
.package-card {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid rgba(116, 185, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.3);
    border-color: rgba(116, 185, 255, 0.5);
}

.package-card.package-featured {
    border-color: rgba(116, 185, 255, 0.6);
    background: rgba(116, 185, 255, 0.15);
    transform: scale(1.05);
}

.package-card.package-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-card.package-custom {
    border-style: dashed;
    border-color: rgba(255, 206, 86, 0.6);
    background: rgba(255, 206, 86, 0.12);
}

.package-card.package-custom .package-header h3 {
    color: #ffffff;
}

.package-card .custom-price {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0.5rem;
    font-weight: 500;
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.package-header {
    margin-bottom: 2rem;
}

.package-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.price-currency {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
}

.package-features {
    flex: 1;
    margin-bottom: 2rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.package-features::-webkit-scrollbar {
    width: 6px;
}

.package-features::-webkit-scrollbar-track {
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px;
}

.package-features::-webkit-scrollbar-thumb {
    background: rgba(116, 185, 255, 0.3);
    border-radius: 10px;
}

.package-features::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 185, 255, 0.5);
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(116, 185, 255, 0.1);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li span {
    flex: 1;
}

.package-features li i.fa-check {
    color: #00b894;
    font-size: 1.1rem;
    min-width: 20px;
}

.package-features li i.fa-times {
    color: #d63031;
    font-size: 1.1rem;
    min-width: 20px;
}

.package-features .feature-disabled {
    color: #636e72;
    text-decoration: line-through;
}

.package-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.package-cta .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.package-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* RTL Support for Packages */
[dir="rtl"] .package-features ul {
    text-align: left;
}

[dir="rtl"] .package-badge {
    right: auto;
    left: 20px;
}

/* Responsive Design for Packages */
@media (max-width: 768px) {
    .package-card {
        margin-bottom: 2rem;
    }
    
    .package-card.package-featured {
        transform: scale(1);
    }
    
    .package-card.package-featured:hover {
        transform: translateY(-10px);
    }
    
    .package-header h3 {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .package-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Force 2 columns on mobile for packages */
@media (max-width: 576px) {
    #packages .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .package-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .package-header h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
    
    .price-currency {
        font-size: 0.8rem;
    }
    
    .package-features {
        margin-bottom: 1rem;
    }
    
    .package-features ul {
        padding: 0;
    }
    
    .package-features {
        max-height: 400px;
        padding-right: 0.3rem;
    }
    
    .package-features li {
        font-size: 0.65rem;
        padding: 0.35rem 0;
        gap: 0.4rem;
        line-height: 1.4;
    }
    
    .package-features li i {
        font-size: 0.75rem;
        min-width: 12px;
        margin-top: 0.1rem;
    }
    
    .package-cta {
        padding-top: 1rem;
    }
    
    .package-cta .btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
    }
    
    .package-cta .btn i {
        font-size: 0.9rem;
    }
    
    .package-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        right: 10px;
        top: -12px;
    }
    
    [dir="rtl"] .package-badge {
        left: 10px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Portfolio Showcase Section Styles */
.portfolio-showcase-card {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid rgba(116, 185, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.portfolio-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.3);
    border-color: rgba(116, 185, 255, 0.5);
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
    z-index: 10;
}

.portfolio-badge-commercial {
    background: linear-gradient(45deg, #00b894, #00a085);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

[dir="rtl"] .portfolio-badge {
    right: auto;
    left: 15px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-showcase-card:hover .portfolio-thumbnail {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-showcase-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .btn {
    background: rgba(40, 167, 69, 0.9);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.portfolio-overlay .btn:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.portfolio-content p {
    color: #b2bec3;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.portfolio-domain {
    color: #74b9ff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Courier New', monospace;
}

/* Portfolio Visit Button - Always Visible */
.portfolio-visit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.portfolio-visit-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.portfolio-visit-btn i {
    font-size: 0.9rem;
}

/* Responsive Design for Portfolio Showcase */
@media (max-width: 768px) {
    .portfolio-showcase-card {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .portfolio-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        top: 8px;
        right: 8px;
    }
    
    [dir="rtl"] .portfolio-badge {
        left: 8px;
    }
    
    .portfolio-overlay .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    #portfolio-showcase .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .portfolio-showcase-card {
        margin-bottom: 1rem;
    }
    
    .portfolio-image {
        height: 150px;
    }
    
    .portfolio-content {
        padding: 0.75rem;
    }
    
    .portfolio-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .portfolio-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .portfolio-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
}

/* WhatsApp Fixed Button with Quote - Combined */
.whatsapp-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-fixed-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-right: 0.75rem;
}

.whatsapp-quote-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

/* Discount Notification */
.discount-notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 9998;
    text-decoration: none;
    display: none;
    animation: slideInDown 0.5s ease forwards;
    max-width: 85%;
    cursor: pointer;
}

.discount-notification:hover {
    background: linear-gradient(45deg, #ee5a6f, #ff6b6b);
    color: white;
    text-decoration: none;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.discount-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.discount-content::after {
    content: " 👆";
    font-size: 0.9rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.discount-content i {
    font-size: 1rem;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.discount-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.discount-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
}

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

/* Package Card Link - Makes entire card clickable */
.package-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.package-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.package-card-link .package-card {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.package-card-link:hover .package-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(116, 185, 255, 0.3);
    border-color: rgba(116, 185, 255, 0.5);
}

/* Package CTA Top */
.package-cta-top {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.2);
}

.package-cta-top .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    pointer-events: none; /* Prevent double click */
}

/* Contact Phone Link */
.contact-phone-link {
    color: #74b9ff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-phone-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-fixed-container {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1.2rem;
    }
    
    .whatsapp-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    
    .whatsapp-quote-text {
        font-size: 0.85rem;
    }
    
    .discount-notification {
        top: 60px;
        padding: 0.4rem 0.8rem;
        max-width: 90%;
        border-radius: 20px;
    }
    
    .discount-content {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .discount-content i {
        font-size: 0.85rem;
    }
    
    .discount-content::after {
        font-size: 0.8rem;
    }
    
    .discount-close {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
        margin-left: 0.3rem;
    }
}

[dir="rtl"] .portfolio-badge {
        left: 5px;
    }
    
    .portfolio-overlay .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .portfolio-overlay .btn i {
        font-size: 0.8rem;
    }
}

/* Blog Styles */
.blog-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #b2bec3;
}

.blog-meta i {
    margin-right: 0.3rem;
    color: #74b9ff;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.blog-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #74b9ff;
}

.blog-excerpt {
    color: #b2bec3;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-post-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #b2bec3;
    font-size: 0.9rem;
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: #74b9ff;
}

.blog-post-image {
    margin: 2rem 0;
}

.blog-post-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-post-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #74b9ff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content a {
    color: #74b9ff;
    text-decoration: none;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-share {
    padding: 2rem;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.blog-share h5 {
    color: #74b9ff;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb {
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: #74b9ff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #b2bec3;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #b2bec3;
    content: "›";
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons .btn {
        width: 100%;
    }
}

/* Testimonial Styles */
.testimonial-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

/* Home page testimonials - gentle floating animation */
#testimonials .testimonial-card {
    animation: testimonial-float 5s ease-in-out infinite;
}
#testimonials .testimonial-card:nth-child(1) { animation-delay: 0s; }
#testimonials .testimonial-card:nth-child(2) { animation-delay: 0.5s; }
#testimonials .testimonial-card:nth-child(3) { animation-delay: 1s; }
#testimonials .testimonial-card:nth-child(4) { animation-delay: 1.5s; }
#testimonials .testimonial-card:nth-child(5) { animation-delay: 2s; }
#testimonials .testimonial-card:nth-child(6) { animation-delay: 2.5s; }
@keyframes testimonial-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
#testimonials .testimonial-card:hover {
    animation-play-state: paused;
}

.testimonial-rating {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-rating i {
    margin-right: 0.2rem;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(116, 185, 255, 0.3);
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(116, 185, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #74b9ff;
    font-size: 1.5rem;
    border: 2px solid rgba(116, 185, 255, 0.3);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-company {
    color: #74b9ff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.testimonial-position {
    color: #b2bec3;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.testimonial-project {
    color: #b2bec3;
    font-size: 0.85rem;
    margin: 0;
}

.testimonial-project a {
    color: #74b9ff;
    text-decoration: none;
}

.testimonial-project a:hover {
    text-decoration: underline;
}

.testimonial-project i {
    margin-right: 0.3rem;
}

/* Responsive Testimonial Styles */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-info {
        text-align: center;
    }
}

/* FAQ Styles - Dark theme, white text */
#faqAccordion .accordion-item,
.faq-item,
.faq-item.accordion-item {
    background: rgba(26, 26, 46, 0.9) !important;
    border: 1px solid rgba(116, 185, 255, 0.3) !important;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item .accordion-button {
    background: rgba(26, 26, 46, 0.9) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: none !important;
    box-shadow: none !important;
}

.faq-item .accordion-button:not(.collapsed) {
    background: rgba(116, 185, 255, 0.25) !important;
    color: #ffffff !important;
}

.faq-item .accordion-button::after {
    filter: brightness(0) invert(1);
}

.faq-item .accordion-button:focus {
    border-color: rgba(116, 185, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(116, 185, 255, 0.25);
}

.faq-item .accordion-collapse {
    background: rgba(26, 26, 46, 0.95) !important;
}

.faq-item .accordion-body {
    background: rgba(26, 26, 46, 0.95) !important;
    color: #ffffff !important;
    padding: 1.5rem;
    line-height: 1.8;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
}

.faq-item .accordion-body p {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.faq-item .accordion-body * {
    color: #ffffff !important;
}

.faq-search-input {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 1px solid rgba(116, 185, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

.faq-search-input:focus {
    background: rgba(26, 26, 46, 0.9) !important;
    border-color: rgba(116, 185, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(116, 185, 255, 0.25);
    outline: none;
}

.faq-search-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.faq-search-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

.faq-search-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.faq-cta {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 3rem 2rem;
}

.faq-cta h3 {
    color: #ffffff;
    font-weight: 600;
}

.faq-cta p {
    color: #ffffff;
}

.faq-cta p {
    color: #b2bec3;
    font-size: 1.1rem;
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
    .faq-item .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-cta {
        padding: 2rem 1rem;
    }
    
    .faq-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
    opacity: 0.9;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.6);
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Newsletter Form Styles */
.newsletter-form .input-group {
    margin-bottom: 0.5rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    color: #ffffff;
}

.newsletter-form .form-control::placeholder {
    color: #b2bec3;
}

.newsletter-form .btn {
    border-left: none;
}

/* Responsive Back to Top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Process Steps Styles */
.process-step-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.process-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step-icon {
    font-size: 2rem;
    color: #74b9ff;
    width: 50px;
    text-align: center;
}

.process-step-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.process-step-content {
    color: #b2bec3;
    line-height: 1.8;
}

.process-step-duration {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Case Study Styles */
.case-study-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.case-study-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-industry {
    display: inline-block;
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.case-study-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.case-study-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-title a:hover {
    color: #74b9ff;
}

.case-study-client {
    color: #b2bec3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-excerpt {
    color: #b2bec3;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.case-study-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(116, 185, 255, 0.2);
}

.metric-item {
    text-align: center;
}

.metric-value {
    display: block;
    color: #74b9ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.metric-label {
    display: block;
    color: #b2bec3;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Case Study Detail Styles */
.case-study-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
}

.case-study-industry-badge {
    display: inline-block;
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-study-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.case-study-client-main {
    color: #b2bec3;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.case-study-comparison {
    margin: 2rem 0;
}

.comparison-image {
    text-align: center;
}

.comparison-image h4 {
    color: #74b9ff;
    font-weight: 600;
}

.comparison-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.case-study-section {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.case-study-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.case-study-content p {
    margin-bottom: 1.5rem;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.case-study-metrics-detailed {
    margin-top: 2rem;
}

.metric-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(116, 185, 255, 0.5);
}

.metric-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #74b9ff;
    margin-bottom: 0.5rem;
}

.metric-label-large {
    color: #b2bec3;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

/* Responsive Process & Case Study Styles */
@media (max-width: 768px) {
    .process-step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .process-step-title {
        font-size: 1.2rem;
    }
    
    .case-study-title-main {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .metric-value-large {
        font-size: 2rem;
    }
}

/* Skills with Percentage Styles */
.skill-progress-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-progress-card:hover {
    transform: translateY(-5px);
    border-color: rgba(116, 185, 255, 0.5);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.2);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 1.5rem;
    color: #74b9ff;
    width: 30px;
    text-align: center;
}

.skill-name {
    flex: 1;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.skill-percentage {
    color: #74b9ff;
    font-weight: 700;
    font-size: 1.1rem;
}

.skill-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.skills-category-title {
    color: #74b9ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(116, 185, 255, 0.3);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #74b9ff, #0984e3);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
    z-index: 2;
}

.timeline-content {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: rgba(116, 185, 255, 0.5);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.2);
}

.timeline-date {
    color: #74b9ff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: #b2bec3;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.timeline-type-badge {
    display: inline-block;
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* RTL Timeline Support */
[dir="rtl"] .timeline::before {
    left: auto;
    right: 30px;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 80px;
}

[dir="rtl"] .timeline-marker {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline-item:hover .timeline-content {
    transform: translateX(-10px);
}

/* Responsive Timeline & Skills */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .skill-header {
        flex-wrap: wrap;
    }
    
    .skills-category-title {
        font-size: 1.2rem;
    }
}

/* Statistics Cards */
.stat-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.stat-icon {
    font-size: 3rem;
    color: #74b9ff;
    margin-bottom: 1rem;
}

.stat-number-large {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label-large {
    color: #b2bec3;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Statistics */
@media (max-width: 768px) {
    .stat-number-large {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
}

/* Comparison Table Styles */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(116, 185, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.comparison-table thead th {
    background: rgba(116, 185, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    vertical-align: top;
}

.comparison-table thead th.popular-column {
    background: rgba(116, 185, 255, 0.3);
    border: 2px solid rgba(116, 185, 255, 0.5);
}

.comparison-table tbody tr:hover {
    background: rgba(116, 185, 255, 0.1);
}

.comparison-table tbody td.popular-column {
    background: rgba(116, 185, 255, 0.05);
}

.feature-column {
    text-align: right !important;
    font-weight: 600;
    color: #ffffff;
    background: rgba(26, 26, 46, 0.5);
}

.feature-name {
    color: #b2bec3;
    font-weight: 500;
}

.package-header-compare {
    text-align: center;
}

.package-header-compare h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.package-price-compare {
    margin-bottom: 0.5rem;
}

.package-price-compare .price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #74b9ff;
}

.package-price-compare .price-currency {
    font-size: 1.2rem;
    color: #b2bec3;
}

.popular-badge-compare {
    display: inline-block;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.feature-check {
    font-size: 1.5rem;
}

.package-cta-compare {
    padding: 1.5rem !important;
}

.project-filters {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.project-filters .form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comparison-help {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.comparison-help h3 {
    color: #ffffff;
    font-weight: 600;
}

.help-item {
    text-align: center;
    padding: 1rem;
}

.help-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.help-item h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.help-item p {
    color: #b2bec3;
    line-height: 1.6;
}

/* Responsive Comparison Table */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
    
    .package-header-compare h3 {
        font-size: 1rem;
    }
    
    .package-price-compare .price-amount {
        font-size: 1.5rem;
    }
    
    .feature-check {
        font-size: 1.2rem;
    }
}

/* Calculator Styles */
.calculator-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.calculator-section {
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.calculator-section-title {
    color: #74b9ff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-option {
    display: block;
    cursor: pointer;
}

.calculator-option input[type="radio"] {
    display: none;
}

.calculator-option .option-content {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.calculator-option .option-content i {
    font-size: 2rem;
    color: #74b9ff;
}

.calculator-option input[type="radio"]:checked + .option-content {
    background: rgba(116, 185, 255, 0.2);
    border-color: #74b9ff;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.3);
}

.calculator-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.calculator-checkbox:hover {
    background: rgba(116, 185, 255, 0.15);
    border-color: rgba(116, 185, 255, 0.5);
}

.calculator-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calculator-checkbox input[type="checkbox"]:checked {
    accent-color: #74b9ff;
}

.calculator-slider {
    padding: 1rem 0;
}

.calculator-slider .form-range {
    width: 100%;
    height: 8px;
    background: rgba(116, 185, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.calculator-slider .form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #74b9ff;
    border-radius: 50%;
    cursor: pointer;
}

.calculator-slider .form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #74b9ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #b2bec3;
    font-size: 0.9rem;
}

.slider-labels span:not(:nth-child(2)) {
    flex: 1;
}

.slider-labels span:nth-child(2) {
    font-weight: 700;
    color: #74b9ff;
    font-size: 1.2rem;
}

.calculator-result {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.2), rgba(162, 155, 254, 0.2));
    border: 2px solid rgba(116, 185, 255, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.result-content h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-price .price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #74b9ff;
    line-height: 1;
}

.result-price .price-currency {
    font-size: 1.5rem;
    color: #b2bec3;
    font-weight: 500;
}

.result-note {
    color: #b2bec3;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.calculator-cta {
    margin-top: 2rem;
}

/* Responsive Calculator */
@media (max-width: 768px) {
    .calculator-card {
        padding: 1.5rem;
    }
    
    .calculator-section {
        padding: 1rem;
    }
    
    .result-price .price-amount {
        font-size: 2.5rem;
    }
    
    .calculator-option .option-content {
        padding: 1rem;
    }
}

/* Technology Stack Styles */
.tech-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.tech-icon {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tech-icon i {
    color: #ffffff !important;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-card h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: #b2bec3;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.tech-explanation {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.tech-explanation h3 {
    color: #ffffff;
    font-weight: 600;
}

.explanation-item {
    text-align: center;
    padding: 1rem;
}

.explanation-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.explanation-item h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.explanation-item p {
    color: #b2bec3;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Technology Stack */
@media (max-width: 768px) {
    .tech-icon {
        font-size: 3rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .tech-card h4 {
        font-size: 1.1rem;
    }
}

/* Legal Pages Styles */
.legal-content {
    background: rgba(116, 185, 255, 0.05);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 15px;
    padding: 3rem;
    color: #ffffff;
    line-height: 1.8;
}

.legal-content h2 {
    color: #74b9ff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(116, 185, 255, 0.3);
}

.legal-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #b2bec3;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: #b2bec3;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #74b9ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #0984e3;
    text-decoration: underline;
}

/* Guarantee Page Styles */
.guarantee-intro {
    padding: 2rem 0;
}

.guarantee-intro h2 {
    color: #ffffff !important;
    font-weight: 600;
}

.guarantee-intro .lead {
    color: #ffffff !important;
    opacity: 0.9;
}

.guarantee-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(116, 185, 255, 0.3);
}

.guarantee-cards {
    margin: 3rem 0;
}

.guarantee-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.guarantee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.guarantee-icon {
    font-size: 3rem;
    color: #74b9ff;
    margin-bottom: 1rem;
}

.guarantee-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guarantee-card p {
    color: #ffffff !important;
    line-height: 1.8;
}

.guarantee-list {
    list-style: none;
    padding: 0;
}

.guarantee-list li {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff !important;
}

.guarantee-list li i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guarantee-list li strong {
    color: #ffffff;
    margin-right: 0.5rem;
}

.guarantee-details h2 {
    color: #ffffff !important;
    font-weight: 600;
}

.commitment-box {
    background: rgba(116, 185, 255, 0.1);
    border-left: 4px solid #74b9ff;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.commitment-box p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.guarantee-steps {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    list-style: none;
    counter-reset: step-counter;
}

.guarantee-steps li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    color: #ffffff !important;
    line-height: 1.8;
}

.guarantee-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.guarantee-cta {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
}

.guarantee-cta h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guarantee-cta p {
    color: #ffffff !important;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .guarantee-badge {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .guarantee-card {
        padding: 1.5rem;
    }
    
    .guarantee-steps {
        padding: 1.5rem;
    }
    
    .guarantee-steps li {
        padding-left: 2.5rem;
    }
    
    .guarantee-steps li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
    }
}

/* ------------------------------------------------------------
   SEO Silo content styling (scoped)
------------------------------------------------------------ */
.seo-silo .card {
    background: rgba(15, 18, 35, 0.75) !important;
    border: 1px solid rgba(116, 185, 255, 0.18) !important;
    backdrop-filter: blur(10px);
}

.seo-silo h2, .seo-silo h3 {
    color: #ffffff !important;
    font-weight: 700;
}

.seo-silo p, .seo-silo li, .seo-silo .accordion-body {
    color: #dfe6e9 !important;
    line-height: 1.9;
}

.seo-silo ul {
    padding-left: 1.1rem;
}

.seo-silo .seo-link {
    color: #74b9ff !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(116, 185, 255, 0.45);
    padding-bottom: 1px;
}

.seo-silo .seo-link:hover {
    color: #a8d5ff !important;
    border-bottom-color: rgba(168, 213, 255, 0.9);
}

.seo-silo .seo-cta {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(116, 185, 255, 0.22);
    background: rgba(116, 185, 255, 0.08);
}

.seo-silo .seo-cta--strong {
    border-color: rgba(0, 184, 148, 0.35);
    background: rgba(0, 184, 148, 0.10);
}

.seo-silo .seo-cta__action {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.seo-silo .seo-cta__action .seo-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(116, 185, 255, 0.25);
    background: rgba(116, 185, 255, 0.10);
    text-decoration: none;
}

.seo-silo .seo-cta--strong .seo-cta__action .seo-link {
    border-color: rgba(0, 184, 148, 0.35);
    background: rgba(0, 184, 148, 0.14);
    color: #b9ffe9 !important;
}

.seo-silo .seo-cta__hint {
    margin: 0;
    color: #b2bec3 !important;
}

.seo-silo .accordion-item {
    background: transparent !important;
    border: 1px solid rgba(116, 185, 255, 0.18) !important;
}

.seo-silo .accordion-button {
    background: rgba(15, 18, 35, 0.55) !important;
    color: #ffffff !important;
}

.seo-silo .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(116, 185, 255, 0.15) !important;
}

@media (max-width: 768px) {
    .seo-silo .card { padding: 1rem !important; }
    .seo-silo h1 { font-size: 1.6rem; }
}

/* Contact Page Improvements */
.contact-info-text {
    color: #b2bec3;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.office-hours-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.office-hours-card h2 {
    color: #ffffff;
    font-weight: 600;
}

.hours-item {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-item strong {
    color: #74b9ff;
    font-weight: 600;
}

.hours-item span {
    color: #b2bec3;
}

.response-time-card {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.response-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
}

.response-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.response-time-card h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.response-time {
    color: #74b9ff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.response-note {
    color: #b2bec3;
    font-size: 0.9rem;
    margin: 0;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* Responsive Contact Improvements */
@media (max-width: 768px) {
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .response-time-card {
        padding: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Service Comparison Table */
.service-comparison-wrapper {
    margin: 2rem 0;
}

.service-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(116, 185, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.service-comparison-table th,
.service-comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.service-comparison-table thead th {
    background: rgba(116, 185, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    vertical-align: top;
}

.service-comparison-table tbody tr:hover {
    background: rgba(116, 185, 255, 0.1);
}

.service-header-compare {
    text-align: center;
}

.service-header-compare i {
    font-size: 2rem;
    color: #74b9ff;
    margin-bottom: 0.5rem;
    display: block;
}

.service-header-compare h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.service-cta-compare {
    padding: 1.5rem !important;
}

.comparison-legend {
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
}

/* Responsive Service Comparison */
@media (max-width: 768px) {
    .service-comparison-table {
        font-size: 0.85rem;
    }
    
    .service-comparison-table th,
    .service-comparison-table td {
        padding: 0.75rem;
    }
    
    .service-header-compare i {
        font-size: 1.5rem;
    }
    
    .service-header-compare h4 {
        font-size: 0.9rem;
    }
}

/* Sitemap Styles */
.sitemap-content {
    background: rgba(116, 185, 255, 0.05);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 15px;
    padding: 3rem;
}

.sitemap-section {
    margin-bottom: 3rem;
}

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

.sitemap-section-title {
    color: #74b9ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(116, 185, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.sitemap-list li {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sitemap-list li:hover {
    background: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.4);
    transform: translateX(5px);
}

.sitemap-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-list a:hover {
    color: #74b9ff;
}

/* Responsive Sitemap */
@media (max-width: 768px) {
    .sitemap-content {
        padding: 1.5rem;
    }
    
    .sitemap-section-title {
        font-size: 1.2rem;
    }
    
    .sitemap-list {
        grid-template-columns: 1fr;
    }
}