@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-darker));
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;

    background: linear-gradient(to right, #ffffff, var(--primary));

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sectors Section */
.section {
    padding: 100px 5%;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.sector-card {
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.sector-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.sector-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sector-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact Hub */
.contact-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.25rem;
}

.info-text p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p,
.footer-col ul {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 3000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

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

    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    header {
        padding: 1.2rem 5%;
    }

    .hero {
        padding: 0 5%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .contact-hub {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        /* Smaller gap */
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        padding: 2rem;
        list-style: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        /* Smaller font size */
        font-weight: 600;
        text-transform: none;
        /* Removed uppercase for a "smaller" look */
        color: var(--text-main);
        text-decoration: none;
        transition: var(--transition);
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--primary);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2,
    .section-title {
        font-size: 1.8rem;
    }

    .logo-track {
        animation-duration: 25s;
    }

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

        100% {
            transform: translateX(calc(-220px * 7));
        }
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

/* FIX: Social Icons Visible */
.social-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Header smooth effect */
header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
}

/* Logo Slider (Marquee) */
.logo-slider {
    overflow: hidden;
    padding: 1rem 0;
    /* Reduced padding */
    background: transparent;
    /* Removed background shadow effect */
    position: relative;
}

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

.logo-track {
    display: flex;
    width: calc(220px * 14);
    animation: scroll 35s linear infinite;
}

.logo-item {
    width: 250px;
    /* Increased from 220px */
    height: 120px;
    /* Increased from 100px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 1.5rem;
    gap: 10px;
}

.accred-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.8;
    transition: var(--transition);
}

.logo-item:hover .accred-label {
    color: var(--primary);
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 60%;
    /* Slightly reduced to make room for text */
    object-fit: contain;
    transition: var(--transition);
}

.logo-item:hover img {
    transform: scale(1.05);
}

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

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

/* Accreditation Section (General) */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding-top: 2rem;
}

.accreditation-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.accreditation-item p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reviews Section Slider */
.reviews-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.reviews-container {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    width: 100%;
}

.review-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    width: calc(33.333% - 1.35rem);
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
    }

    .reviews-slider-wrapper {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .reviews-slider-wrapper {
        padding: 0 1rem;
    }

    .slider-btn {
        display: none;
    }

    /* Hide buttons on mobile, use swipe/scroll */
    .reviews-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .review-card {
        scroll-snap-align: start;
    }
}

/* FAQ Accordion */
.faq-accordion {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.review-card i.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
}

.review-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary);
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   ADMIN DASHBOARD RESPONSIVE STYLES
========================================= */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Doc Creator / Designer */
    .designer-sidebar {
        width: 250px !important;
    }

    .canvas-area {
        padding: 20px !important;
    }

    .page {
        transform: scale(0.8) !important;
        transform-origin: top center !important;
        margin-bottom: -50px !important;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column !important;
    }

    .mobile-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .mobile-brand {
        font-family: 'Outfit', sans-serif;
        font-size: 1.4rem;
        color: #0ea5e9;
        font-weight: 800;
    }

    .mobile-brand span {
        color: #fff;
    }

    .hamburger-btn {
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
    }

    .sidebar {
        left: -260px;
        z-index: 1002 !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .top-bar {
        margin: -1.5rem -1.5rem 1.5rem !important;
        padding: 1rem !important;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .data-section,
    .card {
        padding: 1rem !important;
        overflow-x: auto;
    }

    table {
        width: 100%;
        min-width: 600px;
    }

    /* Doc Creator / Designer Mobile */
    body {
        height: auto !important;
        overflow: auto !important;
        flex-direction: column !important;
    }

    .designer-sidebar {
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .canvas-area {
        width: 100% !important;
        padding: 10px !important;
        overflow: auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .page {
        transform: none !important;
        margin-bottom: 30px !important;
        zoom: calc(100vw / 850) !important;
    }

    .toolbar {
        position: relative !important;
        flex-direction: column !important;
        gap: 15px;
    }

    .page-container {
        margin-top: 0 !important;
        padding: 20px 10px !important;
    }
}

/* =========================================
   TEAM SECTION SLIDER (MOBILE ONLY)
========================================= */
@media (max-width: 768px) {
    .team-slider-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        width: 100%;
    }
    .team-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    .team-track-mobile {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 1rem;
        width: max-content;
    }
    .team-card-mobile {
        scroll-snap-align: center;
        flex: 0 0 280px;
        margin: 0 10px;
    }
}