/* ==========================================
   Main Stylesheet for Wingunet Group
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary-color: #21B24B;
    --secondary-color: #2C7CB4;
    --primary-light: #36D959;
    --primary-dark: #1A8839;
    --secondary-light: #3D9FCC;
    --secondary-dark: #1E5A8E;
    --accent-color: #06B6D4;
    --dark-color-custom: #1a2332;
    --black-color: #0f1419;
    --success-color: #21B24B;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #2C7CB4;
    --light-color: #f8fafc;
    --dark-color: #1a2332;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--dark-color-custom);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    box-shadow: 0 4px 20px rgba(33, 178, 75, 0.08);
    background: linear-gradient(90deg, #1a2332 0%, #1e5a8e 50%, #1a2332 100%) !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.3) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: filter 0.3s ease;
}

.navbar-brand img:hover {
    filter: brightness(1.5) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.navbar-brand span {
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, #21B24B 0%, #1A8839 25%, #2C7CB4 75%, #1E5A8E 100%);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #21B24B 0%, #36D959 50%, #2C7CB4 100%) !important;
}

/* ==========================================
   Cards & Components
   ========================================== */

.card {
    border: 1px solid rgba(33, 178, 75, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(33, 178, 75, 0.12) !important;
    border-color: rgba(33, 178, 75, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #21B24B, #2C7CB4);
}

.hover-card {
    cursor: pointer;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px 8px 0 0 !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #21B24B 0%, #36D959 100%);
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1A8839 0%, #21B24B 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 178, 75, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================
   Forms
   ========================================== */

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(33, 178, 75, 0.15);
    outline: none;
}

/* ==========================================
   Alerts & Messages
   ========================================== */

.alert {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(33, 178, 75, 0.1), rgba(54, 217, 89, 0.1));
    border-color: rgba(33, 178, 75, 0.3);
    color: #1A8839;
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 53, 69, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.alert-info {
    background: linear-gradient(135deg, rgba(44, 124, 180, 0.1), rgba(61, 159, 204, 0.1));
    border-color: rgba(44, 124, 180, 0.3);
    color: #0c5460;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #1e5a8e 100%);
    color: white;
    margin-top: 5rem;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #21B24B, #2C7CB4) 1;
}

.header-logo {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transition: filter 0.3s ease;
}

.header-logo:hover {
    filter: brightness(1.4) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

footer h5 {
    color: #36D959;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #36D959;
    text-decoration: underline;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Main Content
   ========================================== */

.main-content {
    min-height: calc(100vh - 56px - 300px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ==========================================
   Utility Classes
   ========================================== */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded {
    border-radius: 8px;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* ==========================================
   Badges
   ========================================== */

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

/* ==========================================
   Pagination
   ========================================== */

.page-link {
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
}

/* ==========================================
    Gradient Utilities
    ========================================== */

.bg-gradient-success {
    background: linear-gradient(135deg, #21B24B 0%, #36D959 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #2C7CB4 0%, #3D9FCC 100%) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #21B24B, #2C7CB4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
    Enhanced Shadows
    ========================================== */

.shadow-primary {
    box-shadow: 0 10px 30px rgba(33, 178, 75, 0.15) !important;
}

.shadow-secondary {
    box-shadow: 0 10px 30px rgba(44, 124, 180, 0.15) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================
    Border Utilities
    ========================================== */

.border-top-primary {
    border-top: 3px solid var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ==========================================
    Logo & Image Utilities
    ========================================== */

.logo-bright {
    filter: brightness(1.4) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-white {
    filter: brightness(2) saturate(0.3) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-grayscale {
    filter: grayscale(100%) brightness(1.2);
}

.logo-invert {
    filter: invert(1) brightness(1.1);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* ==========================================
   Loading Spinner
   ========================================== */

.spinner {
    border: 4px solid rgba(33, 178, 75, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Custom Animations
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ==========================================
    Additional Animations
    ========================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   Accessibility
   ========================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    body {
        background: white;
    }
    
    nav, footer {
        display: none;
    }
    
    .btn {
        border: 1px solid #999;
    }
}
