/* ============================================
   Akhivra Technologies - Custom Styles
   SEO-Optimized, Performance-Focused CSS
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Metallic Blue */
    --primary-color: #1E90FF;
    --primary-dark: #0066CC;
    --primary-light: #00BFFF;
    --primary-gradient: linear-gradient(135deg, #00BFFF 0%, #1E90FF 50%, #0066CC 100%);
    --metallic-blue: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #0288D1 50%, #0277BD 75%, #01579B 100%);
    
    /* Secondary Colors */
    --secondary-color: #6c757d;
    --dark-color: #1a1a1a;
    --dark-bg: #2c2c2c;
    --light-color: #f8f9fa;
    --text-color: #333;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-metallic: 0 10px 30px rgba(30, 144, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E90FF 0%, #0066CC 100%);
    --gradient-secondary: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Accessibility ===== */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== Header & Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.95) !important;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(30, 144, 255, 0.5));
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 4px 8px rgba(30, 144, 255, 0.8));
    transform: scale(1.1);
}

.brand-text {
    background: var(--metallic-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: white !important;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 0.5;
}

.hero-logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(30, 144, 255, 0.5));
    animation: fadeInUp 1s ease-out;
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(30, 144, 255, 0.8));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    box-shadow: var(--shadow-xl);
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in animation for images */
img {
    animation: fadeIn 0.6s ease-in;
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--metallic-blue);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.5);
}

.text-lg-start h2::after,
.text-start h2::after {
    left: 0;
    transform: none;
}

section h3 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Philosophy Section */
.philosophy-section {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
}

/* ===== Purpose Cards ===== */
.purpose-card {
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.purpose-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.2);
}

.purpose-icon-wrapper {
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.purpose-card:hover .purpose-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.purpose-card img {
    transition: transform 0.5s ease;
}

.purpose-card:hover img {
    transform: scale(1.05);
}

.purpose-card i {
    display: block;
}

/* ===== Service Cards ===== */
.service-card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--metallic-blue);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card i {
    display: block;
    margin-bottom: 1rem;
    background: var(--metallic-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Methodology Steps ===== */
.methodology-step {
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.methodology-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== Why Us Section ===== */
#why-us ul li {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

#why-us ul li:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

#why-us ul li i {
    margin-top: 0.25rem;
}

/* ===== Leadership Cards ===== */
.leadership-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.leadership-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--metallic-blue);
}

.leadership-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.leadership-card:hover .leadership-image {
    transform: scale(1.1);
}

.leadership-card .card-body {
    padding: 2rem;
}

/* ===== Contact Section ===== */
#contact {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: white;
}

#contact .form-label {
    font-weight: 600;
    color: white;
}

#contact .form-control {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#contact .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#contact .form-control:invalid {
    border-color: #dc3545;
}

#contact .form-control:valid {
    border-color: #28a745;
}

#contact .btn-primary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    background: var(--metallic-blue);
    border: none;
    box-shadow: var(--shadow-metallic);
}

#contact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.5);
    background: var(--primary-gradient);
}

/* ===== Footer ===== */
footer {
    background: var(--dark-bg) !important;
    border-top: 2px solid rgba(30, 144, 255, 0.2);
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(30, 144, 255, 0.4));
    transition: var(--transition);
}

.footer-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(30, 144, 255, 0.7));
    transform: scale(1.1);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-image-wrapper {
        margin-bottom: 2rem;
    }
    
    section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .service-image-wrapper {
        height: 180px;
    }
    
    .leadership-image-wrapper {
        height: 250px;
    }
    
    #why-us ul li {
        flex-direction: column;
        text-align: center;
    }
    
    #why-us ul li i {
        margin-bottom: 0.5rem;
    }
    
    .purpose-card img {
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-logo {
        max-width: 150px;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .service-image-wrapper {
        height: 150px;
    }
    
    .leadership-image-wrapper {
        height: 200px;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .footer-logo {
        height: 35px;
    }
}

/* ===== Image Styles ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Rounded images */
.rounded-3,
.rounded-4 {
    overflow: hidden;
}

/* ===== Performance Optimizations ===== */
/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --text-color: #000;
    }
    
    .hero-section {
        background: #000;
    }
    
    .service-card,
    .purpose-card {
        border: 2px solid #000;
    }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

