/* ============================================
   TechRam - Modern Website Styles
   Colors: Black (#000000) & Teal Green (#00FFB3 / #00CC8F)
   ============================================ */

:root {
    --primary-black: #000000;
    --primary-green: #00FFB3;
    --primary-green-dark: #00CC8F;
    --primary-green-light: #00FFCC;
    --accent-coral: #FF6B6B;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-dark: #1A1A1A;
    --bg-dark: #0A0A0A;
    --bg-card: #111111;
    --border-color: #1F1F1F;
    --gradient-green: linear-gradient(135deg, #00FFB3 0%, #00CC8F 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
}

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

/* Global link reset - prevent default browser link styling for navbar */
.navbar a,
.navbar a:link,
.navbar a:visited,
.navbar a:hover,
.navbar a:active,
.navbar a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    color: inherit !important;
}

/* Force navbar link colors */
.navbar .nav-link,
.navbar .nav-link:link,
.navbar .nav-link:visited,
.navbar .nav-link:active,
.navbar .nav-link:focus {
    color: var(--text-gray) !important;
}

.navbar .nav-link:hover {
    color: var(--primary-green) !important;
}

/* Ensure logo link never shows underline */
.navbar .logo-link,
.navbar .logo-link:link,
.navbar .logo-link:visited,
.navbar .logo-link:hover,
.navbar .logo-link:active,
.navbar .logo-link:focus {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

html {
    scroll-behavior: smooth;
    /* Optimize font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improve text rendering on mobile */
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
}

/* Prevent scrolling while loading */
body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Custom Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-green);
    border-radius: 10px;
    border: 2px solid var(--primary-black);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00FFCC 0%, #00FFB3 100%);
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--primary-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-first: Ensure container is responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0A0A0A 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.loading-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 179, 0.5));
    z-index: 2;
    position: relative;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseRing 2s ease-out infinite;
}

.loading-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulseRing 2s ease-out infinite 0.5s;
}

.loading-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulseRing 2s ease-out infinite 1s;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 179, 0.5));
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 30px rgba(0, 255, 179, 0.8));
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-text-main {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 179, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 179, 0.8));
    }
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    display: inline-block;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.5);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 255, 179, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 10px;
    width: 0%;
    animation: progressLoad 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.5);
}

@keyframes progressLoad {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* Mobile Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .loading-pulse {
        width: 120px;
        height: 120px;
    }
    
    .loading-pulse::before {
        width: 140px;
        height: 140px;
    }
    
    .loading-pulse::after {
        width: 160px;
        height: 160px;
    }
    
    .loading-text-main {
        font-size: 1.5rem;
    }
    
    .loading-progress {
        width: 180px;
    }
    
    .loading-content {
        gap: 1.5rem;
    }
    
    /* Maintain desktop animation speeds on mobile */
    .loading-logo {
        animation: logoFloat 2s ease-in-out infinite !important;
    }
    
    .loading-pulse {
        animation: pulseRing 2s ease-out infinite !important;
    }
    
    .loading-pulse::before {
        animation: pulseRing 2s ease-out infinite 0.5s !important;
    }
    
    .loading-pulse::after {
        animation: pulseRing 2s ease-out infinite 1s !important;
    }
    
    .loading-text-main {
        animation: textGlow 2s ease-in-out infinite !important;
    }
    
    .loading-dots span {
        animation: dotBounce 1.4s ease-in-out infinite !important;
    }
    
    .loading-progress-bar {
        animation: progressLoad 2s ease-in-out infinite !important;
    }
}

@media (max-width: 480px) {
    .loading-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .loading-pulse {
        width: 100px;
        height: 100px;
    }
    
    .loading-pulse::before {
        width: 120px;
        height: 120px;
    }
    
    .loading-pulse::after {
        width: 140px;
        height: 140px;
    }
    
    .loading-text-main {
        font-size: 1.25rem;
    }
    
    .loading-progress {
        width: 150px;
    }
    
    .loading-content {
        gap: 1.25rem;
    }
    
    /* Maintain desktop animation speeds on mobile */
    .loading-logo {
        animation: logoFloat 2s ease-in-out infinite !important;
    }
    
    .loading-pulse {
        animation: pulseRing 2s ease-out infinite !important;
    }
    
    .loading-pulse::before {
        animation: pulseRing 2s ease-out infinite 0.5s !important;
    }
    
    .loading-pulse::after {
        animation: pulseRing 2s ease-out infinite 1s !important;
    }
    
    .loading-text-main {
        animation: textGlow 2s ease-in-out infinite !important;
    }
    
    .loading-dots span {
        animation: dotBounce 1.4s ease-in-out infinite !important;
    }
    
    .loading-progress-bar {
        animation: progressLoad 2s ease-in-out infinite !important;
    }
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Ensure navbar links never show default browser styling */
.navbar * {
    box-sizing: border-box;
}

.navbar a {
    -webkit-tap-highlight-color: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Prevent logo from wrapping */
.nav-container > .logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
}

.nav-container > .nav-menu {
    flex: 1 1 auto;
    min-width: 0;
    flex-shrink: 1;
}

.nav-container > .nav-actions {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-gray) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(176, 176, 176, 0.1);
    border: 1px solid rgba(176, 176, 176, 0.2);
}

.back-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    color: inherit;
}

.back-arrow:hover,
.back-arrow:active,
.back-arrow:focus {
    background: rgba(0, 255, 179, 0.2);
    border-color: var(--primary-green);
    transform: translateX(-3px);
    color: var(--primary-green) !important;
}

.back-arrow:hover svg,
.back-arrow:active svg,
.back-arrow:focus svg {
    stroke: currentColor;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo-link:link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
    text-decoration: none !important;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ============================================
   Simple & Reliable Language Switcher
   ============================================ */

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 255, 179, 0.1);
    border: 1px solid rgba(0, 255, 179, 0.3);
    border-radius: 8px;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(0, 255, 179, 0.2);
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 255, 179, 0.2);
}

.lang-icon {
    font-size: 1.1rem;
}

.lang-text {
    min-width: 60px;
    text-align: left;
}

.lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-switcher.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 179, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.lang-switcher.active .lang-list {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.lang-item:hover {
    background: rgba(0, 255, 179, 0.1);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    padding-left: 24px;
}

.lang-item.active {
    background: rgba(0, 255, 179, 0.15);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    font-weight: 600;
}

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

[dir="rtl"] .lang-item {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .lang-item:hover,
[dir="rtl"] .lang-item.active {
    border-right-color: var(--primary-green);
    padding-left: 20px;
    padding-right: 24px;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
}

/* Desktop: Always show menu */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-link {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    border: none !important;
    outline: none !important;
    -webkit-text-decoration: none !important;
    text-decoration: none !important;
}

.nav-link:link,
.nav-link:visited,
.nav-link:active,
.nav-link:focus {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: width 0.3s ease;
}

.nav-link:hover,
a.nav-link:hover {
    color: var(--primary-green) !important;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

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

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

/* ============================================
   Language Dropdown Styles
   ============================================ */

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: inherit;
}

.dropdown-toggle:link,
.dropdown-toggle:visited,
.dropdown-toggle:hover,
.dropdown-toggle:active {
    text-decoration: none !important;
    color: inherit;
}

.globe-icon {
    font-size: 18px;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.nav-dropdown.active .globe-icon,
.dropdown-toggle:hover .globe-icon {
    color: var(--primary-green);
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.nav-dropdown.active .dropdown-toggle {
    color: var(--primary-green);
}

/* Desktop dropdown menu styles - scoped to desktop only */
@media (min-width: 769px) {
    /* Use same specificity as mobile styles to ensure they override */
    .navbar .nav-menu .nav-dropdown .dropdown-menu,
    .nav-container .nav-menu .nav-dropdown .dropdown-menu,
    .nav-menu .nav-dropdown .dropdown-menu,
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        background: rgba(17, 17, 17, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        min-width: 200px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        z-index: 1001 !important;
        margin-top: 10px !important;
        box-shadow: 0 4px 20px rgba(0, 255, 179, 0.2) !important;
        pointer-events: none !important;
        list-style: none !important;
        padding: 8px 0 !important;
        margin: 10px 0 0 0 !important;
        display: block !important;
        width: auto !important;
    }

    .navbar .nav-menu .nav-dropdown.active .dropdown-menu,
    .nav-container .nav-menu .nav-dropdown.active .dropdown-menu,
    .nav-menu .nav-dropdown.active .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-gray) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.dropdown-item:link,
.dropdown-item:visited,
.dropdown-item:active {
    color: var(--text-gray) !important;
    text-decoration: none !important;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 255, 179, 0.1);
    color: var(--primary-green) !important;
    padding-left: 25px;
    text-decoration: none !important;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.animated-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Tech Background Elements */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Code Snippets */
.code-snippet {
    position: absolute;
    background: rgba(0, 255, 179, 0.05);
    border: 1px solid rgba(0, 255, 179, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    backdrop-filter: blur(10px);
    opacity: 0.6;
    animation: codeFloat 15s ease-in-out infinite;
}

.code-snippet .code-line {
    display: block;
    color: rgba(0, 255, 179, 0.8);
}

.code-keyword {
    color: var(--primary-green);
    font-weight: 600;
}

.code-function {
    color: rgba(0, 255, 179, 0.9);
}

.code-variable {
    color: rgba(255, 255, 255, 0.7);
}

.code-string {
    color: rgba(0, 255, 179, 0.6);
}

.code-comment {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.code-class {
    color: rgba(0, 255, 179, 0.8);
}

.code-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.code-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.code-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes codeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) rotate(2deg);
        opacity: 0.7;
    }
}

/* Circuit Patterns */
.circuit-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: 
        linear-gradient(rgba(0, 255, 179, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 255, 179, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: circuitRotate 20s linear infinite;
}

.circuit-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circuit-2 {
    bottom: 15%;
    right: 25%;
    animation-delay: 7s;
}

.circuit-3 {
    top: 50%;
    left: 5%;
    animation-delay: 14s;
}

@keyframes circuitRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Tech Icons */
.tech-icon {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation: iconFloat 12s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 255, 179, 0.3));
}

.tech-icon-1 {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.tech-icon-2 {
    top: 70%;
    left: 8%;
    animation-delay: 2s;
}

.tech-icon-3 {
    top: 40%;
    right: 8%;
    animation-delay: 4s;
}

.tech-icon-4 {
    bottom: 30%;
    right: 12%;
    animation-delay: 6s;
}

.tech-icon-5 {
    top: 10%;
    right: 30%;
    animation-delay: 8s;
}

.tech-icon-6 {
    bottom: 15%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.25;
    }
}

/* Tech Shapes */
.tech-shape {
    position: absolute;
    border: 2px solid rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    opacity: 0.2;
    animation: shapePulse 8s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 15%;
    border-radius: 50%;
    animation-delay: 3s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 55%;
    right: 35%;
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    animation-delay: 6s;
}

@keyframes shapePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.3;
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-size: 1.4em;
    font-weight: 900;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.03em;
    display: inline-block;
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(0, 255, 179, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--primary-black);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.hero-ram-image {
    width: 120px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
}

.card-1 {
    top: 10%;
    left: -10%;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card-2 {
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite 2s;
    z-index: 3;
}

.card-3 {
    bottom: 10%;
    left: -5%;
    animation: float 6s ease-in-out infinite 4s;
    z-index: 3;
}

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

.card-text {
    font-weight: 600;
    color: var(--primary-green);
}

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-item {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.about-item:hover {
    border-color: var(--primary-green);
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.about-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   Mobile Showcase Section
   ============================================ */

.mobile-showcase {
    background: var(--primary-black);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.mobile-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 179, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.phones-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.phone-wrapper {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-wrapper.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.phone-left.animate {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.phone-right.animate {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(50px) rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(50px) rotate(10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a, #0f0f0f);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.phone-frame:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 255, 179, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-frame.samsung {
    width: 320px;
    height: 680px;
    border-radius: 48px;
    padding: 10px 8px;
}

/* Samsung Camera Module - Dot Notch */
.phone-frame.samsung .camera-module {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #000;
    border-radius: 50%;
    z-index: 11;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        inset 0 0 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame.samsung .camera-module::before {
    content: '';
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #1a1a1a 0%, #000 70%);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 5px rgba(0, 0, 0, 0.8),
        0 0 3px rgba(255, 255, 255, 0.05);
}

.phone-frame.samsung .camera-module::after {
    content: '';
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #333 30%, #000 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Samsung Side Buttons */
.phone-frame.samsung .side-button {
    position: absolute;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.phone-frame.samsung .volume-up {
    right: -3px;
    top: 120px;
    width: 3px;
    height: 35px;
}

.phone-frame.samsung .volume-down {
    right: -3px;
    top: 160px;
    width: 3px;
    height: 35px;
}

.phone-frame.samsung .power-button {
    right: -3px;
    top: 200px;
    width: 3px;
    height: 50px;
}

.phone-frame.iphone {
    width: 310px;
    height: 670px;
    border-radius: 55px;
    padding: 8px;
}

/* iPhone Dynamic Island */
.phone-frame.iphone .dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #000;
    border-radius: 18px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.phone-frame.iphone .dynamic-island::before {
    content: '';
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #333 0%, #000 100%);
    border-radius: 50%;
}

.phone-frame.iphone .dynamic-island::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.2);
}

/* iPhone Side Buttons */
.phone-frame.iphone .side-button {
    position: absolute;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.phone-frame.iphone .volume-up {
    left: -3px;
    top: 100px;
    width: 3px;
    height: 40px;
}

.phone-frame.iphone .volume-down {
    left: -3px;
    top: 145px;
    width: 3px;
    height: 40px;
}

.phone-frame.iphone .power-button {
    right: -3px;
    top: 110px;
    width: 3px;
    height: 50px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2;
    /* Ensure content stays within bounds */
    contain: layout style paint;
}

.phone-frame.samsung .phone-screen {
    border-radius: 38px;
}

.phone-frame.iphone .phone-screen {
    border-radius: 47px;
}

/* Phone Fullscreen Stream */
.phone-fullscreen-stream {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    overflow: hidden;
}

.phone-fullscreen-stream.active {
    display: block;
}

.phone-fullscreen-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.phone-fullscreen-stream::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 179, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.phone-fullscreen-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%);
    z-index: 0;
    pointer-events: none;
}

/* Phone Stream Header */
.phone-stream-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.phone-close-stream-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
    flex-shrink: 0;
}

.phone-close-stream-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.phone-stream-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 10px;
    min-width: 0;
}

.phone-stream-header-avatar {
    width: 32px;
    height: 32px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid rgba(0, 255, 179, 0.3);
    flex-shrink: 0;
}

.phone-stream-header-details {
    flex: 1;
    min-width: 0;
}

.phone-stream-header-name {
    color: white;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-stream-header-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-stream-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.phone-live-indicator {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    animation: pulse 2s infinite;
    white-space: nowrap;
}

.phone-viewer-count-header {
    color: white;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Phone Love Reactions */
.phone-love-reactions-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.phone-love-reaction {
    position: absolute;
    font-size: 35px;
    pointer-events: none;
    animation: phoneLoveFloat 3s ease-out forwards;
    z-index: 6;
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.8));
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

@keyframes phoneLoveFloat {
    0% {
        opacity: 1;
        transform: translateY(100%) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(50%) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-10%) scale(0.8) rotate(360deg);
    }
}

/* Phone Comments */
.phone-comments-container {
    position: absolute;
    right: 8px;
    bottom: 70px;
    width: 200px;
    max-height: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.phone-comment-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 16px;
    padding: 8px 12px;
    margin-bottom: 8px;
    animation: phoneCommentSlide 5s linear forwards;
    pointer-events: none;
}

@keyframes phoneCommentSlide {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.phone-comment-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.phone-comment-avatar {
    width: 18px;
    height: 18px;
    background: rgba(0, 255, 179, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.phone-comment-name {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 10px;
}

.phone-comment-text {
    color: white;
    font-size: 11px;
    line-height: 1.3;
}

/* Phone Stream Controls */
.phone-stream-controls {
    position: absolute;
    right: 8px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.phone-stream-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 179, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.phone-stream-control-btn:hover {
    background: rgba(0, 255, 179, 0.2);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.phone-stream-control-btn:active {
    transform: scale(0.95);
}

.phone-like-btn.active {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    animation: phoneLikePulse 0.5s ease;
}

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

.phone-label {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.3s;
}

.phone-wrapper.animate .phone-label {
    opacity: 1;
    transform: translateY(0);
}

/* Glassy App Design */
.app-design {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.app-design::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 179, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.app-header {
    position: relative;
    z-index: 2;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
}

.phone-frame.samsung .status-bar {
    padding-top: 45px;
}

.phone-frame.iphone .status-bar {
    padding-top: 50px;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-icons span {
    width: 4px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.6);
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 179, 0.1);
}

.app-nav h3 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-green);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 255, 179, 0.4);
}

.app-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100% - 180px);
    overflow-y: auto;
}

.glass-card {
    background: rgba(0, 255, 179, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 255, 179, 0.12);
    border-color: rgba(0, 255, 179, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 179, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 179, 0.5));
}

.glass-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

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

.app-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 179, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-around;
    z-index: 2;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    transition: all 0.3s ease;
}

.nav-item.active .nav-dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    box-shadow: 0 0 15px var(--primary-green);
}

/* ============================================
   Live Streaming App Styles
   ============================================ */

.streaming-nav {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 179, 0.1);
}

.streaming-nav h3 {
    font-size: 18px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-action-icon {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-action-icon:hover {
    transform: scale(1.1);
}

/* Tab Content */
.tab-content {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    overflow-y: auto;
    padding-top: 100px;
}

.tab-content.active {
    display: block;
}

.streaming-content {
    padding: 15px;
    min-height: 100%;
}

/* Home Tab - Live Streams */
.live-stream-card {
    background: rgba(0, 255, 179, 0.05);
    border: 1px solid rgba(0, 255, 179, 0.15);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.live-stream-card:hover {
    background: rgba(0, 255, 179, 0.08);
    border-color: rgba(0, 255, 179, 0.3);
    transform: translateY(-2px);
}

.stream-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.2) 0%, rgba(0, 200, 150, 0.1) 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    overflow: hidden;
}

/* Game Video Styles */
.game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.game-stream .stream-thumbnail {
    padding: 0;
}

.game-stream .live-badge,
.game-stream .viewer-count {
    position: relative;
    z-index: 3;
    margin: 10px;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.3) 0%, rgba(0, 200, 150, 0.2) 100%);
    z-index: 1;
}

/* Ensure video plays smoothly */
.game-video {
    filter: brightness(1.1) contrast(1.1);
    transition: filter 0.3s ease;
}

.game-stream:hover .game-video {
    filter: brightness(1.2) contrast(1.15);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.live-badge {
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.viewer-count {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    backdrop-filter: blur(10px);
}

.stream-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(0, 255, 179, 0.3);
}

.stream-details {
    flex: 1;
}

.streamer-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 14px;
    margin-bottom: 2px;
}

.stream-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Discover Tab */
.discover-header {
    margin-bottom: 20px;
}

.discover-header h4 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.trending-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 255, 179, 0.05);
    border: 1px solid rgba(0, 255, 179, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.trending-card:hover {
    background: rgba(0, 255, 179, 0.08);
    transform: translateX(5px);
}

.trend-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 14px;
}

.trend-info {
    flex: 1;
}

.trend-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.trend-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.category-item {
    background: rgba(0, 255, 179, 0.08);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background: rgba(0, 255, 179, 0.12);
    transform: scale(1.05);
}

/* Create Tab */
.create-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding-top: 50px;
}

.create-header h4 {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.create-option {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 250px;
    padding: 20px;
    background: rgba(0, 255, 179, 0.08);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.create-option:hover {
    background: rgba(0, 255, 179, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 179, 0.2);
}

.create-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 179, 0.15);
    border-radius: 12px;
}

.create-text {
    flex: 1;
}

.create-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.create-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Inbox Tab */
.inbox-header h4 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 255, 179, 0.03);
    border: 1px solid rgba(0, 255, 179, 0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: rgba(0, 255, 179, 0.06);
    transform: translateX(5px);
}

.message-item.unread {
    background: rgba(0, 255, 179, 0.08);
    border-color: rgba(0, 255, 179, 0.2);
}

.message-item.unread .message-name {
    font-weight: 700;
}

.message-avatar {
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-name {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.message-preview {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    flex-shrink: 0;
}

/* Profile Tab */
.profile-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid rgba(0, 255, 179, 0.1);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(0, 255, 179, 0.3);
}

.profile-name {
    color: var(--text-white);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-handle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    max-width: 250px;
    margin: 0 auto;
}

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

.stat-value {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-btn {
    flex: 1;
    padding: 10px;
    background: var(--gradient-green);
    border: none;
    border-radius: 8px;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.profile-btn.secondary {
    background: rgba(0, 255, 179, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(0, 255, 179, 0.3);
}

.profile-content-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 179, 0.1);
}

.content-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.profile-thumbnail {
    aspect-ratio: 1;
    background: rgba(0, 255, 179, 0.08);
    border: 1px solid rgba(0, 255, 179, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-thumbnail:hover {
    background: rgba(0, 255, 179, 0.12);
    transform: scale(1.05);
}

/* Streaming Footer */
.streaming-footer {
    padding: 10px 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.streaming-footer .nav-item {
    flex: 1;
    font-size: 10px;
    gap: 4px;
}

.streaming-footer .nav-icon {
    font-size: 20px;
    display: block;
}

.create-tab {
    position: relative;
}

.create-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-black);
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 255, 179, 0.4);
    transition: all 0.3s ease;
}

.create-tab.active .create-icon {
    transform: rotate(45deg);
    box-shadow: 0 6px 20px rgba(0, 255, 179, 0.6);
}

.create-tab span:not(.create-icon) {
    display: none;
}

/* ============================================
   Full Screen Live Stream Modal
   ============================================ */

.fullscreen-stream-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    overflow: hidden;
}

.fullscreen-stream-modal.active {
    display: block;
}

.fullscreen-stream-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Stream Header */
.stream-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.close-stream-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
}

.close-stream-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.stream-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 15px;
}

.stream-header-avatar {
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(0, 255, 179, 0.3);
}

.stream-header-details {
    flex: 1;
}

.stream-header-name {
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.stream-header-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.stream-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.viewer-count-header {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Love Reactions */
.love-reactions-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.love-reaction {
    position: absolute;
    font-size: 40px;
    pointer-events: none;
    animation: loveFloat 3s ease-out forwards;
    z-index: 6;
}

@keyframes loveFloat {
    0% {
        opacity: 1;
        transform: translateY(100vh) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(0.8) rotate(360deg);
    }
}

/* Comments */
.comments-container {
    position: absolute;
    right: 15px;
    bottom: 100px;
    width: 280px;
    max-height: 60%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.comment-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    margin-bottom: 10px;
    animation: commentSlide 5s linear forwards;
    pointer-events: none;
}

@keyframes commentSlide {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 179, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.comment-name {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 12px;
}

.comment-text {
    color: white;
    font-size: 13px;
    line-height: 1.4;
}

/* Stream Controls */
.stream-controls {
    position: absolute;
    right: 15px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.stream-control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 179, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stream-control-btn:hover {
    background: rgba(0, 255, 179, 0.2);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.stream-control-btn:active {
    transform: scale(0.95);
}

.like-btn.active {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    animation: likePulse 0.5s ease;
}

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

/* Make stream cards clickable */
.live-stream-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.live-stream-card:active {
    transform: scale(0.98);
}

/* iOS Specific Styles */
.app-design.ios {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.ios-header {
    background: rgba(0, 0, 0, 0.4);
}

.ios-status {
    padding-top: 10px;
}

.ios-nav {
    padding: 18px 20px;
}

.ios-content {
    padding: 35px 20px;
}

.finance-app .ios-content {
    padding: 0;
    height: calc(100% - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.finance-app .ios-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.ios-card {
    background: rgba(0, 255, 179, 0.06);
    border: 1px solid rgba(0, 255, 179, 0.15);
}

.ios-card:hover {
    background: rgba(0, 255, 179, 0.1);
    border-color: rgba(0, 255, 179, 0.3);
}

.ios-footer {
    padding-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   Finance App Styles
   ============================================ */

.finance-app {
    overflow-y: auto;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.finance-app::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Custom thin scrollbar for phone screens */
.phone-screen::-webkit-scrollbar {
    width: 3px;
}

.phone-screen::-webkit-scrollbar-track {
    background: transparent;
}

.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 179, 0.3);
    border-radius: 3px;
}

.phone-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 179, 0.5);
}

/* For iPhone specifically */
.phone-frame.iphone .phone-screen::-webkit-scrollbar {
    width: 2px;
}

.phone-frame.iphone .phone-screen::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 179, 0.2);
}

.finance-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.finance-tabs {
    display: flex;
    gap: 15px;
}

.finance-tab {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.finance-tab.active {
    background: rgba(0, 255, 179, 0.2);
    color: var(--primary-green);
    border: 1px solid rgba(0, 255, 179, 0.3);
}

.finance-content {
    display: none;
    padding: 15px 20px 100px;
    min-height: calc(100% - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.finance-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.finance-content.active {
    display: block;
}

.finance-summary {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 255, 179, 0.08);
    border: 1px solid rgba(0, 255, 179, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

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

.summary-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    color: var(--text-white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.summary-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.summary-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.summary-change.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.finance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 179, 0.06);
    border: 1px solid rgba(0, 255, 179, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.finance-item:nth-child(1) { animation-delay: 0.1s; }
.finance-item:nth-child(2) { animation-delay: 0.2s; }
.finance-item:nth-child(3) { animation-delay: 0.3s; }
.finance-item:nth-child(4) { animation-delay: 0.4s; }
.finance-item:nth-child(5) { animation-delay: 0.5s; }
.finance-item:nth-child(6) { animation-delay: 0.6s; }

.finance-item:hover {
    background: rgba(0, 255, 179, 0.1);
    border-color: rgba(0, 255, 179, 0.3);
    transform: translateX(5px);
}

.finance-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 179, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 179, 0.3);
}

.finance-info {
    flex: 1;
    min-width: 0;
}

.finance-name {
    color: var(--text-white);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.finance-symbol {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
}

.finance-price {
    text-align: right;
    flex-shrink: 0;
}

.price-value {
    color: var(--text-white);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.price-value.updating {
    animation: pricePulse 0.5s ease;
}

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

.price-change {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.price-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.price-change.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.price-change.updating {
    animation: changeFlash 0.5s ease;
}

@keyframes changeFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Price update animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Services Section
   ============================================ */

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio {
    background: var(--bg-dark);
}

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

.portfolio-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.portfolio-image {
    height: 300px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.portfolio-overlay p {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-green-light);
    transform: translateX(5px);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    color: var(--text-white);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-green);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-black);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 179, 0.1);
    background: var(--bg-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

/* Form Success/Error Messages */
.form-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
    position: relative;
}

.form-message-success {
    background: rgba(0, 255, 179, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.form-message-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--accent-coral);
    color: var(--accent-coral);
}

.form-message .message-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.form-message .message-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message .message-close:hover {
    opacity: 1;
}

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

/* RTL Support for Messages */
[dir="rtl"] .form-message .message-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-message .message-close {
    margin-left: 0;
    margin-right: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-gray);
    margin: 1rem 0 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.social-link:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-lang-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-lang-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-lang-link.active {
    color: var(--primary-green);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-gray);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below: 968px */
@media (max-width: 968px) {
    .nav-container {
        gap: 1rem;
        flex-wrap: nowrap;
        min-width: 0;
    }
    
    .logo {
        flex-shrink: 0;
        min-width: 0;
        white-space: nowrap;
        max-width: 200px;
    }
    
    .logo-link {
        flex-shrink: 0;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
    }
    
    .logo-img {
        height: 35px;
        flex-shrink: 0;
        width: auto;
    }
    
    .logo-text {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-actions {
        flex-shrink: 0;
    }
    
    .back-arrow {
        width: 36px;
        height: 36px;
    }
    
    .back-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* Hide desktop menu, show hamburger */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column !important;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 999;
        gap: 0 !important;
        display: none !important;
        flex-wrap: nowrap !important;
        visibility: hidden !important;
    }

    .nav-menu.active {
        left: 0;
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Ensure RTL menu is also hidden by default */
    [dir="rtl"] .nav-menu {
        display: none !important;
        visibility: hidden !important;
    }
    
    [dir="rtl"] .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        flex: none !important;
        flex-direction: column !important;
        float: none !important;
        clear: both !important;
    }
    
    .nav-menu li a {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
    
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px !important;
        text-align: center;
        color: var(--text-gray) !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-green) !important;
        background: rgba(0, 255, 179, 0.05);
    }
    
    /* Ensure language dropdown is visible in mobile menu */
    .nav-menu .nav-dropdown {
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .nav-menu .nav-dropdown li {
        width: 100% !important;
        display: block !important;
        flex: none !important;
    }
    
    .nav-menu .nav-dropdown .dropdown-toggle {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-menu .nav-dropdown .dropdown-toggle:hover {
        background: rgba(0, 255, 179, 0.05);
    }
    
    .nav-menu .nav-dropdown.active .dropdown-toggle {
        color: var(--primary-green) !important;
        background: rgba(0, 255, 179, 0.1);
    }
    
    .nav-menu .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        width: 100% !important;
        margin: 0 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        border: none !important;
        border-top: 1px solid rgba(0, 255, 179, 0.2) !important;
        border-bottom: 1px solid rgba(0, 255, 179, 0.2) !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-radius: 0 !important;
        z-index: 1001 !important;
        flex-direction: column !important;
        list-style: none !important;
    }
    
    .nav-menu .dropdown-menu li {
        width: 100% !important;
        display: block !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
    }
    
    .nav-menu .dropdown-menu li a {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
    
    .nav-menu .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .nav-menu .dropdown-item {
        padding: 14px 20px !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        color: var(--text-gray) !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        border-bottom-style: solid !important;
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }
    
    .nav-menu .dropdown-menu li {
        width: 100% !important;
        display: block !important;
        flex: none !important;
    }
    
    .nav-menu .dropdown-item:link,
    .nav-menu .dropdown-item:visited,
    .nav-menu .dropdown-item:active {
        color: var(--text-gray) !important;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .nav-menu .dropdown-item:hover,
    .nav-menu .dropdown-item:active {
        background: rgba(0, 255, 179, 0.1) !important;
        color: var(--primary-green) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
    }
    
    .nav-menu .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    /* Fix TechRam logo text underline on mobile */
    .logo-link,
    .logo-link:link,
    .logo-link:visited,
    .logo-link:hover,
    .logo-link:active,
    .logo-link:focus {
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        border-bottom: none !important;
        text-decoration-line: none !important;
        text-decoration-color: transparent !important;
        text-underline-offset: 0 !important;
        text-decoration-thickness: 0 !important;
    }
    
    .logo-text {
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        border-bottom: none !important;
        text-decoration-line: none !important;
        text-decoration-color: transparent !important;
        text-underline-offset: 0 !important;
        text-decoration-thickness: 0 !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }
    
    .lang-selector-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .lang-current {
        display: none; /* Hide language name on mobile */
    }
    
    .lang-menu {
        min-width: 220px;
        right: 0;
        max-height: 300px;
        top: calc(100% + 8px);
        padding: 6px;
    }
    
    [dir="rtl"] .lang-menu {
        left: 0;
        right: auto;
    }
    
    .lang-menu-item {
        padding: 12px 16px;
        font-size: 0.9rem;
        gap: 10px;
    }

    /* Hide desktop menu, show hamburger */
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    /* Ensure menu is hidden on page load for RTL languages too */
    [dir="rtl"] .nav-menu {
        display: none !important;
    }
    
    [dir="rtl"] .nav-menu.active {
        display: flex !important;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        padding: 5px;
        position: relative;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-green);
        transition: all 0.3s ease;
        display: block;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .phones-container {
        flex-direction: column;
        gap: 3rem;
    }

    .phone-frame.samsung,
    .phone-frame.iphone {
        width: 280px;
        height: 600px;
    }

    .phone-frame.samsung .camera-module {
        width: 20px;
        height: 20px;
        top: 12px;
    }

    .phone-frame.samsung .camera-module::before {
        width: 15px;
        height: 15px;
    }

    .phone-frame.samsung .camera-module::after {
        width: 7px;
        height: 7px;
    }

    .phone-frame.iphone .dynamic-island {
        width: 95px;
        height: 24px;
        top: 15px;
    }

    .phone-frame.samsung .status-bar {
        padding-top: 38px;
    }

    .phone-frame.iphone .status-bar {
        padding-top: 45px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        padding: 1.5rem;
    }

    .card-1,
    .card-2,
    .card-3 {
        position: relative;
        margin-bottom: 1rem;
    }

    .hero-visual {
        height: auto;
    }

    .phones-container {
        gap: 2rem;
    }

    .phone-frame.samsung,
    .phone-frame.iphone {
        width: 260px;
        height: 560px;
    }

    .phone-frame {
        padding: 8px;
    }

    .phone-frame.samsung .camera-module {
        width: 18px;
        height: 18px;
        top: 10px;
    }

    .phone-frame.samsung .camera-module::before {
        width: 13px;
        height: 13px;
    }

    .phone-frame.samsung .camera-module::after {
        width: 6px;
        height: 6px;
    }

    .phone-frame.iphone .dynamic-island {
        width: 85px;
        height: 22px;
        top: 12px;
    }

    .phone-frame.samsung .status-bar {
        padding-top: 35px;
    }

    .phone-frame.iphone .status-bar {
        padding-top: 40px;
    }

    .phone-screen {
        border-radius: 30px;
    }

    .app-content {
        padding: 20px 15px;
        gap: 15px;
    }

    .glass-card {
        padding: 20px;
    }

    .card-icon {
        font-size: 2rem;
    }
}

/* ============================================
   Animations & Effects
   ============================================ */

.fade-in {
    animation: fadeInUp 0.8s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Full Screen Modal Responsive */
@media (max-width: 768px) {
    .comments-container {
        width: 220px;
        right: 10px;
        bottom: 90px;
    }

    .comment-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .stream-controls {
        right: 10px;
        bottom: 15px;
    }

    .stream-control-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .stream-header {
        padding: 12px 15px;
    }

    .stream-header-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stream-header-name {
        font-size: 14px;
    }

    .stream-header-title {
        font-size: 12px;
    }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   Comprehensive Mobile Responsive Design
   ============================================ */

/* Mobile Breakpoint: 768px and below */
@media (max-width: 768px) {
    /* Base Typography Scaling */
    html {
        font-size: 15px; /* Slightly larger for better readability */
    }

    body {
        font-size: 1rem;
        line-height: 1.7; /* Better line height for readability */
        -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
        text-size-adjust: 100%;
    }
    
    /* Improve text rendering on mobile */
    p, span, div, li, a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Container and Spacing */
    .container {
        padding: 0 15px;
    }

    /* Section Padding */
    section {
        padding: 60px 0 !important;
    }

    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* Improve all text elements */
    p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 60px !important;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: auto;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-title .title-line {
        display: block;
        margin-bottom: 0.5rem;
    }

    .hero-title .title-line.highlight {
        font-size: 1.35em !important;
        font-weight: 900 !important;
        transform: scale(1.05);
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-text {
        order: 2;
    }

    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        order: 1;
    }

    .about-item {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .about-item h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    .about-item p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .about-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.75rem;
        /* Maintain desktop transition speed on mobile */
        transition: all 0.3s ease !important;
        margin-bottom: 1.5rem;
    }
    
    .service-card::before {
        /* Maintain desktop transition speed on mobile */
        transition: transform 0.3s ease !important;
    }

    .service-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .service-card .service-features {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .service-card .service-features li {
        padding-left: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    /* Portfolio Grid Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .portfolio-item {
        border-radius: 16px;
        /* Maintain desktop transition speed on mobile */
        transition: all 0.3s ease !important;
    }

    .portfolio-image {
        height: 250px;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-info h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }
    
    .portfolio-info p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .portfolio-overlay {
        padding: 1.5rem;
    }

    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }

    .portfolio-overlay p {
        font-size: 0.9rem;
    }

    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1.75rem;
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .contact-item h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .contact-item p {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
    }

    /* Form Elements Mobile - Enhanced */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        display: block;
        font-weight: 600;
        color: var(--text-white);
        line-height: 1.5;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px; /* Larger touch target */
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
        min-height: 48px; /* Touch-friendly minimum height */
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(0, 255, 179, 0.15);
    }

    .form-group textarea {
        min-height: 140px;
        resize: vertical;
        line-height: 1.6;
    }
    
    .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FFB3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
    }

    /* Buttons Mobile - Enhanced */
    .btn {
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 52px; /* Larger touch target */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        line-height: 1.5;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 255, 179, 0.2);
        transition: all 0.3s ease;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Ensure buttons are readable */
    .btn-primary {
        color: var(--primary-black);
    }
    
    .btn-secondary {
        color: var(--primary-green);
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .footer-column {
        margin-bottom: 1.5rem;
    }

    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .footer-column ul {
        gap: 0.75rem;
    }

    .footer-column a {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0.5rem 0;
        display: block;
    }
    
    .footer-column li {
        margin-bottom: 0.5rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Floating Cards Mobile */
    .floating-card {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    /* Code Snippets Mobile - Reduce visibility */
    .code-snippet {
        font-size: 0.7rem;
        opacity: 0.3;
    }

    .tech-icon {
        font-size: 30px;
        opacity: 0.1;
    }

    /* Scroll Indicator Mobile */
    .scroll-indicator {
        display: none;
    }

    /* Navbar Mobile Enhancements */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    /* Blog Grid Mobile */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 2rem !important;
    }

    .blog-section {
        padding: 80px 0 60px !important;
    }

    .blog-card {
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .blog-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    .blog-card h3 a {
        font-size: inherit;
        line-height: inherit;
        word-wrap: break-word;
    }

    .blog-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .blog-card .blog-meta {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .blog-image {
        height: 180px !important;
    }

    /* Touch-friendly elements */
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(0, 255, 179, 0.2);
        min-height: 44px; /* Minimum touch target size */
    }
    
    /* Links and interactive elements */
    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Image optimization */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Better spacing for mobile */
    .section-header {
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    /* Widget improvements */
    .floating-card {
        font-size: 0.9rem;
        padding: 1.25rem;
        line-height: 1.5;
    }
    
    .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Stats and numbers */
    .stat-number {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Ensure all text containers are readable */
    .container {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Improve list readability */
    ul, ol {
        padding-left: 1.5rem;
        line-height: 1.7;
    }
    
    li {
        margin-bottom: 0.5rem;
        line-height: 1.7;
    }
}

/* Tablet Breakpoint: 769px to 968px */
@media (min-width: 769px) and (max-width: 968px) {
    .container {
        padding: 0 30px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Slightly larger for better readability */
    }

    .container {
        padding: 0 15px; /* More padding for better spacing */
    }

    section {
        padding: 50px 0 !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    .hero-title .title-line.highlight {
        font-size: 1.3em !important;
        font-weight: 900 !important;
        transform: scale(1.03);
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }

    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .service-card,
    .portfolio-item,
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-card h3,
    .portfolio-info h3 {
        font-size: 1.2rem;
    }
    
    .service-card p,
    .portfolio-info p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Improve text readability on small screens */
    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

/* ============================================
   Floating Language Selector
   ============================================ */

.floating-lang-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

.floating-lang-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.2) 0%, rgba(0, 204, 143, 0.2) 100%);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 24px rgba(0, 255, 179, 0.2),
        0 0 0 0 rgba(0, 255, 179, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.floating-lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.3) 0%, rgba(0, 204, 143, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.floating-lang-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(0, 255, 179, 0.4),
        0 0 0 8px rgba(0, 255, 179, 0.1);
    border-color: var(--primary-green-light);
}

.floating-lang-btn:hover::before {
    opacity: 1;
}

.floating-lang-btn:active {
    transform: scale(0.95);
}

.lang-globe-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-green);
    filter: drop-shadow(0 0 4px rgba(0, 255, 179, 0.5));
    transition: all 0.3s ease;
}

.floating-lang-btn:hover .lang-globe-icon {
    filter: drop-shadow(0 0 8px rgba(0, 255, 179, 0.8));
    transform: rotate(15deg);
}

.current-lang-code {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-green);
    text-shadow: 0 0 8px rgba(0, 255, 179, 0.5);
    letter-spacing: 1px;
}

.floating-lang-menu {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 280px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 179, 0.3);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 255, 179, 0.2),
        0 0 40px rgba(0, 255, 179, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
    max-height: 0;
}

.floating-lang-selector.active .floating-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
    max-height: 500px;
}

.lang-menu-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 255, 179, 0.2);
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.lang-menu-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.lang-menu-items::-webkit-scrollbar {
    width: 6px;
}

.lang-menu-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.lang-menu-items::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
    opacity: 0.5;
}

.lang-menu-items::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

.lang-menu-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.lang-menu-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.5);
}

.lang-menu-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.1) 0%, rgba(0, 204, 143, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.lang-menu-option:hover {
    color: var(--primary-green);
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.15) 0%, rgba(0, 204, 143, 0.15) 100%);
    border-color: rgba(0, 255, 179, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 255, 179, 0.2);
}

.lang-menu-option:hover::before,
.lang-menu-option:hover::after {
    opacity: 1;
}

.lang-menu-option.active {
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.2) 0%, rgba(0, 204, 143, 0.2) 100%);
    color: var(--primary-green);
    border-color: rgba(0, 255, 179, 0.4);
    font-weight: 600;
    box-shadow: 
        0 4px 12px rgba(0, 255, 179, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: activePulse 2s ease-in-out infinite;
}

.lang-menu-option.active::before,
.lang-menu-option.active::after {
    opacity: 1;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 255, 179, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 16px rgba(0, 255, 179, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 20px rgba(0, 255, 179, 0.2);
    }
}

.lang-name {
    flex: 1;
}

.lang-code {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-green);
}

.lang-menu-option.active .lang-code {
    opacity: 1;
}

[dir="rtl"] .floating-lang-selector {
    right: auto;
    left: 30px;
}

[dir="rtl"] .floating-lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-menu-option:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .lang-menu-option::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-lang-selector {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-lang-btn {
        width: 56px;
        height: 56px;
    }
    
    .floating-lang-menu {
        width: 260px;
        right: 0;
    }
    
    [dir="rtl"] .floating-lang-selector {
        left: 20px;
    }
}

/* ============================================
   RTL (Right-to-Left) Support for Arabic
   ============================================ */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .container,
[dir="rtl"] .section-header,
[dir="rtl"] .hero-content,
[dir="rtl"] .about-content,
[dir="rtl"] .contact-content,
[dir="rtl"] .footer-content {
    direction: rtl;
}

/* Navigation RTL */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

/* Override RTL for mobile menu - keep vertical layout */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    
    [dir="rtl"] .nav-menu li {
        width: 100% !important;
        display: block !important;
        flex: none !important;
        float: none !important;
        clear: both !important;
    }
    
    [dir="rtl"] .nav-menu .nav-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
    }
    
    [dir="rtl"] .nav-menu .nav-dropdown {
        width: 100% !important;
        display: block !important;
        flex-direction: column !important;
    }
    
    [dir="rtl"] .nav-menu .nav-dropdown .dropdown-toggle {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-menu {
        width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        position: static !important;
    }
    
    [dir="rtl"] .nav-menu .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-menu li {
        width: 100% !important;
        display: block !important;
        flex: none !important;
        float: none !important;
        clear: both !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-item {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        float: none !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-item:hover {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-item::before {
        left: 0 !important;
        right: auto !important;
    }
    
    /* Ensure text alignment is centered for mobile RTL menu */
    [dir="rtl"] .nav-menu {
        text-align: center !important;
    }
    
    [dir="rtl"] .nav-menu .nav-link {
        text-align: center !important;
    }
    
    [dir="rtl"] .nav-menu .dropdown-item {
        text-align: center !important;
    }
    
    [dir="rtl"] .nav-menu .nav-dropdown .dropdown-toggle {
        text-align: center !important;
    }
}

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

[dir="rtl"] .dropdown-item:hover {
    padding-left: 20px;
    padding-right: 25px;
}

[dir="rtl"] .dropdown-item::before {
    left: auto;
    right: 0;
}

/* Override RTL dropdown positioning for mobile - keep static position like other languages */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu .dropdown-menu {
        right: auto !important;
        left: auto !important;
        position: static !important;
    }
}

/* Hero Section RTL */
[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

/* About Section RTL */
[dir="rtl"] .about-text {
    text-align: right;
}

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

/* Services Section RTL */
[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .service-features {
    text-align: right;
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .service-features li::before {
    left: auto;
    right: -15px;
}

/* Contact Section RTL */
[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

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

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

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-brand {
    text-align: right;
}

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

[dir="rtl"] .footer-column {
    text-align: right;
}

[dir="rtl"] .footer-column ul {
    text-align: right;
}

[dir="rtl"] .footer-bottom {
    text-align: right;
}

/* Portfolio RTL */
[dir="rtl"] .portfolio-grid {
    direction: rtl;
}

/* Mobile Showcase RTL */
[dir="rtl"] .phones-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .phone-label {
    text-align: center;
}

/* Stats RTL */
[dir="rtl"] .stat-label {
    text-align: center;
}

/* Buttons RTL */
[dir="rtl"] .btn {
    text-align: center;
}

/* Social Links RTL */
[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* Section Headers RTL */
[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .section-tag {
    text-align: right;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .section-description {
    text-align: right;
}

/* Floating Cards RTL */
[dir="rtl"] .floating-card {
    text-align: center;
}

/* Dropdown Arrow RTL */
[dir="rtl"] .dropdown-arrow {
    margin-left: 0;
    margin-right: 5px;
    transform: scaleX(-1);
}

[dir="rtl"] .nav-dropdown.active .dropdown-arrow {
    transform: scaleX(-1) rotate(180deg);
}

/* Hamburger Menu RTL */
[dir="rtl"] .hamburger {
    order: -1;
}

/* Ensure proper text alignment for mixed content */
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    text-align: right;
}

/* Input and textarea placeholders RTL */
[dir="rtl"] input::placeholder,
[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* Mobile Responsive RTL */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        text-align: right;
    }
    
    [dir="rtl"] .hero-text {
        text-align: right;
    }
    
    [dir="rtl"] .about-text {
        text-align: right;
    }
    
    [dir="rtl"] .contact-info {
        text-align: right;
    }
    
    [dir="rtl"] .contact-form {
        text-align: right;
    }
}

/* ============================================
   Mobile Performance & Touch Optimizations
   ============================================ */

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    /* Improve image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Touch-friendly button sizes (minimum 44x44px for mobile) */
@media (max-width: 768px) {
    button,
    .btn,
    a.btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        min-width: 44px;
        /* Improve touch target */
        touch-action: manipulation;
    }
    
    /* Prevent double-tap zoom on buttons */
    button,
    .btn,
    a.btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 179, 0.2);
    }
    
    /* Optimize scrolling performance */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Keep desktop animation speeds on mobile - don't reduce */
    /* Loading screen and card animations should match desktop */
}

/* Optimize video loading */
video {
    max-width: 100%;
    height: auto;
    /* Improve video rendering */
    object-fit: cover;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevent layout shift for images */
img {
    display: block;
}

/* Font loading is handled via Google Fonts link in HTML */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* RTL Footer and Dropdown Styles */
[dir="rtl"] .footer-content {
    text-align: right;
}

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


