/* Modern CSS Reset and Base Styles - About Page */
:root {
  /* Your Color Palette - Same as Profile */
  --primary-color: #043d7c;
  --primary-light: rgba(4, 61, 124, 0.08);
  --primary-dark: #032c59;
  --secondary-color: #3068cc;
  
  /* Refreshed neutrals */
  --neutral-text: #334155;
  --neutral-light: #f1f5f9;
  
  /* Additional colors for better contrast */
  --accent-color: #e63946;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Pure colors */
  --white: #ffffff;
  --black: #000000;
  
  /* Gray scale for better contrast */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Animation Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900)) !important;
    color: var(--white);
    margin-top: auto !important;
    padding: var(--space-3xl) 0 var(--space-xl) 0;
    position: relative;
    flex-shrink: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

footer h3, footer h5 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

footer h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

footer h5 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
    font-weight: 400;
}

footer a:hover {
    color: var(--white);
    transform: translateY(-2px); /* Changed from translateX to translateY */
}

/* Make sure the Quick Links section has proper spacing */
footer .footer-section h5 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

footer .list-unstyled {
    padding-left: 0;
    list-style: none;
    margin-top: var(--space-sm);
}

footer .list-unstyled li {
    margin-bottom: var(--space-xs);
}

footer .list-unstyled li a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    position: relative;
    overflow: hidden;
}

footer .list-unstyled li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--duration-normal) ease;
    z-index: 0;
}

footer .list-unstyled li a:hover {
    color: var(--white);
    transform: translateY(-2px); /* Changed from translateX to translateY */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: transparent; /* Remove background change */
    padding: var(--space-xs) var(--space-sm); /* Keep consistent padding */
}


/* Social Links */
footer .social-links {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

footer .social-links a {
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
    text-decoration: none;
    font-size: var(--text-base);
    position: relative;
    overflow: hidden;
}

footer .social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left var(--duration-normal) ease;
    z-index: 0;
}

footer .social-links a i {
    position: relative;
    z-index: 1;
    transition: color var(--duration-fast) ease;
}

footer .social-links a:hover::before {
    left: 0;
}

footer .social-links a:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

footer .social-links a:hover i {
    color: var(--white);
}

/* Copyright Section */
footer .text-center small {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    display: block;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-lg);
}

/* Company Info Section */
footer .company-info {
    margin-bottom: var(--space-lg);
}

footer .company-info h3 {
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Footer Links Grid */
footer .footer-links {
    margin-bottom: var(--space-xl);
}

footer .footer-section {
    margin-bottom: var(--space-lg);
}

/* Newsletter Section (if needed) */
footer .newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

footer .newsletter h5 {
    margin-bottom: var(--space-md);
}

footer .newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

footer .newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

footer .newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(48, 104, 204, 0.2);
    outline: none;
}

footer .newsletter .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
}

footer .newsletter .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}


/* Print Styles */
@media print {
    footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-top: 1px solid #000 !important;
    }
    
    footer::before {
        display: none !important;
    }
    
    footer .social-links {
        display: none !important;
    }
    
    footer .newsletter {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    footer {
        background: #000000 !important;
        border-top: 2px solid #ffffff !important;
    }
    
    footer a {
        color: #ffffff !important;
    }
    
    footer .social-links a {
        border-color: #ffffff !important;
        background: #000000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    footer * {
        transition: none !important;
        animation: none !important;
    }
    
    footer .social-links a::before {
        transition: none !important;
    }
}


/* Mobile Footer Design */
@media (max-width: 768px) {
    footer {
        padding: var(--space-2xl) 0 var(--space-lg) 0;
    }
    
    /* Company info - more compact */
    footer .company-info {
        margin-bottom: var(--space-lg);
        text-align: center;
    }
    
    footer .company-info h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-sm);
    }
    
    footer .company-info p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
    }
    
    /* Target the main footer row - make it a grid */
    footer .container .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: var(--space-md) !important;
        margin: 0 !important;
    }
    
    /* Company info takes full width on first row */
    footer .container .row .col-md-6 {
        grid-column: 1 / -1 !important;
        padding: 0 !important;
        margin-bottom: var(--space-lg);
    }
    
    /* Quick Links and Account sections side by side */
    footer .container .row .col-md-3 {
        padding: 0 !important;
    }
    
    footer .footer-section {
        margin-bottom: var(--space-md);
    }
    
    footer .footer-section h5 {
        font-size: var(--text-sm);
        margin-bottom: var(--space-sm);
        text-align: center;
        padding-bottom: var(--space-xs);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    footer .list-unstyled {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    footer .list-unstyled li {
        margin-bottom: 0;
    }
    
    footer .list-unstyled li a {
        font-size: var(--text-sm);
        padding: var(--space-xs);
        text-align: center;
        display: block;
    }
    
    /* Social links - centered and compact */
    footer .social-links {
        justify-content: center;
        margin-bottom: var(--space-lg);
        gap: var(--space-md);
    }
    
    footer .social-links a {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }
    
    /* Copyright - compact */
    footer .text-center small {
        font-size: var(--text-xs);
        padding-top: var(--space-md);
        margin-top: var(--space-md);
        line-height: 1.4;
    }
    
    /* Hide footer animations on mobile for performance */
    footer .list-unstyled li a::before,
    footer .social-links a::before {
        display: none;
    }
    
    footer .list-unstyled li a:hover,
    footer .social-links a:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    footer {
        padding: var(--space-xl) 0 var(--space-md) 0;
    }
    
    /* Company info even more compact */
    footer .company-info h3 {
        font-size: var(--text-lg);
    }
    
    footer .company-info p {
        font-size: var(--text-xs);
    }
    
    /* Stack vertically on very small screens */
    footer .container .row {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }
    
    footer .container .row .col-md-6 {
        grid-column: 1 !important;
    }
    
    footer .footer-section h5 {
        font-size: var(--text-sm);
    }
    
    footer .list-unstyled {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    footer .list-unstyled li a {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
        white-space: nowrap;
    }
    
    /* Social links smaller */
    footer .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    footer {
        padding: var(--space-lg) 0 var(--space-sm) 0;
    }
    
    footer .container .row {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

/* Modern Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform var(--duration-fast) ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar-brand img {
  border-radius: var(--radius-md);
  transition: transform var(--duration-normal) ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all var(--duration-normal) ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link.active {
  color: var(--white) !important;
  font-weight: 600;
}

@media (max-width: 991.98px) {

  .nav-link {
    font-weight: 600;
    padding: var(--space-sm) var(--space-sm) !important;
    margin: 0 var(--space-xs);
    text-align: center;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
  }
  .nav-link.active {
    background: rgba(255,255,255,0.08);
    color: var(--white) !important;
  }
    .nav-link:hover {
    background: none !important;
    color: var(--white) !important;
  }
  .nav-link.active::before,
  .nav-link:hover::before {
    display: none !important;
  }
}