/* ========================================
   JM Digital Labs - Professional Stylesheet
   Corporate Blue Theme
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-blue: #60a5fa;
    --navy: #0f172a;
    --dark-gray: #1e293b;
    --medium-gray: #475569;
    --light-gray: #94a3b8;
    --pale-gray: #e2e8f0;
    --off-white: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.9rem;
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-large svg {
    width: 20px;
    height: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-jm {
    color: var(--accent-blue);
}

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

.nav-links a {
    color: var(--pale-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--accent-blue);
    position: relative;
}

.tagline {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Graphic - Animated Bar Chart */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.data-viz {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 300px;
    padding: 20px;
}

.bar {
    width: 50px;
    height: var(--height);
    background: var(--gradient-primary);
    border-radius: 8px 8px 0 0;
    animation: growBar 1.5s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Section Styling */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* About Section */
.about {
    background: var(--off-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-text {
    font-weight: 500;
    color: var(--navy);
}

/* Services Section */
.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--pale-gray);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--navy);
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Experience Section */
.experience {
    background: var(--off-white);
}

.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.experience-card {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.experience-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.experience-details h3 {
    margin-bottom: 8px;
}

.experience-duration {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.experience-details p:last-child {
    color: var(--medium-gray);
    margin-bottom: 0;
}

.experience-note {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 24px 30px;
    border-radius: 0 12px 12px 0;
}

.experience-note p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Flagship Product Grid */
.flagship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.flagship-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.flagship-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.flagship-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.flagship-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.flagship-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.flagship-card p {
    color: var(--medium-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--gradient-hero);
    text-align: center;
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .underline {
    background: var(--accent-blue);
}

.contact-text {
    color: var(--light-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.email-display {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 20px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--navy);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--light-gray);
    margin-bottom: 8px;
}

.footer-location {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-graphic {
        display: none;
    }

    .experience-card {
        flex-direction: column;
        text-align: center;
    }

    .experience-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section {
        padding: 60px 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .experience-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
}

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

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--primary-light);
    color: var(--white);
}

/* Copy Notification Toast */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
