/* ============================================
   Internet Qatar - Modern Digital Network Style
   ============================================ */

/* CSS Variables */
:root {
    --navy-dark: #0a1628;
    --navy-medium: #132238;
    --navy-light: #1a3050;
    --cyan-primary: #00d4ff;
    --cyan-light: #5ce1ff;
    --cyan-dark: #00a8cc;
    --grey-dark: #2a3f5f;
    --grey-medium: #4a6491;
    --grey-light: #e8eef5;
    --white: #ffffff;
    --text-light: #c5d5ea;
    --text-white: #ffffff;
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --transition-smooth: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--navy-dark);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--cyan-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--cyan-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--grey-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo-text span {
    color: var(--cyan-primary);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav ul li a {
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--navy-light);
    color: var(--cyan-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--cyan-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text-white), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-visual {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 5rem 2rem;
}

.section-light {
    background-color: var(--grey-light);
    color: var(--navy-dark);
}

.section-light h2,
.section-light h3 {
    color: var(--navy-dark);
}

.section-light p {
    color: var(--grey-dark);
}

.section-dark {
    background-color: var(--navy-medium);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-primary), var(--cyan-dark));
    border-radius: 2px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-medium));
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--grey-dark);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--cyan-dark);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 0.95rem;
}

/* Light Section Cards */
.section-light .info-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
}

.section-light .info-card:hover {
    border-color: var(--cyan-dark);
}

.section-light .info-card h3 {
    color: var(--navy-dark);
}

.section-light .info-card p {
    color: var(--grey-dark);
}

/* Diagram Box */
.diagram-box {
    background: linear-gradient(135deg, var(--navy-medium), var(--navy-dark));
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--grey-dark);
    text-align: center;
}

.diagram-box h4 {
    color: var(--cyan-primary);
    margin-bottom: 1rem;
}

.diagram-elements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.diagram-node {
    width: 80px;
    height: 80px;
    background: var(--navy-light);
    border: 2px solid var(--cyan-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
}

.diagram-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-primary), var(--cyan-dark));
    align-self: center;
}

/* ============================================
   Page Header (Internal Pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--grey-dark);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 2rem;
    background-color: var(--navy-medium);
    border-bottom: 1px solid var(--grey-dark);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--grey-medium);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--cyan-primary);
}

.breadcrumb li:last-child a {
    color: var(--text-light);
    pointer-events: none;
}

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

.faq-item {
    background: var(--navy-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--grey-dark);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--cyan-primary);
    transition: var(--transition-smooth);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--grey-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-dark);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--grey-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--navy-medium);
    border: 1px solid var(--grey-dark);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
    color: var(--navy-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   About Page
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-block {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--grey-dark);
}

.about-block h3 {
    color: var(--cyan-primary);
    margin-bottom: 1rem;
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--cyan-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--grey-dark);
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--navy-medium), var(--navy-dark));
    border-top: 1px solid var(--grey-dark);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--cyan-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--cyan-primary);
}

.footer-disclaimer {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--grey-dark);
}

.footer-disclaimer p {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-dark);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--grey-medium);
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-medium);
        border-top: 1px solid var(--grey-dark);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Sections */
    .section {
        padding: 3rem 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .page-header {
        padding: 3rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info-box,
    .about-block {
        padding: 1.5rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-cyan { color: var(--cyan-primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Highlight Box */
.highlight-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--cyan-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-light);
}

/* Network Lines Decoration */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}