/* AIKAWA Institute Custom Styles - NIFS Inspired Layout */

:root {
    --primary-color: #d32f2f;
    --secondary-color: #ff6f00;
    --accent-color: #388e3c;
    --dark-color: #212121;
    --light-color: #fafafa;
    --text-dark: #333333;
    --border-color: #e0e0e0;
    --warning-color: #f57c00;
    --success-color: #2e7d32;
    --danger-color: #c62828;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles - Scrollable Header */
.header {
    position: relative;
    z-index: 1050;
    background: white;
    transition: all 0.3s ease;
}

.header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transform: translateY(0);
}

.header-top {
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color)) !important;
}

.header-middle {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.header-nav {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: none;
    position: relative;
    z-index: 1040;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(255, 111, 0, 0.1));
    border-radius: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hero Slider - Normal Position */
.hero-slider {
    position: relative;
    z-index: 1;
}

.hero-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.slide-1 {
    background: linear-gradient(rgba(211, 47, 47, 0.7), rgba(26, 26, 26, 0.7)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.slide-2 {
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(211, 47, 47, 0.7)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.slide-3 {
    background: linear-gradient(rgba(255, 152, 0, 0.7), rgba(76, 175, 80, 0.7)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
    background-color: transparent;
    scroll-margin-top: 100px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Enhanced Card Hover Effects */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 30px;
}

/* Facility Items Enhanced */
.facility-item {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Placement Section */
.testimonial-wrapper {
    transition: all 0.3s ease;
}

.testimonial-wrapper:hover {
    transform: translateY(-5px);
}

.recruiter-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.recruiter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    margin-top: 5px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a252f 100%);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .header-middle .col-md-3 {
        margin-bottom: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .facility-item {
        padding: 20px 15px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling - Enhanced */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

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

.btn-primary:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
}

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

.btn-warning:hover {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

/* Additional Color Fixes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--danger-color)) !important;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.5);
}

.btn-warning:focus,
.btn-warning.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 0, 0.5);
}

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

.btn-danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-danger:focus,
.btn-danger.focus {
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.5);
}

/* Course Section Styles */
.courses-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    min-height: 600px;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
}

.course-image-container img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fire-overlay {
    background: linear-gradient(45deg, rgba(211,47,47,0.8), rgba(255,87,34,0.6));
}

.safety-overlay {
    background: linear-gradient(45deg, rgba(255,111,0,0.8), rgba(255,152,0,0.6));
}

.hse-overlay {
    background: linear-gradient(45deg, rgba(56,142,60,0.8), rgba(76,175,80,0.6));
}

.course-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

/* Facilities Section Styles */
.facilities-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    min-height: 500px;
}

.facility-card {
    border-radius: 15px;
    border-top: 4px solid;
}

.facility-card.red-border {
    border-top-color: #d32f2f;
}

.facility-card.orange-border {
    border-top-color: #ff6f00;
}

.facility-card.green-border {
    border-top-color: #388e3c;
}

.facility-card.purple-border {
    border-top-color: #7b1fa2;
}

.facility-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.facility-icon.red-bg {
    background: linear-gradient(135deg, #d32f2f, #f44336);
}

.facility-icon.orange-bg {
    background: linear-gradient(135deg, #ff6f00, #ff9800);
}

.facility-icon.green-bg {
    background: linear-gradient(135deg, #388e3c, #4caf50);
}

.facility-icon.purple-bg {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
/* Professional Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Professional Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Professional Navbar Enhancements */
.navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(255, 111, 0, 0.05));
    border-radius: 8px;
    transform: translateY(-2px);
}

/* Professional Loading States */
.loading-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-element.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1, #e9ecef);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--danger-color));
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--danger-color), var(--dark-color));
}

/* Professional Focus States */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .btn, .carousel-control-prev, .carousel-control-next {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}