:root {
    --primary: #1a5f7a;
    --secondary: #159895;
    --accent: #57C5B6;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.2;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
    margin-bottom: -3px;
}

/* Enhanced Dropdown Menu */
.dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 400px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    overflow: hidden;
}

nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-sidebar {
    width: 120px;
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-right: 1px solid #e9ecef;
}

.dropdown-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 15px;
}

.dropdown-content {
    flex: 1;
    padding: 20px 15px;
}

.dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

.dropdown a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.language-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.language-toggle button.active {
    background-color: var(--primary);
    color: white;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    font-family: inherit;
  }
  
  .lang-btn {
    list-style: none; /* remove triangle */
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .lang-menu {
    position: absolute;
    margin-top: 4px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
  }
  
  .lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
  }
  
  .lang-menu a:hover {
    background: #f0f0f0;
  }
  

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    align-content: center;
}

.btn-primary:hover {
    background-color: #0f4a5f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background-color: rgba(26, 95, 122, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.model-container {
    width: 500px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.model {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 
        0 0 50px rgba(21, 152, 149, 0.3),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.model-inner {
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, var(--accent) 0%, #3aa895 100%);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    position: absolute;
    top: 15%;
    left: 15%;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(87, 197, 182, 0.3);
}

/* Apple-style scroll section */
.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.scroll-content {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.scroll-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.1;
    font-weight: 700;
    transition: all 0.5s ease;
}

.scroll-subtitle {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 50px;
    line-height: 1.4;
    font-weight: 400;
    transition: all 0.5s ease;
}

.scroll-visual {
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 50px;
}

/* Product Gallery Section */
.product-gallery {
    padding: 100px 0;
    background-color: white;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.gallery-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.gallery-subtitle {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-display {
    height: 500px;
    margin-bottom: 50px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5e7 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

#product-viewer {
    width: 100%;
    height: 100%;
}

.recenter-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-weight: 600;
}

.recenter-btn:hover {
    background-color: #0f4a5f;
    transform: translateY(-2px);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.gallery-btn.active, .gallery-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Industries Section */
.industries {
    padding: 100px 0;
    background-color: var(--light);
}

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

.industry-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

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

.industry-image {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.industry-content {
    padding: 25px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.industry-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.industry-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.industry-content .btn {
    align-self: flex-start;
    margin-top: auto;
    position: static !important;
    width: auto !important;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: white;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    height: 470px;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
}

.testimonial-track.top {
    animation: scroll-right 60s linear infinite;
}

.testimonial-track.bottom {
    animation: scroll-left 50s linear infinite;
    top: 200px;
    margin-top: 60px;
}

.testimonial {
    display: inline-flex;
    align-items: center;
    background-color: var(--light);
    border-radius: 8px;
    padding: 20px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 500px;
    max-width: 500px;
    white-space: normal;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--primary);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.testimonial-avatar.img {
    background-color: #e5e5e7;
    background-size: cover;
    background-position: center;
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Certifications Section */
.certifications {
    padding: 100px 0;
    background-color: var(--light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.certification-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.certification-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

.cta .btn {
    background-color: white;
    color: var(--primary);
    margin: 0 auto;
    height: 50px;
}

.cta .btn:hover {
    background-color: rgba(0,0,0,0.0);
    color: var(--light);
    border: 2px solid var(--light);
    transform: translateY(-3px);
    height: 50px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 20px;
}

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

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent);
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.contact-info {
    margin-top: 10px;
}

.contact-row {
    display: flex;
    margin-bottom: 8px;
}

.contact-label {
    font-weight: bold;
    color: white;
    min-width: 140px;
}

.contact-details {
    color: #adb5bd;
    min-width: 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

#phone-hero-visual {
    display: none;
}

/* Animations */
@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

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

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Language Toggle */

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 50px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        display: grid; place-items: center; height: 100px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .model-container {
        width: 350px;
        height: 350px;
    }

    .scroll-title {
        font-size: 2.8rem;
    } 

    #phone-hero-visual {
        display: block;
        margin: 0 auto;
        margin-top: 30%;
        display: grid; place-items: center; height: 100px;
    }

    #computer-hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: var(--shadow);
        padding: 20px 0;
        transition: all 0.4s ease;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        background-color: rgba(0,0,0,0.02);
        flex-direction: column;
        transition: all 0.4s ease;
        max-height: 0;
        overflow: hidden;
    }

    .dropdown.active {
        display: flex;
        max-height: 500px;
        margin-top: 10px;
    }

    .dropdown-sidebar {
        width: 100%;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .dropdown-title {
        margin-top: 10px;
    }

    .mobile-toggle {
        display: block;
    }

    .language-toggle {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        display: grid; place-items: center; height: 100px;
    }

    .btn {
        width: 80%;
        max-width: 250px;
    }

    .scroll-title {
        font-size: 2.2rem;
    }

    .scroll-subtitle {
        font-size: 1.2rem;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .cta h2 {
        font-size: 2.2rem;
    }

    .testimonial {
        min-width: 300px;
        max-width: 300px;
        flex-direction: column;
        text-align: center;
    }

    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .testimonials-container {
        height: 720px;
    }

    .testimonial-track.bottom {
        top: 300px;
    }

    #phone-hero-visual {
        display: block;
        margin: 0 auto;
        margin-top: 30%;
        display: grid; place-items: center; height: 100px;
    }

    #computer-hero-visual {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .scroll-title {
        font-size: 1.8rem;
    }

    .model-container {
        width: 280px;
        height: 280px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial {
        min-width: 280px;
        max-width: 280px;
    }

    .contact-label {
        min-width: 120px;
    }

    .contact-row {
        flex-direction: column;
        gap: 2px;
    }

    #phone-hero-visual {
        display: block; 
        margin: 0 auto;
        margin-top: 30%;
        display: grid; place-items: center; height: 100px;
    }

    #computer-hero-visual {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        height: auto;
    }
}
