:root {
    /* Light Theme Color Scheme */
    --bg-light: #FFFFFF;
    --bg-offwhite: #F8FAFC;
    --bg-gray: #F1F5F9;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --primary-blue: #0060FF;
    --secondary-blue: #0072FF;
    --accent-teal: #00FFBD;
    --brand-gradient: linear-gradient(114deg, #0060FF 26.45%, #00FFBD 129.94%);

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-nav: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 16px;
    margin-top: 114px;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 94px;
    gap: 3rem;
}

.nav-logo img {
    height: 94px;
    width: auto;
    max-width: 270px;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background-image: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    color: var(--text-dark);
}

.nav-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.search-icon:hover {
    background-image: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.language-icon:hover {
    background-image: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Tooltip for icons */
.nav-icon {
    position: relative;
}

.nav-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

.nav-icon:hover::after {
    opacity: 1;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: var(--space-md);
    min-width: 300px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--bg-offwhite);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-light);
    box-shadow: 0 0 0 3px rgba(0, 96, 255, 0.1);
}

.search-submit {
    padding: 12px 20px;
    background: var(--brand-gradient);
    color: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-nav);
}

.search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 96, 255, 0.3);
}

/* Search suggestions */
.search-suggestions {
    margin-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--space-md);
}

.search-suggestions h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.suggestion-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.suggestion-item {
    background: var(--bg-offwhite);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-item:hover {
    background: var(--primary-blue);
    color: var(--bg-light);
    transform: translateY(-1px);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: var(--space-md);
    min-width: 200px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-list {
    list-style: none;
}

.language-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.language-item:hover {
    background: var(--bg-offwhite);
    transform: translateX(4px);
}

.language-item.active {
    background: var(--primary-blue);
    color: var(--bg-light);
}

.language-name {
    flex: 1;
    font-weight: 500;
}

.language-code {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.language-item.active .language-code {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 20px 80px;
    position: relative;
    overflow: hidden;
    background: url('circuitbackground.jpeg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-nav);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 96, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 96, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 96, 255, 0.2);
}

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-offwhite);
}

.services h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 96, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 96, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 96, 255, 0.03) 0%, rgba(0, 255, 189, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(0, 96, 255, 0.3);
    box-shadow:
        0 25px 50px rgba(0, 96, 255, 0.15),
        0 15px 30px rgba(0, 96, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-blue);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.3rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Markets Section */
.markets {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.markets h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    letter-spacing: -1px;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.market-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.market-card-link:hover .market-card {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(0, 96, 255, 0.3);
    box-shadow:
        0 25px 50px rgba(0, 96, 255, 0.15),
        0 15px 30px rgba(0, 96, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.market-card-link:hover .market-card::before {
    opacity: 1;
}

.market-card-link:hover .market-card::after {
    left: 100%;
}

.market-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 96, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 96, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.market-card > * {
    position: relative;
    z-index: 2;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 96, 255, 0.03) 0%, rgba(0, 255, 189, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.market-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

/* Hover effects are now handled by .market-card-link */

.market-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-blue);
}

.market-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.market-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.market-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.market-features span {
    background: var(--primary-blue);
    color: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Product Pricing Styles */
.product-pricing {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.price-item {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Product Detail Styles */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.product-image-large {
    text-align: center;
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.product-code {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.product-features h3,
.product-applications h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.product-features ul,
.product-applications ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}

.product-features li,
.product-applications li {
    padding: 0.3rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before,
.product-applications li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.product-pricing-detail {
    margin-bottom: var(--space-xl);
}

.product-pricing-detail .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* About Section */
.about {
    padding: var(--space-3xl) 0;
    background: var(--bg-offwhite);
}

.about h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    letter-spacing: -1px;
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
    background: var(--bg-offwhite);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 96, 255, 0.08);
}

/* Contact Section */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    letter-spacing: -1px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-offwhite);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-light);
    box-shadow: 0 0 0 3px rgba(0, 96, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-gray);
    color: var(--text-muted);
    padding: var(--space-2xl) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 100px 20px 60px;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.8rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

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

    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.5rem);
    }

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