/* css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #1e3a8a; /* Blue-900 */
    --color-primary-dark: #1e40af; /* Blue-800 */
    --color-secondary: #3b82f6; /* Blue-500 */
    --color-background: #f8fafc; /* Slate-50 */
    --color-text: #1e293b; /* Slate-800 */
    --color-text-light: #64748b; /* Slate-500 */
    --color-white: #ffffff;
    --color-gray: #e2e8f0; /* Slate-200 */
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }
.mb-20 { margin-bottom: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo span {
    color: var(--color-secondary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--color-secondary);
}

nav ul li a:hover::after {
    width: 100%;
}

main {
    padding-top: 70px; /* offset for header */
}

/* Hero Section (Slider) */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-slider, .hero-slider-track, .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30,58,138,0.7), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--color-gray);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--color-secondary);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 8px solid var(--color-secondary);
    border-radius: 12px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.about-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--color-secondary);
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--color-background);
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.info-item:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.info-item:hover .info-icon, .info-item:hover h4, .info-item:hover p, .info-item:hover a {
    color: var(--color-white);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--color-secondary);
}

.info-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.info-content a {
    color: var(--color-text-light);
}

.info-content a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--color-secondary);
}

.footer-text {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #cbd5e1;
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-login-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-login-btn:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gray);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

#adminPanelModal .modal-content {
    max-width: 800px;
}

/* Admin Dashboard Elements */
.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--color-background);
    border-radius: 8px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
