/* assets/css/style.css */

:root {
    /* Color Palette */
    --primary-blue: #1E3A8A;
    --secondary-green: #16A34A;
    --light-bg: #F9FAFB;
    --dark-text: #111827;
    --accent: #2563EB;
    --white: #FFFFFF;
    
    /* Variables */
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-green);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(22, 163, 74, 0.4);
    color: var(--white);
}

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

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

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-text);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn {
    color: var(--white);
}

.nav-links .btn:hover {
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 66, 150, 0.5);
    z-index: 2;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero slideshow effects */
.hero-slide.fade-out {
    opacity: 0;
}

.hero-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.hero-slide.slide-out-up {
    transform: translateY(-100%);
    opacity: 0;
}

.hero-slide.zoom-out {
    transform: scale(1.2);
    opacity: 0;
}

.hero-slide.rotate-out {
    transform: rotate(-5deg) scale(1.1);
    opacity: 0;
}

.hero-slide.enter-fade {
    animation: fadeIn 1.5s ease-in-out;
}

.hero-slide.enter-slide-left {
    animation: slideInFromRight 1.5s ease-in-out;
}

.hero-slide.enter-slide-up {
    animation: slideInFromBottom 1.5s ease-in-out;
}

.hero-slide.enter-zoom {
    animation: zoomIn 1.5s ease-in-out;
}

.hero-slide.enter-rotate {
    animation: rotateIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
    0% { transform: rotate(5deg) scale(0.9); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

.hero .container {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btns .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.features {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-green);
    margin-bottom: 20px;
    background: rgba(22, 163, 74, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.feature-card p {
    color: #4B5563;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.step::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #E5E7EB;
    z-index: 1;
}

.step:last-child::before {
    display: none;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step p {
    color: #4B5563;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-green);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--secondary-green);
}

.cta-section .btn:hover {
    background-color: var(--light-bg);
}

/* Apply Form Section */
.apply-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.form-container {
    background: var(--white);
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 10px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #31C48D;
}

.alert-error {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F05252;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 80px 0 30px;
}

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

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
}

/* Partners Section */
.partners-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.partners-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-text);
}

.partners-logos {
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
}

.partners-track {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    min-width: max-content;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 140px;
    margin: 0 30px;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.partner-logo img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.partners-btn {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

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

    .hamburger {
        display: block;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .step::before {
        width: 2px;
        height: 100%;
        top: 50%;
        left: 50%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}

/* Partners Mobile Styles */
@media (max-width: 768px) {
    .partners-logos {
        margin-bottom: 30px;
    }
    
    .partner-logo {
        width: 160px;
        height: 100px;
        margin: 0 15px;
        border-radius: 12px;
    }
    
    .partner-logo img {
        max-height: 70px;
    }
    
    .partners-btn {
        text-align: center;
    }
    
    .partners-btn .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Form mobile fixes */
    .form-container {
        padding: 30px 20px;
        margin: 0 15px;
        max-width: none;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        position: sticky;
        bottom: 0;
        background: var(--white);
        padding: 20px;
        margin: 0 -20px -20px;
        border-top: 1px solid #E5E7EB;
        z-index: 10;
    }
    
    .submit-btn .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        width: 140px;
        height: 90px;
        margin: 0 10px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 25px 15px;
    }
    
    .submit-btn {
        margin: 0 -15px -15px;
        padding: 15px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn ease-in 1;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Admin & Client Portals */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100% !important; height: auto !important; padding: 20px !important; display: flex !important; flex-wrap: wrap !important; justify-content: center !important; flex-direction: row !important; }
    .sidebar .nav-item { flex: 1; text-align: center; font-size: 0.9rem; padding: 10px !important; border-left: none !important; border-bottom: 3px solid transparent; min-width: 120px;}
    .sidebar .nav-item.active { border-left: none !important; border-bottom-color: var(--primary-blue) !important; background: none; }
    .sidebar .nav-item:hover { background: none; color: var(--primary-blue); }
    .main-content { padding: 20px; }
    .topbar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    /* Tables on mobile */
    table { display: block; overflow-x: auto; white-space: nowrap; }
    
    /* Client side */
    .top-nav { flex-direction: column; height: auto; padding: 20px; gap: 15px; text-align: center; justify-content: center;}
    .top-nav > div { flex-wrap: wrap; justify-content: center;}
    .client-layout .main-content { padding: 20px; }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
        min-height: auto;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .nav-links a {
        gap: 15px;
        padding: 12px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .form-container {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Social Media Styles */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--secondary-green);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background-color: var(--secondary-green);
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: 0 8px 15px rgba(22, 163, 74, 0.3);
}

/* Floating Social Media Sidebar */
.floating-social-media {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.floating-social-media .social-icons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.floating-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-green), #15803d);
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.floating-social-link:hover {
    transform: scale(1.15) translateX(-10px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
    background: linear-gradient(135deg, #15803d, var(--secondary-green));
}

@media (max-width: 768px) {
    .floating-social-media {
        right: 15px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .floating-social-media .social-icons-container {
        flex-direction: row;
        gap: 10px;
    }
    
    .floating-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-social-link:hover {
        transform: scale(1.1) translateY(-5px);
    }
}

@media (max-width: 480px) {
    .floating-social-media {
        right: 10px;
        bottom: 15px;
    }
    
    .floating-social-media .social-icons-container {
        padding: 12px;
        gap: 8px;
    }
    
    .floating-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Old footer social media styles - keep for backward compatibility */

/* Video Section */
.video-section {
    margin-top: 60px;
    scroll-margin-top: 80px;
}

.video-section h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-section p {
    margin-top: 15px;
    color: #6B7280;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .media-item img {
        height: 150px;
    }
}
