/* IBIS Unified Design System - Professional Dark Theme */

/* ========================================
   DESIGN TOKENS & VARIABLES
   ======================================== */
:root {
    /* Primary Colors */
    --primary-cyan: #00D9FF;
    --primary-cyan-rgb: 0, 217, 255;
    
    /* Backgrounds */
    --dark-bg: #060919;
    --darker-bg: #060919;
    --card-bg: #131842;
    --card-hover-bg: #1A1F52;
    
    /* Text Colors */
    --text-white: #FFFFFF;
    --text-gray: #8E9AAF;
    --text-light: #B8C1D9;
    
    /* Borders & Overlays */
    --border-color: rgba(0, 217, 255, 0.2);
    --border-hover: rgba(0, 217, 255, 0.5);
    --overlay-light: rgba(0, 217, 255, 0.05);
    --overlay-medium: rgba(0, 217, 255, 0.1);
    --overlay-strong: rgba(0, 217, 255, 0.15);
    
    /* Status Colors */
    --success: #00D98A;
    --warning: #FFB020;
    --danger: #FF4757;
    --info: var(--primary-cyan);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-glow-lg: 0 20px 50px rgba(0, 217, 255, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* ========================================
   GLOBAL RESETS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CARD SYSTEM - UNIFIED DESIGN
   ======================================== */

/* Base Card */
.card-base {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-base:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-lg);
}

/* Small Card (Clients, Small Items) */
.card-sm {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-sm:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    background: var(--card-hover-bg);
}

/* Medium Card (Sectors, Partners, Resources) */
.card-md {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-md:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-lg);
}

/* Large Card (Services, Contracts) */
.card-lg {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-lg:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-lg);
}

/* ========================================
   ICON CONTAINERS - UNIFIED
   ======================================== */

/* Small Icon (40-60px) */
.icon-container-sm {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--overlay-strong) 0%, var(--overlay-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container-sm i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

/* Medium Icon (80-100px) */
.icon-container-md {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--overlay-strong) 0%, var(--overlay-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container-md i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
}

/* Large Icon (100-120px) */
.icon-container-lg {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--overlay-strong) 0%, var(--overlay-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container-lg i {
    font-size: 3rem;
    color: var(--primary-cyan);
}

/* ========================================
   BADGES & TAGS - UNIFIED
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--overlay-medium);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--primary-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.badge:hover {
    background: var(--overlay-strong);
    border-color: var(--border-hover);
}

/* ========================================
   FEATURE ITEMS - UNIFIED
   ======================================== */
.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: var(--overlay-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: var(--overlay-medium);
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   HERO SECTIONS - UNIFIED
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--card-bg) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-cyan-rgb), 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.hero-title span {
    color: var(--primary-cyan);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   SECTION TITLES - UNIFIED
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-title span {
    color: var(--primary-cyan);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* ========================================
   LINKS & BUTTONS - UNIFIED
   ======================================== */
.link-primary {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.link-primary:hover {
    color: var(--text-white);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00B8E6 100%);
    color: var(--darker-bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

/* ========================================
   RESPONSIVE GRID SYSTEM
   ======================================== */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

/* ========================================
   ANIMATIONS - UNIFIED
   ======================================== */

/* Shimmer Effect */
.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-cyan-rgb), 0.1), transparent);
    transition: left var(--transition-slow);
}

.shimmer-effect:hover::before {
    left: 100%;
}

/* Top Border Slide */
.top-border-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, transparent 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.top-border-slide:hover::before {
    transform: scaleX(1);
}

/* Bottom Border Slide */
.bottom-border-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.bottom-border-slide:hover::after {
    transform: scaleX(1);
}

/* Radial Glow */
.radial-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-cyan-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.radial-glow:hover::after {
    opacity: 1;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-cyan { color: var(--primary-cyan); }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
