/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- THEME VARIABLES --- */
:root, body[data-theme='cyber-dark'] {
    --bg-primary: #0a0c27;
    --bg-secondary: #1a1c3c;
    --bg-tertiary: #2a2d52;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0c0;
    --header-text: #e0e0e0;
    --accent-primary: #00f7ff;
    --accent-secondary: #e040fb;
    --accent-tertiary: #f39c12;
    --header-bg: linear-gradient(145deg, #1a1c3c, #0a0c27);
    --card-bg: rgba(26, 28, 60, 0.7);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-color: rgba(0, 247, 255, 0.2);
    --hero-bg: var(--bg-primary);
    --section-card-bg: linear-gradient(145deg, #2a2d52, #1a1c3c);
    --section-card-border: var(--accent-primary);
    --section-card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 247, 255, 0.3) inset, 0 0 10px var(--accent-secondary);
}

body[data-theme='classic-light'] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --header-text: #2c3e50;
    --accent-primary: #0d6efd;
    --accent-secondary: #6f42c1;
    --accent-tertiary: #f39c12;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --border-color: #dee2e6;
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --section-card-bg: #ffffff;
    --section-card-border: var(--accent-primary);
    --section-card-hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body[data-theme='mosso'] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --header-text: #ffffff;
    --accent-primary: #3498db;
    --accent-secondary: #9b59b6;
    --accent-tertiary: #f39c12;
    --header-bg: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --border-color: #dee2e6;
    --hero-bg: linear-gradient(135deg, #081c24 0%, #1a5f7a 100%);
    --section-card-bg: linear-gradient(145deg, #103c4e, #0b2b3a);
    --section-card-border: #159895;
    --section-card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(87, 197, 182, 0.3) inset, 0 0 10px var(--accent-tertiary);
}

body[data-theme='funky'] {
    --bg-primary: #1a001a;
    --bg-secondary: #2e002e;
    --bg-tertiary: #4d004d;
    --text-primary: #f0f0f0;
    --text-secondary: #b3b3b3;
    --header-text: #ffffff;
    --accent-primary: #00ff7f; /* Spring Green */
    --accent-secondary: #ff4500; /* Orange Red */
    --accent-tertiary: #ffff00; /* Yellow */
    --header-bg: linear-gradient(135deg, #ff4500, #1a001a);
    --card-bg: rgba(46, 0, 46, 0.7);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --border-color: rgba(0, 255, 127, 0.3);
    --hero-bg: var(--bg-primary);
    --section-card-bg: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    --section-card-border: var(--accent-primary);
    --section-card-hover-shadow: 0 0 40px var(--accent-primary), 0 0 25px var(--accent-secondary) inset;
}

body[data-theme='simple'] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #333;
    --text-secondary: #6c757d;
    --header-text: #ffffff;
    --accent-primary: #3498db;
    --accent-secondary: #2ecc71;
    --accent-tertiary: #f39c12;
    --header-bg: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --border-color: #dee2e6;
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --section-card-bg: #ffffff;
    --section-card-border: var(--accent-primary);
    --section-card-hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: ltr;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap */
}

.logo i {
    font-size: 2rem;
    color: var(--accent-tertiary);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0; /* Reset margin */
    color: var(--header-text);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--accent-tertiary); /* The typewriter cursor */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-tertiary); }
}

.logo .slogan {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.9;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-tertiary), var(--accent-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px var(--accent-primary);
    animation: ai-logo-animation 6s infinite ease-in-out;
}

.logo-circle i {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--accent-primary);
}

@keyframes ai-logo-animation {
  0% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 0 15px var(--accent-primary), 0 0 20px var(--accent-secondary);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    box-shadow: 0 0 25px var(--accent-tertiary), 0 0 35px var(--accent-secondary);
    filter: hue-rotate(90deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
    box-shadow: 0 0 15px var(--accent-primary), 0 0 20px var(--accent-secondary);
    filter: hue-rotate(0deg);
  }
}

.skyai-logo i {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    gap: 0.5rem; /* Adjusted gap */
}

.nav a, .nav .dropdown-toggle {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px; /* Gap between icon and text */
}

.nav a:hover,
.nav .dropdown-toggle:hover,
.nav-item.dropdown:hover .dropdown-toggle {
    color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav a.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.nav a i, .nav .dropdown-toggle i {
    font-size: 1em;
    width: 20px;
    text-align: center;
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    padding: 10px 0;
    margin-top: 10px; /* Add some space from the header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, margin-top 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

/* Mega Menu Styles */
.mega-menu {
    width: 600px; /* Wider menu */
    padding: 20px;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mega-menu-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
}

.mega-menu-item i {
    font-size: 2rem;
    color: var(--accent-tertiary);
    width: 40px;
    text-align: center;
}

.mega-menu-item-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.mega-menu-item-text p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Theme Switcher Specific Styles */
.theme-switcher .dropdown-menu {
    width: 280px;
}
.theme-switcher .dropdown-toggle {
    text-transform: capitalize;
}
.theme-option[data-theme="cyber-dark"] i { color: var(--accent-secondary); }
.theme-option[data-theme="classic-light"] i { color: var(--accent-tertiary); }


/* Mobile Menu Button */
.mobile-menu-button {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; /* Ensure it's above other header content */
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full height */
    background-color: var(--bg-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1001; /* Below header but above content */
    overflow-y: auto; /* Allow scrolling for many items */
    padding-top: 90px; /* Space for header */
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-nav.open {
    display: block;
    transform: translateX(0);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.mobile-nav-link i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-nav-link.dropdown-open i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-link:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.mobile-dropdown-menu {
    display: none; /* Hidden by default */
    background-color: var(--bg-secondary);
    padding-left: 2rem; /* Indent dropdown items */
}

.mobile-dropdown-item {
    display: block;
    padding: 0.8rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    color: var(--text-primary);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-tertiary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 2rem;
    color: var(--accent-tertiary);
}

.stat span {
    font-weight: 600;
}

/* Sections */
.section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section h2 i {
    color: var(--accent-primary);
    margin-left: 1rem;
}

/* Interactive Calculator */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calc-input-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.calc-actions {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-secondary);
}

/* Table of Contents */
.toc {
    padding: 80px 0;
    background: var(--bg-primary);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.toc-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.toc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-primary);
}

.toc-item i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.toc-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Partners Structure */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

.partner-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.partner-icon i {
    font-size: 2rem;
    color: white;
}

.partner-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.partner-role {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.responsibilities {
    list-style: none;
    text-align: right;
    margin-bottom: 1.5rem;
}

.responsibilities li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.responsibilities li:last-child {
    border-bottom: none;
}

.share-percentage {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-tertiary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.ownership-note {
    background: var(--bg-secondary);
    border-right: 5px solid var(--accent-primary);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 10px;
}

.ownership-note h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ownership-note p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.ownership-note p:last-child {
    margin-bottom: 0;
}

.ownership-note i {
    color: var(--accent-primary);
    margin-top: 5px;
}

/* Organization Chart */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.org-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    min-width: 200px;
    position: relative;
    border: 1px solid var(--border-color);
}

.org-box.ceo {
    background: linear-gradient(135deg, var(--accent-tertiary), #e67e22);
    color: white;
}

.org-box.dept {
    border-top: 4px solid var(--accent-primary);
}

.org-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.org-box.ceo i {
    color: white;
}

.org-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.org-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.org-box.ceo p {
    color: rgba(255,255,255,0.9);
}

/* Ratios Section */
.ratios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chart-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.ratios-details {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.ratios-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ratio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.ratio-item:last-child {
    border-bottom: none;
}

.ratio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.ratio-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Costs Grid */
.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cost-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.cost-card:hover {
    transform: translateY(-5px);
}

.cost-header {
    background: linear-gradient(135deg, var(--accent-primary), #2ecc71);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.cost-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cost-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.cost-details {
    padding: 1.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--accent-primary);
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    margin: 1rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

.total-costs {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.total-costs h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.total-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-tertiary);
}

.total-annual {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Expenses */
.expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expense-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.expense-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.expense-icon i {
    font-size: 1.5rem;
    color: white;
}

.expense-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.expense-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.expense-calculation {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e74c3c;
    font-weight: 600;
    color: var(--text-primary);
}

.expenses-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.summary-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid #e74c3c;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Subscription Plans */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.basic .plan-header {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.plan-card.premium .plan-header {
    background: linear-gradient(135deg, var(--accent-primary), #2980b9);
}

.plan-card.enterprise .plan-header {
    background: linear-gradient(135deg, var(--accent-tertiary), #e67e22);
}

.plan-header {
    color: white;
    padding: 2rem;
    text-align: center;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.plan-price span {
    font-size: 1rem;
    opacity: 0.8;
}

.plan-features {
    list-style: none;
    padding: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #2ecc71;
    font-size: 1.1rem;
}

.plan-projection {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.plan-projection span {
    display: block;
    margin-bottom: 0.5rem;
}

.plan-projection span:last-child {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Revenue Projection */
.revenue-projection {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.revenue-projection h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.projection-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projection-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.revenue-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2ecc71;
    margin-top: 0.5rem;
}

/* Financial Summary */
.financial-summary {
    background: var(--header-bg);
    color: var(--text-primary);
    padding: 80px 0;
}

.financial-summary h2 {
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.summary-card.revenue .summary-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.summary-card.costs .summary-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.summary-card.profit .summary-icon {
    background: linear-gradient(135deg, var(--accent-tertiary), #e67e22);
}

.summary-card.breakeven .summary-icon {
    background: linear-gradient(135deg, var(--accent-secondary), #8e44ad);
}

.summary-icon i {
    font-size: 1.5rem;
    color: white;
}

.summary-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.summary-amount.negative {
    color: #e74c3c;
}

.summary-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Action Plan */
.action-plan {
    padding: 80px 0;
    background: var(--bg-primary);
}

.action-plan h2 {
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border-right: 5px solid;
    border: 1px solid var(--border-color);
}

.recommendation-card.urgent {
    border-right-color: #e74c3c;
}

.recommendation-card.important {
    border-right-color: var(--accent-tertiary);
}

.recommendation-card.growth {
    border-right-color: #2ecc71;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rec-header i {
    font-size: 1.5rem;
}

.recommendation-card.urgent .rec-header i {
    color: #e74c3c;
}

.recommendation-card.important .rec-header i {
    color: var(--accent-tertiary);
}

.recommendation-card.growth .rec-header i {
    color: #2ecc71;
}

.rec-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recommendation-card ul {
    list-style: none;
}

.recommendation-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-right: 1.5rem;
}

.recommendation-card li:last-child {
    border-bottom: none;
}

.recommendation-card li::before {
    content: '•';
    position: absolute;
    right: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.recommendation-card.urgent li::before {
    color: #e74c3c;
}

.recommendation-card.important li::before {
    color: var(--accent-tertiary);
}

.recommendation-card.growth li::before {
    color: #2ecc71;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-primary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.print-actions {
    display: flex;
    gap: 1rem;
}

.print-btn, .export-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.print-btn:hover, .export-btn:hover {
    opacity: 0.8;
}

.export-btn {
    background: #e74c3c;
    color: white;
}

.export-btn:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column-reverse; /* Puts animation on top */
        gap: 50px;
    }

    .hero-text {
        text-align: left; /* Align text to the left */
    }

    .hero-animation {
        flex-basis: 100%;
        min-height: 280px; /* Ensure space for animation */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto; /* Adjust height for mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        display: none; /* Hide desktop nav */
    }

    .mobile-menu-button {
        display: block; /* Show mobile menu button */
    }
    
    .ratios-content,
    .expenses-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .costs-grid,
    .expenses-grid,
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .print-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .org-level {
        flex-direction: column;
        align-items: center;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .print-actions {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        padding: 40px 0;
    }
    
    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
    
    .cost-card,
    .expense-card,
    .plan-card,
    .recommendation-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
    transition: background-color 0.3s ease;
}

/* Chart Containers */
.chart-container canvas,
.summary-chart canvas,
.projection-chart canvas {
    max-width: 100%;
    height: auto;
}

/*
---
--- Revolutionary Courses Page
---
*/

@keyframes card-enter-courses {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.courses-revolutionary-body {
    /* background-color: #081c24; */ /* No longer dark */
    background-color: var(--bg-secondary); /* Light background like ICS.AI */
    color: var(--text-primary);
}

.section-title-bar {
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    background: var(--header-bg) !important;
}

.section-title-bar h2 {
    color: var(--text-primary); /* Reverted */
    margin: 0;
    text-align: left; /* Reverted */
    font-size: 1.8rem; /* Reverted */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Reverted */
}

.courses-entry-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    z-index: 2000;
    transition: opacity 1s ease, transform 1s ease;
}

.courses-entry-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 152, 149, 0.1) 0%, rgba(26, 95, 122, 0.3) 40%, transparent 70%);
    position: relative;
    animation: pulse 4s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.courses-entry-icon {
    font-size: 6rem;
    color: var(--accent-primary);
    animation: book-pulse 2s infinite ease-in-out;
}

.loading-counter {
    position: absolute;
    top: 70%;
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes book-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.courses-grid-animated {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto; /* Adjusted margin */
    position: relative;
    z-index: 5;
}

.course-card-animated {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1; /* Make visible by default */
    transform: none; /* Remove initial transform */
    overflow: hidden;
    position: relative;
}

.course-card-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Remove all specific project card color schemes */
.project-card-elearning,
.project-card-ai,
.project-card-erp,
.project-card-mobile,
.project-card-skoola,
.project-card-scholza,
.project-card-almugtamaa,
.project-card-whatsappsender,
.project-card-aiposterengine,
.project-card-pdfparserengine,
.project-card-n8nworkflow,
.project-card-alkhaldyia,
.project-card-almaimoni,
.project-card-yaarb,
.project-card-joblee,
.project-card-qurani,
.project-card-scira,
.project-card-fireprexplicity,
.project-card-skyn8n,
.project-card-skypoe,
.project-card-radhika {
    background: var(--card-bg) !important; /* Ensure all cards are white */
}

.course-card-animated img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.course-card-animated h3 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
    min-height: auto; /* Reset min-height */
}

.course-card-animated .partner-role {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.7;
}

.course-card-animated .course-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-tertiary); /* Gold accent for price */
    margin-bottom: 20px;
}

.course-card-animated .print-btn {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    border: none;
    width: auto;
}

.course-card-animated .print-btn:hover {
    opacity: 0.8;
}

/* --- New ICS.AI Inspired Hero Section (Dark Theme Adaptation) --- */
:root {
    --primary-blue: #1a5f7a;
    --secondary-blue: #159895;
    --primary-green: #57c5b6;
    --gold-accent: #e040fb; /* Changed from #B08D57 to a vibrant magenta */
    --dark-bg: #081c24;
    --light-text: #f0f0f0;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}

@keyframes spherePulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(21, 152, 149, 0.3), 0 0 25px rgba(26, 95, 122, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(21, 152, 149, 0.5), 0 0 35px rgba(26, 95, 122, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(21, 152, 149, 0.3), 0 0 25px rgba(26, 95, 122, 0.2); }
}

@keyframes sphere-rotate-text-reveal {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes text-fade-in-out {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    8%, 25% { opacity: 1; transform: scale(1); text-shadow: 0 0 10px currentColor; }
    33%, 100% { opacity: 0; transform: scale(0.8); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        box-shadow: 0 0 10px currentColor, 0 0 15px currentColor;
    }
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 0 80px; /* Increased top padding to account for fixed header */
    min-height: 80vh;
    text-align: left; /* Align text to the left */
    background-color: var(--hero-bg); /* Use the dark background */
    width: 100%;
    color: var(--text-primary); /* Set default text color to light */
    transition: background-color 0.3s ease;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex-basis: 55%;
    animation: fadeInUp 1s ease-out;
    text-align: left; /* Align text to the left */
}

.hero-text h1 {
    font-size: 2.8em;
    color: var(--text-primary); /* Changed to light text */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(87, 197, 182, 0.3);
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary); /* Lighter grey for paragraph */
}

.cta-button {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.hero-animation {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.ai-sphere-visualizer {
    width: 200px;
    height: 200px;
    position: relative;
}

.central-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--primary-green), var(--accent-secondary), var(--secondary-blue), var(--accent-primary));
    box-shadow: 0 0 20px rgba(21, 152, 149, 0.4), 0 0 30px rgba(26, 95, 122, 0.3), inset 0 0 15px rgba(255,255,255,0.2);
    animation: sphere-rotate-text-reveal 9s linear infinite, spherePulse 3s infinite ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sphere-text {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    opacity: 0;
    animation: text-fade-in-out 9s linear infinite;
    text-transform: uppercase;
}

.sphere-text.text-sky {
    animation-delay: 0s;
    color: #87CEEB;
}

.sphere-text.text-ai {
    animation-delay: -6s;
    color: var(--accent-secondary);
}

.sphere-text.text-365 {
    animation-delay: -3s;
    color: #2ecc71;
}

.orbiting-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    transform-origin: calc(var(--orbit-radius) * -1) 0;
    animation: orbit 5s linear infinite, glow 2s infinite alternate;
}

.particle1 { background-color: var(--accent-secondary); --orbit-radius: 80px; animation-duration: 4s, 2.2s; width:12px; height:12px;} 
.particle2 { background-color: var(--primary-green); --orbit-radius: 110px; animation-duration: 5s, 2.5s; animation-delay: -1s; width:15px; height:15px;} 
.particle3 { background-color: var(--secondary-blue); --orbit-radius: 140px; animation-duration: 6s, 1.8s; animation-delay: -2s; width:10px; height:10px;} 
.particle4 { background-color: #fff; box-shadow: 0 0 5px #fff; --orbit-radius: 60px; animation-duration: 3.5s, 2s; animation-delay: -0.5s; width:8px; height:8px;}
.particle5 { background-color: var(--primary-green); --orbit-radius: 170px; animation-duration: 7s, 2.8s; animation-delay: -3s; width: 12px; height: 12px; opacity: 0.8;}
.particle6 { color: var(--accent-secondary); --orbit-radius: 190px; animation-duration: 8s, 3s; animation-delay: -4s; width: 14px; height: 14px; background-color: currentColor;}

/* --- Styling for Section Navigation Cards (Inspired by "Dark Features") --- */
.section-cards-container {
    padding: 50px 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.section-card {
    background: var(--section-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    width: 220px;
    min-height: 220px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.section-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(87, 197, 182, 0.2) 0%, transparent, 40%);
    transform: rotate(0deg);
    transition: transform 0.8s ease;
    opacity: 0;
    z-index: 0;
}

.section-card:hover::before {
    transform: rotate(180deg);
    opacity: 1;
}

.section-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--section-card-hover-shadow);
    border-color: var(--section-card-border);
}

.section-card .card-icon {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--accent-primary);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.section-card:hover .card-icon {
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.section-card .card-title {
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}