:root {
    --primary-color: #1a2e4b; /* Dark blue */
    --secondary-color: #0f1e30; /* Even darker blue */
    --accent-color: #38a169; /* Green */
    --text-color: #1f2937; /* Dark text */
    --light-text: #ffffff;
    --light-background: #87CEEB; /* Light sky blue */
    --border-color: #e5e7eb;
    --success-color: #38a169; /* Updated to match accent color */
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    /* Main brand colors */
    --kijo-blue: #1a2e4b;
    --kijo-green: #38a169;
    --kijo-light-text: #a0aec0; /* Lighter grey for contact info */
}

/* Reset and Base Styles */
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-background);
}

/* Navigation */
.navbar {
    background-color: var(--background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-brand img {
    background: transparent !important;
    mix-blend-mode: normal;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.navbar-collapse {
    display: flex;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-nav .nav-item {
    margin: 0 0.75rem;
    padding: 0;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 2rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-item .btn {
    padding: 0.5rem 1rem;
    margin: 0 0.75rem;
}

.navbar-nav .nav-link.btn-primary {
    color: white !important;
    background-color: var(--kijo-blue);
    border-color: var(--kijo-blue);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.navbar-nav .nav-link.btn-primary:hover {
    background-color: #0f1e30;
    border-color: #0f1e30;
    color: white !important;
}

.signup-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: var(--secondary-color);
}

/* Main Content */
main {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem - 300px);
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background-color: var(--background);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-color);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--light-text);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.flash-message.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.flash-message.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.flash-message .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 0.5rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #f5f5f5; /* Milky white background */
    color: var(--text-color);
    padding: 4rem 0 1rem;
}

.footer-top {
    margin-bottom: 3rem;
}

.footer-logo {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer-logo img {
    background: transparent !important;
    mix-blend-mode: normal;
}

.footer h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links ul li a:hover {
    color: var(--kijo-green);
}

.footer-contact p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-certification {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-certification-img {
    background: transparent !important;
    mix-blend-mode: normal;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

@media (max-width: 991px) {
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 2rem;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .footer-links, .footer-contact, .footer-certification {
        text-align: center;
        margin-bottom: 2rem;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .navbar-collapse {
        background-color: var(--background);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
        margin: 0;
    }

    .navbar-nav .nav-item .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: none;
        background-color: var(--light-background);
    }

    .navbar-nav .nav-item .dropdown-item {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-item .btn {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }

    .navbar-nav .nav-item .d-flex {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-nav .nav-item .dropdown {
        width: 100%;
    }

    .navbar-nav .nav-item .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-item .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* General Section Styles */
.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--kijo-green);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/background-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-welcome {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    /* Oval background styles */
    background-color: var(--kijo-blue);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem; /* Adjust value to control oval shape */
    display: inline-block; /* Ensure background wraps the text */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.animated-text {
    color: var(--kijo-green);
    display: block;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.animated-text.text-animated {
    animation: color-pulse-fade 1.5s ease-out forwards;
}

/* Typing Animation */
/* Removed previous typing and blink-caret animations */

/* Combined Color Pulse and Fade Animation */
@keyframes color-pulse-fade {
    0% {
        color: var(--kijo-green);
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        color: #66bb6a;
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        color: var(--kijo-green);
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-section .btn {
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    opacity: 0;
    transform: scale(0.9);
    animation: fade-in-scale-up 0.8s ease-out forwards 1s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Entrance Animation */
@keyframes fade-in-scale-up {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Who We Are Section */
.who-we-are-section {
    background-color: var(--kijo-blue);
    color: var(--light-text);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.who-we-are-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 46, 75, 0.9), rgba(15, 30, 48, 0.9));
    z-index: 1;
}

.who-we-are-section .container {
    position: relative;
    z-index: 2;
}

.who-we-are-content {
    position: relative;
}

.who-we-are-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.who-we-are-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 46, 75, 0.3), rgba(56, 161, 105, 0.3));
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 0.7;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--kijo-green);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 991px) {
    .who-we-are-section {
        padding: 4rem 0;
    }
    
    .who-we-are-content {
        margin-bottom: 3rem;
    }
    
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .who-we-are-text p {
        font-size: 1rem;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
    
    .experience-badge .text {
        font-size: 0.7rem;
    }
}

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

.services-section .section-subtitle {
    color: var(--primary-color);
}

.services-section .section-title {
    color: var(--text-color);
}

.services-section .service-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services-section .service-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.services-section .service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.services-section .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-section .service-card:hover .service-image img {
    transform: scale(1.05);
}

.services-section .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.services-section .card-text {
    color: var(--light-text);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(90deg, #1bcf9f 0%, #0f8dc2 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.newsletter-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-section .form-inline {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section .form-control {
    border-color: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    background-color: white;
    color: var(--text-color);
}

.newsletter-section .form-control::placeholder {
    color: #6B7280;
}

.newsletter-section .btn-primary {
    background-color: var(--kijo-blue);
    border-color: var(--kijo-blue);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0.75rem 2rem;
}

.newsletter-section .btn-primary:hover {
    background-color: #0f1e30;
    border-color: #0f1e30;
}

/* Admin Dashboard Styles */
.admin-sidebar {
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.text-danger {
    color: #dc3545 !important;
}

.admin-sidebar .nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.admin-content {
    padding: 2rem;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

/* Tables */
.table-container {
    background-color: var(--background);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--light-background);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    vertical-align: middle;
}

.table tr:hover {
    background-color: var(--light-background);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Form Validation */
.form-control.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password Strength Meter */
.password-strength {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Responsive adjustments for Index page */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .who-we-are-section .row > div {
        margin-bottom: 2rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        flex: none;
        width: 100%;
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 500px; /* Adjust height for smaller screens */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-section h2 {
        font-size: 1.75rem;
    }
}

.who-we-are-section .section-title {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.who-we-are-section .section-subtitle {
    color: var(--kijo-green) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.who-we-are-section .btn-primary {
    background-color: #16A8AA !important;
    border-color: #16A8AA !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.who-we-are-section .btn-primary:hover {
    border-color: #138a8c !important;
}

.urgency-box {
    background: var(--kijo-blue) !important;
    background-color: var(--kijo-blue) !important;
} 