/* ============================================
   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;
}

html {
    scroll-behavior: smooth;
}

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;
}

/* 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;
}

/* ============================================
   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;
}

.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: 2rem;
    width: 100%;
}

.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;
}

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

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

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

/* ============================================
   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: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.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 {
    color: var(--primary-green);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

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

/* ============================================
   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;
}

.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;
}

.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%;
}

/* ============================================
   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
   ============================================ */

@media (max-width: 968px) {
    .back-arrow {
        width: 36px;
        height: 36px;
    }
    
    .back-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .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;
    }

    .hamburger {
        display: flex;
    }

    .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;
    }
}

/* ============================================
   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;
}

[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;
}

/* 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;
    }
    
    [dir="rtl"] .footer-content {
        text-align: right;
    }
    
    [dir="rtl"] .dropdown-menu {
        right: auto;
        left: 0;
    }
}


