/* Custom CSS for Pure Line Website */

:root {
    --primary-color: #4698C2;
    --primary-dark: #3a7ba0;
    --primary-light: #6db3d3;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --light-color: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 152, 194, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem;
}

.brand-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 150px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Product Slideshow */
.product-slideshow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.product-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.product-image {
    flex: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 3rem 2rem 1rem 2rem;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-slide:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 1rem 2rem 2rem 2rem;
    background: var(--gradient);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.product-info p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Slideshow Navigation */
.slideshow-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Simple Product Card */
.simple-product-card {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.product-image-simple {
    flex: 2;
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    height: 300px;
}

.product-image-simple img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.product-info-simple {
    flex: none;
    height: 150px;
    padding: 1.5rem 2rem 2rem 2rem;
    background: var(--gradient);
    color: white !important;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.product-info-simple h3 {
    font-size: 1.5rem !important;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white !important;
    display: block !important;
    visibility: visible !important;
}

.product-info-simple p {
    font-size: 1rem !important;
    line-height: 1.5;
    opacity: 0.95;
    color: white !important;
    display: block !important;
    visibility: visible !important;
}

.product-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.product-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-dot.active {
    background: white;
    transform: scale(1.2);
}

.product-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Product Navigation Arrows */
.product-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}

.product-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-nav-btn:active {
    transform: scale(0.95);
}

/* List Group */
.list-group-item {
    border: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 520px;
}

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

.team-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    border: none;
    outline: none;
    background: #f8f9fa;
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 15px 15px 0 0;
}

.team-info {
    padding: 2rem 1.5rem;
}

.team-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.contact-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-contact .btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(70, 152, 194, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Spacing */
section {
    position: relative;
}

section:not(.hero-section) {
    padding: 80px 0;
}

/* Background Patterns */
.bg-light {
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(70,152,194,0.05)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-card {
        min-height: 420px;
    }
    
    .team-card img {
        height: 280px;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 15px 15px 0 0;
    }
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    /* Mobile Hero Slideshow */
    .hero-slideshow {
        height: 350px;
        margin: 1rem 0;
    }
    
    .hero-slideshow .slideshow-container {
        height: 350px;
    }
    
    .hero-slideshow .product-slide {
        flex-direction: column;
    }
    
    .hero-slideshow .product-image {
        flex: none;
        height: 180px;
        padding: 1rem;
    }
    
    .hero-slideshow .product-info {
        flex: none;
        height: 170px;
        padding: 1.5rem;
    }
    
    .hero-slideshow .product-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-slideshow .product-info p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-contact .btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    section:not(.hero-section) {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .team-card img {
        height: 250px;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 15px 15px 0 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* Smooth scroll offset for fixed navbar */
@media (min-width: 992px) {
    html {
        scroll-padding-top: 100px;
    }
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading animations */
.loading-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading-fade.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Additional hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(70, 152, 194, 0.3);
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .floating-contact,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card-back {
        position: relative !important;
        transform: none !important;
        background: white !important;
        color: black !important;
    }
}

/* Language Switcher Styles */
.language-switcher .btn {
    border-color: #4698C2;
    color: #4698C2;
    font-size: 0.875rem;
    margin-left: 10px;
}

.language-switcher .btn:hover {
    background-color: #4698C2;
    color: white;
}

.language-switcher .dropdown-menu {
    min-width: 120px;
}

.language-switcher .dropdown-item.active {
    background-color: #4698C2;
    color: white;
}

@media (max-width: 991px) {
    .language-switcher .btn {
        margin-left: 0;
        margin-top: 10px;
    }
}
