/* ============================================
   JJ Owen Ltd - Custom Styles
   Based on Canva Export Design
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #ff3131;
    --primary-dark: #e62b2b;
    --text-dark: #000000;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'DM Sans', sans-serif;
    --font-alt: 'Lato', sans-serif;
    --section-padding: 80px 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.brand-text {
    color: var(--text-light);
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light) !important;
    margin-left: 20px;
    padding: 8px 0 !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--primary-color);
    opacity: 0.9;
}

/* ============================================
   Section Styles
   ============================================ */
.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.section-label {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--primary-color);
    padding: 8px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* ============================================
   About Section
   ============================================ */
.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    padding-left: 20px;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.feature-list li strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================
   Services Section
   ============================================ */
.service-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 25px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding: 0 15px;
}

.service-btn {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 30px;
    border-radius: 4px;
    background: var(--primary-color);
    border: none;
}

.service-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   Training Section
   ============================================ */
.training-content {
    padding-right: 20px;
}

.training-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.training-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.training-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.training-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.training-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Job Placement Section
   ============================================ */
.company-logo {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: transform 0.3s ease;
}

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

.company-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   Products Section
   ============================================ */
.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-content {
    padding-left: 20px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    font-family: var(--font-alt);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.contact-text a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--primary-color);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 35px;
    border-radius: 4px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a1a2e;
    padding: 25px 0;
    color: var(--text-light);
}

.footer-text {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .about-content,
    .contact-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .training-content {
        padding-right: 0;
    }
    
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0 !important;
    }
    
    .hero-section {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .company-logo {
        height: 80px;
    }
    
    .service-image,
    .product-image {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 5px;
    }
    
    .section-label {
        font-size: 0.7rem;
        letter-spacing: 5px;
    }
    
    .contact-label {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   Smooth Scroll & Utilities
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* Animation for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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