/* 
   V5 ULTRA-MODERN DESIGN SYSTEM - SALAM'S INTERNATIONAL
   Inspired by High-End Shipping & Logistics Aesthetics
   Colors: Logo Green (#43a047), Pure White, Absolute Black
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #43a047;
    --primary-dark: #2e7d32;
    --primary-light: #e8f5e9;
    --black: #000000;
    --white: #ffffff;
    --grey-50: #f8f9fa;
    --grey-100: #f1f3f5;
    --grey-200: #e9ecef;
    --grey-800: #343a40;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 20px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* --- Hero Section with Video --- */
.hero-v5 {
    width: 100%;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 80px 0 40px;
    box-sizing: border-box;
}

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

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

/* --- Hero Hero Content --- */
.hero-content-v5 {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Increased for certificate layout */
    padding-top: 100px;
}

.certificate-wrapper {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.certificate-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 160, 71, 0.2) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
    z-index: -1;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.certificate-wrapper:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(67, 160, 71, 0.4) !important;
}

.certificate-img-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    padding: 10px;
}

.certificate-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.certificate-content h5 {
    font-family: 'Sora', sans-serif;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-v5 span {
    color: var(--primary);
    position: relative;
    display: inline-block; /* Ensure proper spacing for multi-line */
}

.hero-title-v5 {
    font-size: clamp(4rem, 8vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title-v5 span {
    color: var(--primary);
}

/* --- Navigation --- */
.nav-v5 {
    padding: 25px 0;
    transition: var(--transition-base);
    z-index: 2000; /* Increased z-index */
}

.nav-v5.scrolled {
    padding: 12px 0; /* Slightly more compact */
    background: rgba(255, 255, 255, 0.98); /* Less transparent */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 160, 71, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-v5.scrolled .nav-link-v5 {
    color: var(--black) !important;
}

.nav-v5.scrolled .brand-text h4 {
    color: var(--black) !important;
}

.nav-link-v5 {
    font-weight: 700;
    font-size: 14px;
    color: var(--white) !important;
    text-transform: uppercase;
    margin: 0 5px;
    transition: var(--transition-base);
    position: relative;
    text-decoration: none !important;

}

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

.nav-link-v5:hover::after, .nav-link-v5.active::after {
    width: 100%;
}

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

.btn-v5 {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-base);
    border: none;
}

.btn-v5-primary {
    background: var(--primary);
    color: var(--white) !important;
}

.btn-v5-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 160, 71, 0.3);
}

/* --- Content Sections --- */
.section-padding {
    padding: 120px 0;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}

.section-title-v5 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
}

/* --- Bento Grid / Cards --- */
.card-modern {
    background: var(--grey-50);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.card-modern:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.icon-box-v5 {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

/* --- Stats --- */
.stat-box-v5 {
    padding: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-number-v5 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

/* --- Testimonials --- */
.testimonial-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--grey-50);
    position: relative;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

/* --- FAQ --- */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    background: var(--grey-50);
}

.accordion-button {
    background: var(--grey-50);
    font-weight: 700;
    padding: 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* --- Footer --- */
.footer-v5 {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 50px;
    border-top: 1px solid rgba(67, 160, 71, 0.2);
}

.footer-v5 p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo-img {
    height: 110px !important;
    width: auto !important; 
    margin-bottom: 25px;
    border: 2px solid var(--primary);
}

.footer-link-v5 {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-link-v5:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.footer-v5 h6 {
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* --- Utilities --- */
.text-primary { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.rounded-20 { border-radius: 20px; }

/* --- Bento Grid Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-item {
    border-radius: var(--border-radius);
    padding: 40px;
    background: var(--grey-50);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item-tall {
    grid-row: span 2;
}

.bento-item-wide {
    grid-column: span 2;
}

/* --- Team Card V5 --- */
.team-card-v5 {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.team-img-v5 {
    width: 100%;
    height: 525px;
    object-fit: cover;
    transition: var(--transition-base);
}

.team-card-v5:hover .team-img-v5 {
    transform: scale(1.05);
}

.team-info-v5 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

/* --- News/Blog Card V5 --- */
.news-card-v5 {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.news-card-v5:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.news-img-v5 {
    height: 250px;
    object-fit: cover;
}

/* --- Page Header V5 --- */
.page-header-v5 {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 80px 0 40px;
    background-color: var(--black);
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.page-header-v5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.5)); /* Better gradient */
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}
