/* CEIRD Design System - Professional Digital Representation (Compact 100% Zoom) */
:root {
    /* CEIRD Brand Colors */
    --ceird-primary: #1a365d;
    --ceird-primary-light: #2d5a87;
    --ceird-secondary: #e53e3e;
    --ceird-accent: #38a169;
    --ceird-warning: #d69e2e;
    --ceird-info: #3182ce;
    
    /* Neutral Colors */
    --ceird-white: #ffffff;
    --ceird-gray-50: #f9fafb;
    --ceird-gray-100: #f3f4f6;
    --ceird-gray-200: #e5e7eb;
    --ceird-gray-300: #d1d5db;
    --ceird-gray-400: #9ca3af;
    --ceird-gray-500: #6b7280;
    --ceird-gray-600: #4b5563;
    --ceird-gray-700: #374151;
    --ceird-gray-800: #1f2937;
    --ceird-gray-900: #111827;
    
    /* Compact Spacing Scale */
    --spacing-xs: 0.2rem;    /* 3.2px */
    --spacing-sm: 0.4rem;    /* 6.4px */
    --spacing-md: 0.6rem;    /* 9.6px */
    --spacing-lg: 1rem;      /* 16px */
    --spacing-xl: 1.5rem;    /* 24px */
    --spacing-2xl: 2rem;     /* 32px */
    --spacing-3xl: 2.5rem;   /* 40px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Typography - Compact */
html {
    font-size: 14px; /* Reduced from 16px for compact view */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4; /* Reduced from 1.6 */
    color: var(--ceird-gray-800);
    background-color: var(--ceird-white);
    margin: 0;
    padding: 0;
}

/* Typography Scale - Compact */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2; /* Reduced from 1.3 */
    margin-bottom: var(--spacing-sm); /* Reduced spacing */
    color: var(--ceird-gray-900);
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Reduced sizes */
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem); /* Reduced sizes */
    font-weight: 600;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem); /* Reduced sizes */
    font-weight: 600;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.3rem); /* Reduced sizes */
    font-weight: 600;
}

h5 {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem); /* Reduced sizes */
    font-weight: 600;
}

h6 {
    font-size: 0.9rem; /* Reduced size */
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    font-size: 0.9rem; /* Reduced size */
    line-height: 1.4; /* Reduced line height */
    color: var(--ceird-gray-600);
}

.lead {
    font-size: 1rem; /* Reduced from 1.1rem */
    line-height: 1.5;
    font-weight: 500;
}

/* Buttons - Compact */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg); /* Reduced padding */
    font-size: 0.85rem; /* Reduced size */
    font-weight: 500;
    line-height: 1.4; /* Reduced line height */
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl); /* Reduced padding */
    font-size: 0.95rem; /* Reduced size */
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md); /* Reduced padding */
    font-size: 0.8rem; /* Reduced size */
}

/* Button Variants */
.btn-primary {
    background-color: var(--ceird-primary);
    border-color: var(--ceird-primary);
    color: var(--ceird-white);
}

.btn-primary:hover {
    background-color: var(--ceird-primary-light);
    border-color: var(--ceird-primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--ceird-secondary);
    border-color: var(--ceird-secondary);
    color: var(--ceird-white);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--ceird-primary);
    color: var(--ceird-primary);
}

.btn-outline-primary:hover {
    background-color: var(--ceird-primary);
    color: var(--ceird-white);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--ceird-white);
    color: var(--ceird-white);
}

.btn-outline-light:hover {
    background-color: var(--ceird-white);
    color: var(--ceird-primary);
}

.btn-light {
    background-color: var(--ceird-white);
    border-color: var(--ceird-white);
    color: var(--ceird-primary);
}

.btn-light:hover {
    background-color: var(--ceird-gray-100);
    border-color: var(--ceird-gray-100);
}

/* Cards - Compact */
.card {
    background: var(--ceird-white);
    border: 1px solid var(--ceird-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header, .card-body, .card-footer {
    padding: var(--spacing-md); /* Reduced padding */
}

.card-title {
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    color: var(--ceird-primary);
}

/* Navigation - Compact */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0; /* Reduced padding */
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 55px; /* Reduced height for compact view */
    transition: all var(--transition-normal);
}

.navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md) !important; /* Reduced padding */
    font-size: 0.9rem; /* Reduced font size */
    font-weight: 500;
    color: var(--ceird-gray-700) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--ceird-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ceird-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section - Compact */
.hero-header {
    position: relative;
    background: linear-gradient(135deg, var(--ceird-primary), var(--ceird-primary-light));
    overflow: hidden;
    min-height: 75vh; /* Reduced from 85vh for compact view */
    display: flex;
    align-items: center;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ceird-white);
    padding: var(--spacing-xs) var(--spacing-md); /* Reduced padding */
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md); /* Reduced margin */
    font-size: 0.8rem; /* Reduced size */
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
}

.hero-title {
    color: var(--ceird-white);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem); /* Reduced sizes */
    font-weight: 700;
    line-height: 1.1; /* Reduced line height */
    margin-bottom: var(--spacing-md); /* Reduced margin */
    letter-spacing: -0.01em;
}

.hero-description {
    color: var(--ceird-white);
    font-size: 0.9rem; /* Reduced size */
    line-height: 1.4; /* Reduced line height */
    margin-bottom: var(--spacing-lg); /* Reduced margin */
    opacity: 0.9;
    max-width: 500px;
}

.hero-buttons .btn {
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    font-size: 0.85rem; /* Reduced size */
}

.hero-stats {
    margin-top: var(--spacing-lg); /* Reduced margin */
}

.stat-item h4 {
    font-size: 1.4rem; /* Reduced size */
    margin-bottom: var(--spacing-xs); /* Reduced margin */
}

.stat-item p {
    font-size: 0.75rem; /* Reduced size */
    margin: 0;
}

/* Sections - Compact */
.section {
    padding: var(--spacing-2xl) 0; /* Reduced padding */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl); /* Reduced margin */
}

.section-title {
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    color: var(--ceird-primary);
}

.section-subtitle {
    font-size: 1rem; /* Reduced size */
    color: var(--ceird-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid System - Compact */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md); /* Reduced padding */
}

.row {
    margin: 0 calc(-1 * var(--spacing-sm)); /* Reduced negative margin */
}

.col, .col-*, .col-lg-* {
    padding: var(--spacing-sm); /* Reduced padding */
}

/* Utilities */
.text-primary { color: var(--ceird-primary) !important; }
.text-secondary { color: var(--ceird-secondary) !important; }
.text-accent { color: var(--ceird-accent) !important; }
.text-white { color: var(--ceird-white) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-muted { color: var(--ceird-gray-500) !important; }

.bg-primary { background-color: var(--ceird-primary) !important; }
.bg-light { background-color: var(--ceird-gray-100) !important; }
.bg-white { background-color: var(--ceird-white) !important; }

.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Animations - Compact */
.fade-in {
    opacity: 0;
    transform: translateY(15px); /* Reduced movement */
    transition: all var(--transition-slow);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-20px); /* Reduced movement */
    transition: all var(--transition-slow);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px); /* Reduced movement */
    transition: all var(--transition-slow);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Elements - Compact */
.floating-icon {
    position: absolute;
    width: 40px; /* Reduced size */
    height: 40px; /* Reduced size */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ceird-white);
    font-size: 0.9rem; /* Reduced size */
    animation: float 3s ease-in-out infinite;
}

.floating-icon-1 {
    left: -20px; /* Reduced positioning */
    animation-delay: 0s;
}

.floating-icon-2 {
    right: -20px; /* Reduced positioning */
    animation-delay: 1s;
}

.floating-icon-3 {
    bottom: -20px; /* Reduced positioning */
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); } /* Reduced movement */
}

/* Scroll Indicator - Compact */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg); /* Reduced positioning */
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px; /* Reduced size */
    height: 30px; /* Reduced size */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ceird-white);
    font-size: 0.8rem; /* Reduced size */
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); } /* Reduced movement */
    60% { transform: translateY(-2px); } /* Reduced movement */
}

/* Responsive Design - Compact */
@media (max-width: 768px) {
    html {
        font-size: 13px; /* Further reduced for mobile */
    }
    
    .hero-header {
        min-height: 65vh; /* Reduced height */
        padding: var(--spacing-lg) 0; /* Reduced padding */
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem); /* Reduced sizes */
    }
    
    .hero-description {
        font-size: 0.85rem; /* Reduced size */
    }
    
    .btn {
        margin-bottom: var(--spacing-sm); /* Reduced margin */
        font-size: 0.8rem; /* Reduced size */
    }
    
    .navbar-brand img {
        height: 45px; /* Reduced height */
    }
    
    .section {
        padding: var(--spacing-xl) 0; /* Reduced padding */
    }
    
    .floating-icon {
        width: 35px; /* Reduced size */
        height: 35px; /* Reduced size */
        font-size: 0.8rem; /* Reduced size */
    }
    
    .floating-icon-1 { left: -18px; } /* Reduced positioning */
    .floating-icon-2 { right: -18px; } /* Reduced positioning */
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm); /* Further reduced padding */
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .stat-item h4 {
        font-size: 1.2rem; /* Reduced size */
    }
    
    .stat-item p {
        font-size: 0.7rem; /* Reduced size */
    }
}
