:root {
    /* Dark theme (default) */
    --primary-color: #ffffff;
    --secondary-color: #808080;
    --background-dark: #000000;
    --background-light: #111111;
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --card-bg: #1a1a1a;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition-slow: 0.5s ease;
    --transition-fast: 0.3s ease;
    --rfid-wave-color: rgba(255, 255, 255, 0.3);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --hover-bg: rgba(30, 30, 30, 0.9);
    --hover-border: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    --primary-color: #000000;
    --secondary-color: #333333;
    --background-dark: #ffffff;
    --background-light: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #333333;
    --card-bg: #ffffff;
    --rfid-wave-color: rgba(0, 0, 0, 0.3);
    --card-border: rgba(0, 0, 0, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --hover-bg: #f5f5f5;
    --hover-border: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Language and Theme Toggle Buttons */
.language-switch, .theme-toggle {
    position: fixed;
    top: 20px;
    z-index: 1001;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.language-switch {
    right: 20px;
}

.theme-toggle {
    right: 100px;
}

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

html[dir="rtl"] .theme-toggle {
    right: auto;
    left: 100px;
}

.language-switch:hover, .theme-toggle:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--card-shadow);
}

.language-switch i, .theme-toggle i {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Theme Toggle Button Specific Styles */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
}

.theme-btn:hover {
    transform: none;
}

.theme-btn i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .language-switch, .theme-toggle {
        top: 15px;
    }

    .language-switch {
        right: 70px;
    }

    .theme-toggle {
        right: 15px;
    }

    html[dir="rtl"] .language-switch {
        right: auto;
        left: 70px;
    }

    html[dir="rtl"] .theme-toggle {
        right: auto;
        left: 15px;
    }
}

@media (max-width: 576px) {
    .language-switch span, .theme-toggle span {
        display: none;
    }

    .language-switch, .theme-toggle {
        padding: 8px;
    }

    .language-switch {
        right: 60px;
    }

    html[dir="rtl"] .language-switch {
        right: auto;
        left: 60px;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--card-border);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo i {
    color: var(--text-primary);
    font-size: 2rem;
}

/* Force black color in light mode */
html[data-theme="light"] .logo,
html[data-theme="light"] .logo i {
    color: #000000 !important;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

[data-theme="light"] .logo-image {
    filter: brightness(0) invert(0);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    font-size: 1rem;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1003;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft var(--transition-slow);
    padding: 0 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInRight var(--transition-slow);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 40%;
    animation: float 7s ease-in-out infinite;
}

/* Background Waves */
.background-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: bgWave 10s linear infinite;
}

.bg-wave:nth-child(1) {
    bottom: 0;
    opacity: 0.3;
    animation-delay: 0s;
}

.bg-wave:nth-child(2) {
    bottom: 20%;
    opacity: 0.2;
    animation-delay: -2s;
}

.bg-wave:nth-child(3) {
    bottom: 40%;
    opacity: 0.1;
    animation-delay: -4s;
}

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

/* Replace Countdown with Loading Counter */
.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.loading-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
}

.loading-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
    animation: fadeIn 1s ease;
    margin-bottom: 10px;
    position: relative;
    display: block;
    width: 100%;
}

.loading-line {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--primary-color);
    border-radius: 3px;
    animation: loadingProgress 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary-color);
}

.loading-percentage {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    animation: fadeIn 1s ease;
}

@keyframes loadingProgress {
    0% {
        left: -30%;
        width: 30%;
    }
    50% {
        left: 50%;
        width: 30%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background-light);
    position: relative;
    z-index: 1;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition-fast);
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.feature-details {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.feature-card:hover .tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
}

/* RFID Tech Section */
.rfid-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    background: var(--background-light);
}

.tech-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition-fast);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tech-card p {
    color: var(--text-secondary);
}

/* Contact/Stay Updated Section */
.contact {
    padding: 100px 0;
    text-align: center;
    background: var(--background-dark);
    position: relative;
    z-index: 1;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.input-group {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: var(--transition-fast);
}

.input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.contact-form input[type="email"] {
    flex: 1;
    background: var(--card-bg);
    border: none;
    padding: 15px 25px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.contact-form input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.contact-form button {
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    min-height: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* RTL Support for form */
html[dir="rtl"] .input-group {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fa-spinner {
    margin-right: 0;
    margin-left: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 1002;
    transition: var(--transition-slow);
    padding: 80px 20px;
    border-left: 1px solid var(--card-border);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-align: center;
}

.mobile-menu-content a:hover {
    background: var(--background-light);
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
        border-color: rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 80px 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .rfid-animation {
        width: 280px;
        height: 280px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        margin-top: 40px;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--primary-color);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        animation: fadeInUp 1s ease;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .loading-container {
        max-width: 400px;
    }

    .loading-text {
        font-size: 1.3rem;
    }

    .loading-line {
        height: 5px;
    }

    .loading-percentage {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-card {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
    }

    .contact-form input[type="email"] {
        background: var(--card-bg);
        border-radius: 50px;
        border: 1px solid var(--card-border);
    }

    .contact-form button {
        width: 100%;
    }

    .rfid-animation {
        width: 250px;
        height: 250px;
    }

    .wave-1 { width: 80px; height: 80px; }
    .wave-2 { width: 160px; height: 160px; }
    .wave-3 { width: 240px; height: 240px; }
    .wave-4 { width: 320px; height: 320px; }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero h1 {
        margin-top: 40px;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--primary-color);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        animation: fadeInUp 1s ease;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .loading-container {
        max-width: 300px;
    }

    .loading-text {
        font-size: 1.1rem;
    }

    .loading-line {
        height: 4px;
    }

    .loading-percentage {
        font-size: 1rem;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .rfid-animation {
        width: 200px;
        height: 200px;
    }

    .rfid-tag {
        width: 70px;
        height: 70px;
    }

    .floating-tag {
        width: 45px;
        height: 45px;
    }

    .floating-tag i {
        font-size: 1.2rem;
    }

    .wave-1 { width: 60px; height: 60px; }
    .wave-2 { width: 120px; height: 120px; }
    .wave-3 { width: 180px; height: 180px; }
    .wave-4 { width: 240px; height: 240px; }

    .mobile-menu {
        width: 85%;
    }

    .mobile-menu-content a {
        font-size: 1.1rem;
        padding: 10px 12px;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        margin-top: 40px;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--primary-color);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        animation: fadeInUp 1s ease;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .loading-container {
        max-width: 250px;
    }

    .loading-text {
        font-size: 1rem;
    }

    .loading-line {
        height: 3px;
    }

    .loading-percentage {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .rfid-animation {
        width: 180px;
        height: 180px;
    }

    .rfid-tag {
        width: 50px;
        height: 50px;
    }

    .floating-tag {
        width: 35px;
        height: 35px;
    }

    .floating-tag i {
        font-size: 1rem;
    }

    .mobile-menu {
        width: 90%;
    }

    .mobile-menu-content a {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

/* RTL Responsive Adjustments */
html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .logo {
    letter-spacing: 0;
}

html[dir="rtl"] .hero-content {
    animation: fadeInRight var(--transition-slow);
}

html[dir="rtl"] .hero-image {
    animation: fadeInLeft var(--transition-slow);
}

/* Hero Section */
.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s backwards;
    line-height: 1.4;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.primary-btn, .secondary-btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    border: none;
    color: var(--background-dark);
}

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

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: var(--background-light);
    padding: 40px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

footer p {
    color: var(--text-secondary);
}

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

/* RFID Animation */
.rfid-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Main Tag */
.rfid-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: none !important;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 0;
    transition: all 0.3s ease;
}

.main-tag {
    background: none !important;
    backdrop-filter: none;
}

.rfid-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    animation: iconPulse 2s infinite;
    display: block;
    padding: 0;
    margin: 0;
    opacity: 1;
    background: none !important;
    position: relative;
    z-index: 3;
}

/* Floating Tags */
.floating-tags {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-tag {
    width: 60px;
    height: 60px;
    animation: floatTag 4s infinite;
    animation-delay: var(--delay);
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    background: transparent;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.floating-tag i {
    font-size: 1.8rem;
    color: var(--text-primary);
    animation: iconPulse 2s infinite;
    transition: all 0.3s ease;
}

/* Modern floating tag colors */
.floating-tag:nth-child(1) i {
    color: #00E5FF;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.floating-tag:nth-child(2) i {
    color: #7C4DFF;
    text-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
}

.floating-tag:nth-child(3) i {
    color: #FF4081;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

.floating-tag:nth-child(4) i {
    color: #00E676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* Dark mode adjustments with enhanced glow */
[data-theme="dark"] .floating-tag:nth-child(1) i {
    color: #00E5FF;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

[data-theme="dark"] .floating-tag:nth-child(2) i {
    color: #7C4DFF;
    text-shadow: 0 0 15px rgba(124, 77, 255, 0.7);
}

[data-theme="dark"] .floating-tag:nth-child(3) i {
    color: #FF4081;
    text-shadow: 0 0 15px rgba(255, 64, 129, 0.7);
}

[data-theme="dark"] .floating-tag:nth-child(4) i {
    color: #00E676;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.7);
}

/* Add hover effects */
.floating-tag:hover i {
    transform: scale(1.1);
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

/* Scanner Effect */
.scanner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    top: 0;
    left: 0;
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.scanner-glow {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0) 100%);
    top: 0;
    left: 0;
    animation: scan 3s linear infinite;
    filter: blur(5px);
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.connection-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: var(--primary-color);
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--angle));
    animation: connectPulse 2s infinite;
    opacity: 0.5;
}

/* Data Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: particleFloat 2s infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

/* Enhanced Waves */
.rfid-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.wave {
    position: absolute;
    border: 2px solid var(--rfid-wave-color);
    border-radius: 50%;
    animation: wave 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.wave-1 { width: 100px; height: 100px; animation-delay: 0s; }
.wave-2 { width: 200px; height: 200px; animation-delay: 0.5s; }
.wave-3 { width: 300px; height: 300px; animation-delay: 1s; }
.wave-4 { width: 400px; height: 400px; animation-delay: 1.5s; }

/* Animations */
@keyframes floatTag {
    0%, 100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    }
    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 20px));
    }
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

@keyframes connectPulse {
    0%, 100% {
        opacity: 0.5;
        height: 100px;
    }
    50% {
        opacity: 0.8;
        height: 120px;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(-50% + (cos(var(--angle)) * 100px)),
            calc(-50% + (sin(var(--angle)) * 100px))
        ) scale(1);
        opacity: 0;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tech Background Animation */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--background-dark);
}

/* Matrix Code Rain */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.matrix-column {
    position: absolute;
    top: -100%;
    width: 20px;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
    animation: matrixRain 8s linear infinite;
}

/* Tech Grid */
.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

/* Tech Particles */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

/* Tech Lines */
.tech-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 1px;
    opacity: 0.1;
    animation: moveLine 8s infinite linear;
}

/* Circuit Pattern */
.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.1;
    animation: circuitPulse 10s ease-in-out infinite;
}

/* Binary Code */
.binary-code {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    font-family: monospace;
    font-size: 12px;
    color: var(--primary-color);
    animation: binaryFloat 20s linear infinite;
}

/* Animations */
@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-100px) translateX(100px) rotate(90deg);
    }
    50% {
        transform: translateY(-200px) translateX(0) rotate(180deg);
    }
    75% {
        transform: translateY(-100px) translateX(-100px) rotate(270deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

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

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

@keyframes binaryFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background-light);
    position: relative;
    z-index: 1;
}

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

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.about-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: var(--transition-slow);
}

html[dir="rtl"] .about-card::before {
    transform: translateX(100%);
}

.about-card:hover::before {
    transform: translateX(100%);
}

html[dir="rtl"] .about-card:hover::before {
    transform: translateX(-100%);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.about-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: auto;
}

/* RTL Support */
html[dir="rtl"] .about-card {
    text-align: center;
}

html[dir="rtl"] .about-card h3,
html[dir="rtl"] .about-card p {
    letter-spacing: 0;
}

/* Responsive About Section */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 40px 0;
    }

    .about h2 {
        font-size: 1.8rem;
    }

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

    .about-card {
        padding: 20px;
    }

    .about-icon {
        width: 60px;
        height: 60px;
    }

    .about-icon i {
        font-size: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }
}

/* Sectors We Work With Section */
.sectors {
    padding: 120px 0;
    background: var(--background-dark);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.sectors h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--card-shadow);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.sectors-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.sectors-grid {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollSectors 30s linear infinite;
    will-change: transform;
}

html[dir="rtl"] .sectors-grid {
    animation: scrollSectors 30s linear infinite;
}

@keyframes scrollSectors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 6 - 40px * 6));
    }
}

.sector-card {
    flex: 0 0 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 40px var(--card-shadow);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
    height: 380px;
    justify-content: center;
    text-align: center;
}

.sector-card i {
    font-size: 3.5rem;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    padding: 30px;
    color: var(--text-primary);
}

.sector-card span {
    margin-top: 20px;
    font-size: 1.6rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

.sector-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px var(--card-shadow);
    background: var(--hover-bg);
    border-color: var(--hover-border);
}

.sector-card:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.3);
    background: var(--background-light);
}

/* Enhanced sector-specific styles */
.sector-gov i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

.sector-health i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

.sector-retail i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

.sector-edu i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

.sector-finance i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

.sector-logistics i { 
    color: var(--text-primary);
    box-shadow: 0 0 40px var(--card-shadow);
}

/* Responsive adjustments */
@media (max-width: 1800px) {
    .sector-card {
        flex: 0 0 350px;
        height: 340px;
        padding: 40px 30px;
    }
    
    @keyframes scrollSectors {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-350px * 6 - 40px * 6)); }
    }
}

@media (max-width: 1400px) {
    .sector-card {
        flex: 0 0 300px;
        height: 300px;
        padding: 35px 25px;
    }
    
    @keyframes scrollSectors {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * 6 - 40px * 6)); }
    }
}

@media (max-width: 768px) {
    .sector-card {
        flex: 0 0 260px;
        height: 260px;
        padding: 30px 20px;
    }
    
    @keyframes scrollSectors {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-260px * 6 - 40px * 6)); }
    }
}

@media (max-width: 480px) {
    .sector-card {
        flex: 0 0 220px;
        height: 220px;
        padding: 25px 15px;
    }
    
    @keyframes scrollSectors {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-220px * 6 - 40px * 6)); }
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 1001;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

html[dir="rtl"] .theme-toggle {
    right: auto;
    left: 100px;
}

.theme-toggle:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--card-shadow);
}

.theme-toggle i {
    font-size: 1rem;
} 