:root {
    --primary-color: #002d72;
    --primary-hover: #001f4d;
    --accent-color: #e30613;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --container-max-width: 1200px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

input,
button,
textarea,
select {
    font-family: 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Navbar Menu */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f4d 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 45, 114, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Luxury Light Sweep Animation */
.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(35deg);
    transition: none;
    animation: sweep 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
    0% {
        left: -60%;
    }

    15% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #003a8c 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 45, 114, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-whatsapp:active {
    transform: scale(0.97);
}

.btn-whatsapp .icon {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #002d72 0%, #004a8f 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.2s ease;
}

.hero-form-container {
    animation: fadeInUp 1.4s ease;
}

.hero-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--text-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-form-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-form-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-form-card .form-group {
    margin-bottom: 15px;
}

.hero-form-card input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9fafb;
}

.hero-form-card input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* Services */
.bg-light {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Offers Section Redesign */
.offers {
    background-color: var(--bg-light);
    position: relative;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.offer-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid #eee;
    position: relative;
    padding-top: 20px;
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e5e7eb;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-badge.popular {
    background: var(--accent-color);
    color: white;
}

.offer-header {
    padding: 30px 30px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.offer-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.offer-speed-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.speed-val {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.speed-unit {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Gradients for different packages */
.offer-card.economy .offer-speed-circle {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.offer-card.professional .offer-speed-circle {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
}

.offer-card.ultra .offer-speed-circle {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}

.offer-body {
    padding: 20px 30px;
    flex-grow: 1;
}

.offer-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.offer-body ul li:last-child {
    border-bottom: none;
}

.offer-price {
    margin-top: 25px;
    text-align: center;
}

.price-container {
    display: inline-block;
    padding: 15px 25px;
    background: #f9fafb;
    border-radius: 15px;
}

.price-container.highlight {
    background: var(--primary-color);
    color: white;
}

.price-container .val {
    font-size: 2.5rem;
    font-weight: 900;
}

.price-container .suffix {
    font-size: 0.9rem;
    opacity: 0.8;
}

.offer-footer {
    padding: 0 30px 30px;
}

.offer-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.offer-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.15);
}

.offer-card.featured:hover {
    box-shadow: 0 20px 50px rgba(227, 6, 19, 0.25);
}

/* Leads Section */
.lead-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 60px;
    border-radius: 30px;
}

.lead-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.phone-cta {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    margin-top: 10px;
}

.lead-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: right;
    background: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* Tech Specs Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.tech-header {
    padding: 25px;
    color: white;
    text-align: center;
}

.tech-header.fiber {
    background: linear-gradient(135deg, #002d72 0%, #00c9ff 100%);
    color: white;
}

.tech-header.vdsl {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
}

.tech-header.adsl {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
}

.tech-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.speed-range {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    opacity: 0.9;
}

.tech-body {
    padding: 30px;
}

.tech-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.tech-body ul li {
    padding: 5px 0;
    font-size: 0.95rem;
}

.tech-body ul li::before {
    content: '★';
    color: var(--accent-color);
    margin-left: 10px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-item .label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Footer Section */
.footer {
    background: #0a0a0a;
    color: #e5e7eb;
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.brand-desc {
    margin: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 0.8rem;
    background: #1f2937;
    padding: 8px 12px;
    border-radius: 5px;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list .icon {
    color: var(--accent-color);
}

.seo-tags {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.seo-tags h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: default;
    color: #e5e7eb;
}

.tag-cloud span:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-note {
    font-style: italic;
}

/* --- Blog Section Styles --- */
.blog-hero {
    background: linear-gradient(rgba(0, 45, 114, 0.9), rgba(0, 45, 114, 0.9)), url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-main {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.blog-content {
    padding: 30px;
}

.blog-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

/* --- Visual Effects & Animations --- */

/* Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-icon {
    font-size: 24px;
}

.phone-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(227, 6, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

/* Section Title Animation */
.section-title.active::after {
    width: 100px;
    transition: width 1s ease-out 0.5s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .lead-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .navbar .logo .brand-text {
        font-size: 1.2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .floating-cta {
        bottom: 20px;
        left: 20px;
    }

    .cta-btn {
        width: 50px;
        height: 50px;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}