/* ========================================
   RESET & GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #001f3f;
    padding: 0.3rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    height: 55px;
}

.logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 50px !important;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-links li a,
.nav-links li button {
    color: white;
    text-decoration: none;
    border: 2px solid #9ca3af !important;
    padding: 0.3rem 0.8rem !important;
    width: 150px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05) !important; /* LIGHT BACKGROUND by default */
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    display: inline-block;
    height: 35px !important;
    line-height: 1.2 !important;
}

/* OBVIOUS HOVER CONTRAST */
.nav-links li a:hover,
.nav-links li button:hover {
    background: rgba(255, 255, 255, 0.25) !important; /* MUCH LIGHTER on hover */
    border-color: #f3f4f6 !important; /* LIGHT GRAY border on hover */
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.nav-links li a.nav-home {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: white !important;
}

.nav-links li a.nav-home:hover {
    background: #0d8b3a !important; /* DARKER GREEN on hover */
    border-color: #0d8b3a !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    right: 2rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-top: 55px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

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

.hero-bg.inactive {
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 0 2rem;
    margin-top: -50px !important;
}

.hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
    color: #4ade80;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.6rem !important;
}

.hero-btn {
    padding: 0.5rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.btn-primary:hover {
    background: #0d8b3a !important; /* DARKER GREEN for obvious contrast */
    border-color: #0d8b3a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5); /* STRONGER shadow */
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important; /* LIGHTER for contrast */
    color: white !important;
    border-color: #f3f4f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4); /* STRONGER shadow */
}

/* ========================================
   SECTIONS COMMON STYLES
   ======================================== */
section {
    padding: 1.5rem 2rem;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: left;
}

.section-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: #f9fafb;
    padding-top: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: #e5e7eb !important;
    border: 2px solid #9ca3af;
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    background: #cbd5e1 !important; /* MUCH DARKER on hover */
    border-color: #6b7280 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* More lift */
}

.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #c7d2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: #4338ca;
}

.card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.card p {
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    background: white;
    padding-top: 0.5rem;
}

.service-card {
    background: #e5e7eb !important;
    border: 2px solid #9ca3af;
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    background: #cbd5e1 !important; /* MUCH DARKER on hover */
    border-color: #16a34a !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* More lift */
}

.service-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #bbf7d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #166534;
}

.service-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease; /* Added transition */
    background: none;
    border: none;
    line-height: 1;
}

.close-btn:hover {
    color: #ef4444 !important; /* RED on hover for obvious contrast */
    transform: scale(1.1);
}

.modal h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #1f2937;
    margin-top: 0.5rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 42px;
}

.form-group input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); /* Focus ring */
    outline: none;
}

.form-group textarea {
    padding: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 100px;
    resize: vertical;
    min-height: 100px;
    max-height: 150px;
}

.form-group textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); /* Focus ring */
    outline: none;
}

.submit-btn {
    background: #16a34a;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    margin-top: 0.3rem;
    height: 42px;
}

.submit-btn:hover {
    background: #0d8b3a !important; /* DARKER GREEN for contrast */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

.success-message {
    display: none;
    text-align: center;
    padding: 1rem;
}

.success-message.active {
    display: block;
}

.success-message i {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 0.6rem;
}

.success-message p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #111827;
    color: white;
    padding: 1.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-left h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.footer-left p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3) !important; /* LIGHTER on hover */
    color: #4ade80 !important;
    transform: translateY(-3px);
}

.footer-right {
    text-align: right;
}

.footer-right p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #4ade80 !important;
    background: rgba(255, 255, 255, 0.1);
}

.footer-contact-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Update modal width in your main styles.css */
.modal-content {
    max-width: 700px !important; /* Increased width */
    width: 90% !important;
    padding: 2rem !important;
}

/* Optional: You can also make the modal taller if needed */
.modal-content {
    max-height: 85vh !important;
    overflow-y: auto !important;
}

/* Make the close button more prominent */
.close-btn {
    font-size: 2rem !important;
    top: 1rem !important;
    right: 1.5rem !important;
}

/* Ensure modal background covers the whole screen */
.modal {
    backdrop-filter: blur(8px) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95% !important;
        padding: 1.5rem !important;
        max-height: 90vh !important;
    }
    
    .close-btn {
        font-size: 1.8rem !important;
        top: 0.8rem !important;
        right: 1rem !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem 1rem;
        height: 50px;
    }
    
    .logo {
        left: 1rem;
    }
    
    .logo-image {
        height: 45px !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #001f3f;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-links li a,
    .nav-links li button {
        width: 100%;
        display: block;
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem !important;
        height: 32px !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        height: 55vh;
        margin-top: 50px;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-top: -60px !important;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem !important;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.5rem !important;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-intro {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-right {
        text-align: center;
    }
    
    section {
        padding: 1.2rem 1rem;
    }
    
    .modal-content {
        padding: 1rem 1.2rem;
        max-height: 85vh;
        width: 95%;
    }
    
    .modal h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}