/* style.css - Modern Responsive Design for nDD */
:root {
    /* Original nDD colors */
    --primary-blue: #000050;
    --primary-dark: #000030;
    --primary-light: #000080;
    --secondary-color: #F9F9F9;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #cccccc;
    --dark-gray: #666666;
    
    /* Modern design variables */
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0, 0, 80, 0.1);
    --box-shadow-hover: 0 12px 48px rgba(0, 0, 80, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Modern Header */
#page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

#page-header img {
    max-width: min(90%, 1000px);
    height: auto;
    /*max-height: 140px;*/
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* Modern Navigation */
.nav-container {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 80, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
}

#page-menu {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    position: relative;
}

#page-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#page-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

#page-menu a:hover {
    color: white;
    transform: translateY(-2px);
}

#page-menu a:hover::before {
    opacity: 1;
}

#page-menu a b {
    color: white;
    position: relative;
}

/* Active navigation link styling */
#page-menu a.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    box-shadow: 0 4px 12px rgba(0, 0, 80, 0.2);
}

#page-menu a.active::before {
    opacity: 1;
}

#page-menu a.active:hover {
    transform: none;
    cursor: default;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 80, 0.2);
}

/* Modern Main Content */
#page-content {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 80, 0.1), rgba(0, 0, 80, 0));
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.content-image {
    position: relative;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.content-section:hover .content-image img {
    transform: scale(1.05);
}

.content-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-text h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-text-dark-bg p{
    color: var(--light-gray);
}

/* Modern Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-light));
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 0, 80, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--dark-gray);
}

.feature-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(0, 0, 80, 0.05);
}

.card-link:hover {
    background: rgba(0, 0, 80, 0.1);
    transform: translateX(5px);
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000050, #000080);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.service-card h3 {
    color: #000050;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 80, 0.1);
    color: #333;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Products Page Styles */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    border-radius: 12px;
    overflow: hidden;
    padding: 5px;
    text-align: center
}

.product-image img {
    max-width: min(100%, 400px);
    /*height: 80%;*/
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-content h2 {
    color: #000050;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.product-tag {
    display: inline-block;
    background: rgba(0, 0, 80, 0.1);
    color: #000050;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li:before {
    content: '✓';
    color: #000050;
    font-weight: bold;
}

.product-more-information {
    font-style: italic;
    font-size: 0.95em;
    text-decoration: none;
    color: #0000ff;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    color: #000050;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    padding: 0.5rem 0;
    color: #333;
}

.map-container {
    margin: 4rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
    background: linear-gradient(135deg, #000050, #000080);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.hour-card {
    background: rgba(0, 0, 80, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.hour-card h4 {
    color: #000050;
    margin-bottom: 0.5rem;
}

/* About Page Styles */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.mission-card,
.vision-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.mission-card::before {
    background: linear-gradient(90deg, #000050, #000080);
}

.vision-card::before {
    background: linear-gradient(90deg, #000080, #000050);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.value-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.value-card h4 {
    color: #000050;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Stats Grid (Homepage) */
.stats-grid {
    display: none; /*grid;*/
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Modern Footer */
#page-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

#page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), #ffffff);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    /*filter: brightness(0) invert(1);*/
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: white;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animation Controls */
.animation-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

.animation-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 80, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 12px 48px rgba(0, 0, 80, 0.3);
}

.animation-btn.active {
    background: linear-gradient(135deg, #00b894, #00cec9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 184, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section,
    .content-section,
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .hero-content,
    .content-text {
        padding: 3rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card:nth-child(even) .product-image {
        order: 1;
    }
    
    .product-card:nth-child(even) .product-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #page-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        /*left: 0;*/
        width: 50%;
        right: 90px;
        background: white;
        box-shadow: 0 20px 40px rgba(0, 0, 80, 0.1);
        padding: 1rem;
        display: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    #page-menu.active {
        display: flex;
    }
    
    #page-menu a {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
    
    #page-menu a b::after {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content,
    .content-text {
        padding: 2rem;
    }
    
    .features-grid,
    .services-grid,
    .values-grid,
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .service-card,
    .value-card,
    .product-card {
        padding: 2rem;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .animation-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    #page-header img {
        max-height: 100px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    #page-content {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .hero-section,
    .content-section {
        margin-bottom: 2rem;
    }
    
    .product-content h2 {
        font-size: 1.5rem;
    }
}

/* Page-specific hero styles */
.about-hero,
.services-hero,
.products-hero,
.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1,
.services-hero h1,
.products-hero h1,
.contact-hero h1 {
    font-size: 2.5rem;
    color: #000050;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000050, #000080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p,
.services-hero p,
.products-hero p,
.contact-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Alternate layout for even product cards */
.product-card:nth-child(even) .product-image {
    order: 2;
}

.product-card:nth-child(even) .product-content {
    order: 1;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-toggle {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 80, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    display: none;
    min-width: 150px;
    z-index: 1000;
    margin-top: 5px;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    white-space: nowrap;
}

.language-dropdown a:hover {
    background: rgba(0, 0, 80, 0.1);
    transform: translateX(5px);
}

.language-dropdown a.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: white;
}

.language-dropdown a.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    transform: none;
}

/* Simple Language Switcher */
.language-switcher-simple {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: var(--transition);
}

.language-link:hover {
    color: var(--primary-blue);
    background: rgba(0, 0, 80, 0.1);
}

.language-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
}

@media (max-width: 768px) {
    .language-switcher,
    .language-switcher-simple {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .language-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--medium-gray);
        margin-top: 5px;
    }
    
    .language-switcher-simple {
        justify-content: center;
    }
}
