/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #B11226;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #B11226;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #B11226 0%, #7f0c1b 40%, #0b0f19 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #B11226;
    color: white;
}

.btn-primary:hover {
    background: #920e1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(177, 18, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #B11226;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8fafc;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #B11226, #e01a31);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

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

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #B11226;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #B11226;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #f8fafc;
}

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

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text-based portfolio cards */
.text-card {
    display: flex;
    flex-direction: column;
    height: 250px;
}

.portfolio-header {
    background: linear-gradient(135deg, #B11226, #e01a31);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    font-size: 2rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.portfolio-content {
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.portfolio-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}



/* Legacy overlay styles for fallback */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio-overlay a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.portfolio-overlay a:hover {
    background: white;
    color: #B11226;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #B11226;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B11226;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #B11226;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

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

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

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

    .section-header h2 {
        font-size: 2rem;
    }
}

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

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

    .service-card {
        padding: 1.5rem;
    }

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

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

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

.service-card,
.portfolio-item,
.about-content > * {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #920e1f;
} 

/* ------------------------- */
/* Yaaqut POS Product Page  */
/* ------------------------- */

.pos-hero {
    min-height: 100vh;
    height: auto; /* allow hero to grow on small screens instead of forcing exact 100vh */
    padding-top: 90px;
}

.pos-hero-bg {
    background: radial-gradient(circle at top left, #B11226 0%, #7f0c1b 40%, #0b0f19 100%);
}

.pos-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pos-hero-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pos-hero-left p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.pos-app-logo img {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    margin-bottom: 1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pos-hero-buttons {
    justify-content: flex-start;
}

.pos-hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-version-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.pos-hero-right {
    display: flex;
    justify-content: center;
}

.pos-hero-device-frame {
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pos-hero-mobile {
    width: 45%;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.7);
}

.pos-hero-desktop {
    width: 70%;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.pos-section {
    padding: 80px 0;
    background: #f8fafc;
}

.pos-section:nth-of-type(even) {
    background: white;
}

.pos-description {
    max-width: 1100px;
}

.pos-description-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.pos-description-text p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.pos-feature-list ul {
    list-style: none;
}

.pos-feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #1f2937;
}

.pos-feature-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0.35rem;
    font-size: 0.6rem;
    color: #B11226;
}

.pos-screenshots {
    background: radial-gradient(circle at top, #e0f2fe 0%, #f8fafc 40%, #ffffff 100%);
}

.pos-screenshots-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.pos-screenshots-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.pos-screenshots-column h3 i {
    margin-right: 0.5rem;
    color: #B11226;
}

.pos-screenshot-strip {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.pos-screenshot-strip img {
    width: 180px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
    border: 1px solid #020617;
    background: #020617;
}

/* Make desktop screenshots visually larger */
.pos-screenshot-strip-desktop img {
    width: 260px;
}

/* Device-style frames */
.pos-screenshot-strip-mobile img {
    padding: 10px 8px;
    border-radius: 24px;
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    border: 2px solid rgba(148, 163, 184, 0.7);
}

.pos-screenshot-strip-desktop img {
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(145deg, #020617, #020617);
    border: 2px solid rgba(30, 64, 175, 0.5);
}

/* Subtle scrollbar styling for screenshot strips */
.pos-screenshot-strip::-webkit-scrollbar {
    height: 6px;
}

.pos-screenshot-strip::-webkit-scrollbar-track {
    background: transparent;
}

.pos-screenshot-strip::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.pos-downloads {
    background: #0b1120;
    color: white;
}

.pos-downloads .section-header h2 {
    color: #e5e7eb;
}

.pos-downloads .section-header p {
    color: #9ca3af;
}

.pos-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pos-download-card {
    background: #020617;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pos-download-card h3 {
    margin: 0.5rem 0;
    color: #e5e7eb;
}

.pos-download-card p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.pos-download-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pos-download-icon.android {
    background: #B11226;
}

.pos-download-icon.windows {
    background: #7f0c1b;
}

.pos-download-icon.macos {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.pos-download-icon.linux {
    background: #f97316;
}

.pos-download-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
    align-items: center;
    flex-wrap: wrap;
}

.pos-download-btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #B11226, #e01a31);
    color: #ffffff !important;
    border: none;
    text-decoration: none;
}

.pos-download-btn:hover {
    background: linear-gradient(135deg, #920e1f, #B11226);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

/* POS-specific navbar accent using primary red without affecting other pages */
.pos-page .navbar {
    background: rgba(11, 15, 25, 0.92);
}

.pos-page .nav-logo {
    color: #B11226;
}

.pos-page .nav-menu a:hover {
    color: #B11226;
}

.pos-download-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1f2937;
    color: #9ca3af;
}

.pos-changelog {
    margin-top: 3rem;
    background: #020617;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.pos-changelog h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pos-changelog pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.pos-generated-at {
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .pos-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .pos-hero-right {
        order: -1;
    }

    .pos-hero-left h1 {
        font-size: 2.3rem;
    }
    
    .pos-hero-buttons {
        justify-content: center;
    }
    
    .pos-hero-device-frame {
        max-width: 320px;
        margin: 0 auto;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .pos-description-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos-section {
        padding: 60px 0;
    }
}
