/* ========================================
   JOLYMO LOGISTICS - MAIN STYLESHEET
   Modern, Professional Clearing & Forwarding
   ======================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Color Palette */
    --primary-blue: #004E98;
    --accent-gold: #F2A007;
    --neutral-bg: #F7F7F7;
    --text-dark: #333333;
    --white: #FFFFFF;
    --light-blue: #0066CC;
    --dark-blue: #003366;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #d99006;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

/* ========================================
   NAVIGATION BAR
   Smooth scroll transition from hero to white
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    /* Initially transparent - visually connected to hero */
    background-color: transparent;
    transition: all var(--transition-normal);
}

/* Scrolled state - detached with white background and shadow */
.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

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

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 45px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo-text {
    color: var(--primary-blue);
}

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

.nav-links a {
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 4px 0;
    transition: var(--transition-normal);
    border-radius: 2px;
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--primary-blue);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.85) 0%, rgba(0, 51, 102, 0.85) 100%), 
                url('assets/images/cargo-ship.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.7), rgba(0, 51, 102, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

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

/* ========================================
   SERVICES PREVIEW SECTION
   ======================================== */
.services-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.service-icon {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.service-card p {
    padding: 0 var(--spacing-md);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.service-link {
    display: inline-block;
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--accent-gold);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-blue);
    padding-left: calc(var(--spacing-md) + 0.5rem);
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
    padding: var(--spacing-xl) 0;
    background-color: var(--neutral-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.feature-icon {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background-color: var(--neutral-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 4px solid var(--accent-gold);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.testimonial-content {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

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

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    /* Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        color: var(--text-dark);
    }
    
    /* Hero */
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    /* Grids */
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Spacing */
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    /* Navigation */
    .logo-text { font-size: 1rem; }
    .logo img { height: 40px; }
    .navbar.scrolled .logo img { height: 35px; }
    
    .nav-links {
        width: 85%;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero {
        height: 70vh;
        min-height: 550px;
    }
    
    /* Sections */
    .services-preview,
    .why-choose-us,
    .testimonials,
    .cta-section {
        padding: var(--spacing-md) 0;
    }
}

/* ========================================
   ADDITIONAL PAGE-SPECIFIC STYLES
   ======================================== */

/* Page Header for About, Services, Contact */
.page-header {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
}

/* Responsive adjustments for inline-styled grids */
@media (max-width: 768px) {
    .page-header {
        min-height: 300px;
        padding: 120px 0 80px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    .page-header p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem !important;
    }
    
    .page-header p {
        font-size: 1rem !important;
    }
}

/* Additional Hover Effects and Animations */
.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card a:hover {
    gap: 12px !important;
}

/* Modern Service Cards */
.service-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 78, 152, 0.2) !important;
    border-color: rgba(242, 160, 7, 0.3) !important;
}

.service-card-modern:hover img {
    transform: scale(1.15);
}

.service-card-modern a:hover {
    background: rgba(0, 78, 152, 0.1) !important;
    gap: 12px !important;
}

.service-card-modern a:hover span {
    transform: translateX(4px);
}

/* Footer Link Hover Effects */
.footer a:hover {
    color: #F2A007 !important;
    transform: translateX(5px);
}

.footer .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Responsive Design for New Sections */
@media (max-width: 968px) {
    /* Company Overview responsive */
    section[style*="grid-template-columns: 1fr 1fr"] > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Statistics responsive */
    section[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    /* Welcome Section */
    h2[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Statistics numbers */
    div[style*="font-size: 4rem"] {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }
    
    div[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }
    
    /* Statistics grid */
    section[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   STATISTICS CARDS HOVER EFFECTS
   ======================================== */
/* Statistics card hover effect */
section[style*="Our Impact in Numbers"] div[style*="backdrop-filter: blur(10px)"] {
    cursor: pointer;
}

section[style*="Our Impact in Numbers"] div[style*="backdrop-filter: blur(10px)"]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #004E98, #003366);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 78, 152, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #F2A007, #d89006);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(242, 160, 7, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}

