* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #720000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #f0f0f0;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

.logo, a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: none;
    border: none;
    transition: all 0.3s ease;
    height: fit-content;
    text-decoration: none;
}

.logo::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover::before {
    opacity: 0.1;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(241, 146, 53, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(241, 146, 53, 0.1);
    cursor: pointer;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #720000, #900000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo h1 span {
    background: linear-gradient(135deg, #5F77C0, #0071ED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.logo:hover h1::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #284b72;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #720000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #720000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #f4f9ff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.shine-text {
  display: inline-block;
  position: relative;
  color: #0d685f;
  overflow: hidden;
}

.shine-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.1) 100%);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  to {
    left: 125%;
  }
}


.hero-subtitle {
    font-size: 1.5rem;
    color: #720000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #284b72;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary-download {
    background: linear-gradient(135deg, #287241, #22977e);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #284b72, #5888be);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #284b72;
    border: 2px solid #5888be;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #284b72, #5888be);
    color: white;
    transform: translateY(-2px);
}

/* زر التحميل */
.download-btn {
  background-color: #218c74; /* أخضر جميل */
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

.download-btn:hover {
  background-color: #1e7e68;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* صورة البرنامج */
.program-image {
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.program-image:hover {
  transform: scale(1.02);
}

/* الصورة */
.clickable-image {
    cursor: pointer;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.03);
}

/* الـ Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 70px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

/* صورة داخل النافذة */
.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
}

/* زر الإغلاق */
.close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f19235, #720000);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #720000, #f19235);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(241, 146, 53, 0.3), rgba(179, 88, 39, 0.3));
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.task-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f4f9ff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #720000;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #284b72;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    cursor: pointer;
    background: #eaf2ff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #720000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #284b72;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #284b72;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
    padding: 6rem 0;
    background: #f4f9ff;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: #eaf2ff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-image {
    width: 100%;
    height: 200px;
    background: #284b72;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
}

.screenshot-content {
    padding: 1.5rem;
}

.screenshot-content h4 {
    font-size: 1.2rem;
    color: #720000;
    margin-bottom: 0.5rem;
}

.screenshot-content p {
    color: #284b72;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f4f9ff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #720000;
    width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #284b72;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #284b72, #5888be);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #eaf2ff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
    background: #f9fcff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #720000;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #333;
    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-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #c44646;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #284b72;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        gap: 10px;
        padding: 5px 10px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features,
    .screenshots,
    .pricing,
    .contact {
        padding: 4rem 0;
    }

    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .floating-element {
        display: none;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Very small screens (360px and below) */
@media screen and (max-width: 360px) {
    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .feature-card,
    .pricing-card,
    .contact-form {
        padding: 1rem;
    }

    .features-grid,
    .screenshots-grid,
    .pricing-cards {
        gap: 1.5rem;
    }
}

/* Large screens (1200px and above) */
@media screen and (min-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .feature-card {
        padding: 2.5rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .pricing-card {
        padding: 2.5rem;
    }
}

/* Ultra-wide screens (1920px and above) */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .nav-container {
        max-width: 1400px;
    }

    .hero-content {
        max-width: 1400px;
    }
}

/* Print styles */
@media print {
    .header,
    .hamburger,
    .floating-elements,
    .social-links {
        display: none !important;
    }

    .hero {
        padding-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-header h2 {
        font-size: 18pt;
    }

    .feature-card,
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}