/* --- المتغيرات والألوان --- */
:root {
    --primary-color: #06b6d4;
    /* سماوي */
    --secondary-color: #3b82f6;
    /* أزرق */
    --accent-color: #8b5cf6;
    /* بنفسجي */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;
    --blob-opacity: 0.1;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --gradient-text: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --radius-lg: 24px;
    --radius-md: 16px;
    --watermark-opacity: 0.03;
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    /* Darker navy for premium feel */
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --card-bg: #1e293b;
    --nav-bg: rgba(11, 17, 32, 0.85);
    --border-color: #334155;
    --blob-opacity: 0.25;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --watermark-opacity: 0.05;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

/* --- Particles Background --- */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* --- Active Nav Link --- */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.text-primary-glow {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

/* --- Text Watermark --- */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(6, 182, 212, 0.03);
    /* Subtle stroke */
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    font-family: sans-serif;
    /* Fallback */
}

/* --- Global Mesh/Gradient Animation --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    filter: blur(40px);
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* --- Watermark Logo --- */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('logo.svg');
    /* Using the logo file */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: var(--watermark-opacity);
    z-index: 0;
    pointer-events: none;
    filter: grayscale(100%);
}

.section {
    position: relative;
    /* Ensure sections can contain the absolute watermark */
    padding: 100px 5%;
}

/* Ensure content is above watermark */
.section>* {
    position: relative;
    z-index: 1;
}

@font-face {
    font-family: 'hanimation';
    src: url('hanimation.ttf') format('truetype');
    font-display: swap;
}

body {
    font-family: 'hanimation';
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
}

/* --- Improved Tilt Transition --- */
.tilt-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease !important;
    /* Overwrite general transition */
    will-change: transform;
    /* Performance hint */
}

/* --- Pulse Animation for CTAs --- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* --- Smoother Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* --- Navbar (Floating Modern Style) --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--card-bg-rgb), 0.85);
    /* Requires RGB variable or fallback */
    background: var(--nav-bg);
    /* Fallback */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Scrolled State (Optional for stickiness) */
nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 1rem 5%;
    max-width: 100%;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
    transition: color 0.3s;
}

.mobile-only {
    display: none;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: right;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: rgba(6, 182, 212, 0.08);
    color: var(--primary-color);
    padding-right: 25px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s, transform 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

.btn-main {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-main:hover {
    background: #0891b2;
    /* A slightly darker shade for hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Hero Section --- */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 5% 80px;
    overflow: hidden;
}

/* Background Blobs */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: var(--blob-opacity);
    border-radius: 50%;
}

.blob-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    animation: float 15s infinite alternate;
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--accent-color);
    animation: float 20s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 60px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-title span {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Section Styles --- */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Ticker / Partners Style --- */
.tech-ticker-wrapper {
    background: var(--bg-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-ticker {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 40px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.3rem;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.tech-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--text-color);
    transform: scale(1.05);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- Process Section (New - Nami Style) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

/* Connecting Line (Desktop) */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color) 50%, transparent 50%);
    background-size: 20px 2px;
    z-index: 0;
    display: none;
}

@media (min-width: 1024px) {
    .process-grid::before {
        display: block;
    }
}

.process-step {
    position: relative;
    z-index: 1;
    background: var(--bg-color);
    /* To cover line behind number */
    padding-top: 20px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Services Grid (Agency Style) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.service-card:hover .service-icon-box {
    background: var(--primary-color);
    color: white;
    transform: rotate(-5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-link {
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

/* --- Portfolio (Modern Grid) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

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

.portfolio-tag {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-item h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Testimonials Section (New) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 25px;
    left: 25px;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    object-fit: cover;
}

.client-details h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Apps Section (Refined) --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.app-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.app-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.store-btn {
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.store-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- Stats (Clean) --- */
.stats-section {
    padding: 80px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Contact --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: inherit;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

/* Custom Select Style */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
    padding-left: 3rem;
    /* Space for arrow */
}

select.form-control option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px;
}

/* --- Footer --- */
footer {
    background: var(--bg-color);
    padding: 80px 5% 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

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

    .blob-1,
    .blob-2 {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }

    /* Resize Logo on Mobile */
    .logo img {
        height: 40px;
    }

    /* Resize Buttons on Mobile */
    .btn-main {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: auto;
        /* Prevent full width if not desired, or keep auto */
    }

    /* Mobile Menu Styles */
    .mobile-only {
        display: block;
    }

    .nav-links a.btn-main {
        color: white !important;
    }

    .nav-actions .btn-main {
        display: none;
        /* Hide top button on mobile */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 20px;
        margin-top: 15px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;

        transform-origin: top center;
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-hover);
        z-index: 1000;
        overflow-y: visible;
    }

    .nav-links.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .dropdown {
        flex-direction: column;
        /* Stack vertically on mobile */
        height: auto;
        width: 100%;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        /* Flow naturally */
        box-shadow: none;
        border: none;
        background: transparent;
        width: 100%;
        text-align: center;
        padding: 0;
        display: none;
        /* Hidden by default, script or hover needed */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        /* Utilize resize/tap behavior for now */
    }

    .dropdown-menu li a {
        text-align: center;
        padding: 10px;
    }

    .dropdown-menu li a:hover {
        background: transparent;
        padding-right: 10px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

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

    .contact-container {
        padding: 30px;
    }

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

    .stats-container {
        gap: 20px;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }
}

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

    .btn-main {
        width: auto;
        min-width: 140px;
        /* Reasonable click area without being full width */
        justify-content: center;
        font-size: 0.85rem;
        /* Slightly smaller text */
    }

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

    .contact-container {
        padding: 20px;
    }
}



/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: transparent;
    border-color: transparent;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    font-family: inherit;
}

.accordion-header i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    padding-bottom: 20px;
    opacity: 1;
}

.page-break {
    color: var(--text-light);
    letter-spacing: 2px;
}

/* --- Typing Effect --- */
.typing-text {
    border-left: 3px solid var(--primary-color);
    padding-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-color);
    }
}

/* --- Features Grid (Why Us) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 25px;
    transition: all 0.5s;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: var(--gradient-text);
    color: white;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;

}

/* --- Futuristic Glass Shapes (Crystals) --- */
.glass-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: floatGlass 12s ease-in-out infinite;
}

.shape-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 12%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 280px;
    height: 280px;
    bottom: 15%;
    left: 8%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 25%;
    left: 20%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    transform: rotate(45deg);
    border-radius: 20px;
    animation: floatRotate 10s ease-in-out infinite alternate;
}

@keyframes floatGlass {
    0% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        transform: translate(20px, -30px) rotate(5deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }

    66% {
        transform: translate(-15px, 20px) rotate(-5deg);
        border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes floatRotate {
    0% {
        transform: translateY(0) rotate(45deg) scale(1);
    }

    100% {
        transform: translateY(-30px) rotate(65deg) scale(1.1);
    }
}

/* --- Fixed Buttons (Restored) --- */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000 !important;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #0891b2;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.whatsapp-float {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* --- 3D Tilt Effect Class --- */
.tilt-card {
    will-change: transform;
    transition: transform 0.1s ease-out !important;
    transform-style: preserve-3d;
}

/* --- Custom Notification Toast --- */
.message-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.message-toast i {
    font-size: 1.2rem;
}

.message-toast.success i {
    color: #10b981;
}

.message-toast.error i {
    color: #ef4444;
}

.message-toast p {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
    font-family: inherit;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: transparent;
    border-radius: 3px;
    overflow: hidden;
}

.toast-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    animation: toastTimer 3s linear forwards;
}

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

    100% {
        transform: translateX(0);
    }
}

/* --- Rotation CAPTCHA --- */
.captcha-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.captcha-label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.rotate-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.rotate-preview img {
    width: 60px;
    height: 60px;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.captcha-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    outline: none;
}

.captcha-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    transition: transform 0.1s;
}

.captcha-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* --- Slide to Submit CAPTCHA --- */
.slide-captcha-container {
    position: relative;
    width: 100%;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.slide-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
    transition: opacity 0.3s;
}

.slide-handle {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    transition: background 0.3s;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.slide-handle i {
    color: #fff;
    font-size: 1.2rem;
}

.slide-handle:active {
    cursor: grabbing;
}

.slide-captcha-container.unlocked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.slide-captcha-container.unlocked .slide-handle {
    background: #10b981;
    left: calc(100% - 50px) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.slide-captcha-container.unlocked .slide-text {
    opacity: 0;
}

/* --- Floating WhatsApp Menu --- */
.whatsapp-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b857;
}

.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.whatsapp-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    border: 1px solid var(--border-color);
}

.whatsapp-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-header {
    background: #25d366;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    gap: 15px;
}

.whatsapp-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.wa-icon-bg {
    width: 40px;
    height: 40px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-label {
    font-size: 0.9rem;
    font-weight: bold;
}

.wa-number {
    font-size: 0.8rem;
    color: var(--text-light);
    direction: ltr;
    margin-top: 2px;
}

/* --- WhatsApp Hint Bubble --- */
.wa-hint-bubble {
    position: absolute;
    bottom: 5px;
    right: 70px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 240px;
    border-left: 4px solid #25d366;
}

.wa-hint-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wa-hint-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.wa-hint-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wa-hint-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

.wa-hint-message {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.wa-hint-close {
    color: #999;
    font-size: 0.8rem;
    padding: 5px;
    transition: color 0.2s;
}

.wa-hint-close:hover {
    color: #f00;
}

/* --- Draggable Cursor Styles --- */
.whatsapp-container {
    cursor: move;
    /* Fallback */
}

.whatsapp-float {
    cursor: grab;
}

.wa-hint-bubble {
    cursor: grab;
}

.whatsapp-container.moving .whatsapp-float,
.whatsapp-container.moving .wa-hint-bubble {
    cursor: grabbing;
}

/* --- Mobile Fix for WhatsApp --- */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 90px;
        right: 30px;
        z-index: 2147483647;
        /* Max Z-Index */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .wa-hint-bubble {
        right: 60px;
        bottom: 0;
        max-width: 250px;
        width: max-content;
        padding: 8px 12px;
        min-width: unset;
    }

    .wa-hint-message {
        white-space: nowrap;
        font-size: 0.8rem;
    }
}

/* --- WhatsApp Close Button --- */
.whatsapp-close-btn {
    position: absolute;
    top: -5px;
    left: 0px;
    width: 20px;
    height: 20px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    z-index: 10002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.whatsapp-close-btn:hover {
    background: #ff4d4d;
    color: white;
    border-color: #ff4d4d;
}

/* --- Mobile Fix for Close Button --- */
@media (max-width: 768px) {
    .whatsapp-close-btn {
        display: none !important;
    }
}

/* --- Contact Quick Tabs --- */
.quick-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tab-chip {
    padding: 12px 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-chip i {
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-chip:hover {
    transform: translateY(-3px);
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.15);
}

.tab-chip:hover i {
    color: var(--primary-color);
    transform: rotate(-10deg);
}

.tab-chip.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 4px 12px rgba(6, 182, 212, 0.2);
}

.tab-chip.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Subtle ripple effect */
.tab-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s;
}

.tab-chip:active::after {
    opacity: 1;
    transform: scale(1.5);
    transition: 0s;

    /* --- Privacy Page Tabs Content --- */
    .privacy-tab-content {
        display: none;
        animation: fadeInSlide 0.5s ease forwards;
    }

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

    @keyframes fadeInSlide {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }