/* --- garage-management-system\assets\css\style.css --- */

/* --- Global Styles & Variables --- */
:root {
    /* UPDATED: DACS Brand Blue based on your image */
    --primary-color: #0c1b54; 
    
    --secondary-color: #F1C40F; /* Yellow/Gold - Keeps the contrast */
    --background-light: #F4F7FC;
    --background-dark: #0a1635; /* Slightly darker version of primary for depth */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-muted: #6c757d;
    --border-color: #E0E0E0;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* --- Header --- */
.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.header.header-minimal {
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--text-light);
}
.header.header-minimal .logo a {
    color: var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: 70px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.header-link {
    color: inherit;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navigation li {
    margin-left: 35px;
}
.navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.navigation a:hover {
    color: var(--secondary-color);
}
.navigation a:hover::after {
    width: 100%;
}
.btn-login {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-login:hover {
    background-color: #d4ac0d;
    transform: translateY(-2px);
}

/* --- Hero Section Styles --- */
@keyframes hero-fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-section {
    position: relative;
    color: var(--text-light);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg-slides .hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hero-fade 15s infinite;
    z-index: 1;
}
.hero-bg-slides .hero-bg-slide:nth-child(2) {
    animation-delay: 5s;
}
.hero-bg-slides .hero-bg-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* UPDATED: Matches the new primary blue with transparency */
    background-color: rgba(12, 27, 84, 0.75); 
    z-index: 2;
}
.hero-container {
    position: relative;
    z-index: 3;
}
.hero-title {
    font-size: 3.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
    display: inline-block;
}
.hero-buttons .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- General Content Sections --- */
.content-section {
    padding: 80px 0;
}
.content-section-alt {
    padding: 80px 0;
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title span {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}
.section-title h2 {
    font-size: 2.8em;
    margin: 10px 0;
    color: var(--primary-color);
}

/* --- Image Slider Section --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 3)); }
}

.slider-container {
    background: white;
    box-shadow: var(--box-shadow);
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 10px;
}

.slider-container:before,
.slider-container:after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.slider-container:after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider-container:before {
    left: 0;
    top: 0;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.slider-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 6);
}

.slide {
    height: 200px;
    width: 250px;
    padding: 15px;
    perspective: 100px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}
.slide img:hover {
    transform: translateZ(5px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: #fff;
    padding: 35px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-bottom: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}
.service-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.service-card p {
    color: var(--text-muted);
}

/* --- Why Choose Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.why-us-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.why-us-item h4 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.why-us-item p {
    color: var(--text-muted);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}
.testimonial-author h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: #ccc;
    padding: 60px 0 20px 0;
}
.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}
.footer-col p, .footer-col ul {
    font-size: 0.95em;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col p {
    margin-bottom: 10px;
}
.footer-col p i {
    margin-right: 10px;
    color: var(--secondary-color);
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}
.footer-bottom p {
    margin: 0;
}

/* --- Technicians Section --- */
.technicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.technician-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid transparent;
}
.technician-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-bottom: 3px solid var(--secondary-color);
}
.technician-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 3px solid var(--secondary-color);
}
.technician-card h4 {
    margin: 10px 0 5px 0;
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 600;
}
.technician-card p {
    color: var(--text-muted);
    font-size: 1em;
}

/* --- About Us Section --- */
.about-us-content {
    background: linear-gradient(90deg, #f4f7fc 60%, #fff 100%);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 40px 30px;
    max-width: 900px;
    margin: 0 auto;
}
.about-us-content p {
    font-size: 1.15em;
    margin-bottom: 25px;
    color: var(--text-dark);
}
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-list li {
    font-size: 1.05em;
    margin-bottom: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.about-list i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 1.2em;
}

/* --- Reception Section --- */
.reception-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 35px 30px;
    max-width: 700px;
    margin: 0 auto;
}
.reception-content p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 18px;
}
.reception-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.reception-list li {
    font-size: 1em;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.reception-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1em;
}

/* --- Manager Card --- */
.manager-card {
    background: linear-gradient(90deg, #f1c40f1a 60%, #fff 100%);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 35px 25px;
    max-width: 400px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
}
.manager-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 3px solid var(--secondary-color);
}
.manager-card h4 {
    margin: 10px 0 8px 0;
    color: var(--primary-color);
    font-size: 1.25em;
    font-weight: 700;
}
.manager-card p {
    color: var(--text-muted);
    font-size: 1.05em;
}

/* --- Customer Guide Section --- */
.guide-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 35px 30px;
    max-width: 700px;
    margin: 0 auto;
}
.guide-list {
    padding-left: 18px;
    margin-bottom: 18px;
}
.guide-list li {
    font-size: 1.05em;
    margin-bottom: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.guide-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1em;
}
.guide-note {
    font-size: 1em;
    color: var(--text-muted);
    background: var(--background-light);
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8em;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .technicians-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .about-us-content,
    .reception-content,
    .manager-card,
    .guide-content {
        padding: 25px 10px;
    }
    .navigation {
        display: none;
    }
    .header-right {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2em; }
    .section-title h2 { font-size: 2.2em; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .technician-card img,
    .manager-card img {
        width: 70px;
        height: 70px;
    }
    .about-us-content,
    .reception-content,
    .manager-card,
    .guide-content {
        padding: 15px 5px;
    }
}

/* --- Login & Register Page Specific Styles --- */
.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background-color: var(--background-light);
    min-height: calc(100vh - 350px);
}

.login-box {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-title {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2em;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}
.input-group label .fas {
    margin-right: 8px;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box; 
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password {
    font-size: 0.9em;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.forgot-password:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--background-dark);
    transform: translateY(-2px);
}

.register-link {
    margin-top: 25px;
    font-size: 0.95em;
    color: #555;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.register-link a:hover {
    text-decoration: underline;
}

/* --- Password Visibility Toggle Styles --- */
.password-wrapper {
    position: relative;
}
.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

/* Success/Error Message Banners */
.message-banner {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}
.message-banner.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.message-banner.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}