/* ==========================================================================
   Muhkem Mühendislik - Modern Premium CSS
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transition */
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all var(--transition-speed) var(--transition-curve);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Theme - Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-rgb: 217, 119, 6;
    --accent-secondary: #0284c7;
    --accent-secondary-rgb: 2, 132, 199;
    --border-color: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 12px 40px -10px rgba(15, 23, 42, 0.08);
    --glass-bg: #ffffff;
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    scroll-margin-top: 85px;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.bg-dark-blue {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 100px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.light-text h2, .light-text .section-lead {
    color: #f8fafc;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: #0f172a;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(var(--accent-rgb), 0.5);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
}

/* Header & Nav */
header {
    height: auto;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    height: auto;
    background-color: var(--bg-primary);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
    max-width: 1400px !important;
    width: 100%;
}

header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}



.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Navigation Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
    transform-origin: center 2px;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 12px 0;
    width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--transition-curve), transform 0.3s var(--transition-curve), visibility 0.3s var(--transition-curve);
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: left;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    padding-left: 24px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-calc {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent) !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.btn-calc:hover {
    background: var(--accent) !important;
    color: #0f172a !important;
}

/* Helper class to hide mobile-specific overview links on desktop */
.mobile-only-link {
    display: none !important;
}

.btn-calc::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}



/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    scroll-margin-top: 85px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(var(--accent-secondary-rgb), 0.1);
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.15);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.card-overlay-1, .card-overlay-2 {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    width: 260px;
    z-index: 3;
}

.card-overlay-1 {
    bottom: 30px;
    left: -40px;
}

.card-overlay-2 {
    top: 50px;
    right: -40px;
}

.overlay-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-overlay-2 .overlay-icon {
    background: rgba(var(--accent-secondary-rgb), 0.15);
    color: var(--accent-secondary);
}

.overlay-icon svg {
    stroke-width: 2px;
}

.glass-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.glass-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-info h3 {
    font-size: 1.875rem;
    margin-bottom: 24px;
}

.about-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.about-feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
}

.blueprint-card {
    background-color: #0f2d59;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 2px solid #2563eb;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: var(--card-shadow);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #93c5fd;
}

.blueprint-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.progress-wrapper {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e0f2fe;
}

.progress-bar-bg {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-rgb), 0.25);
    box-shadow: var(--card-shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #0f172a;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: #0f172a;
    border-color: var(--accent);
}

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

.projects-grid .project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.projects-grid .project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
    border-color: rgba(var(--accent-rgb), 0.15);
}

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-grid .project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    color: var(--text-primary);
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-info p strong {
    color: var(--text-primary);
}

.project-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 18px;
    padding: 4px 10px;
    background: rgba(var(--accent-secondary-rgb), 0.1);
    color: var(--accent-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Engineering Tool Section */
.calc-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
    margin-top: 50px;
}

.calc-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.calc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.control-group {
    margin-bottom: 28px;
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Range Slider Styling */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--bg-primary);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* Beam Visualization */
.beam-visual-container {
    position: relative;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.beam-canvas-wrapper {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    bottom: 50px;
}

#beamCanvas {
    width: 100%;
    height: 100%;
}

.beam-label-span {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beam-label-load {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.beam-arrow {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    animation: bounce-arrow 1.5s infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 4px); }
}

.beam-support {
    position: absolute;
    bottom: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.left-support { left: 24px; }
.right-support { right: 24px; }

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.result-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.result-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
}

.result-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.safety-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.safety-indicator.safe {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.safety-indicator.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.safety-indicator.unsafe {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.indicator-icon {
    flex-shrink: 0;
}

.safety-indicator.safe .indicator-icon { color: var(--success); }
.safety-indicator.warning .indicator-icon { color: var(--warning); }
.safety-indicator.unsafe .indicator-icon { color: var(--danger); }

.indicator-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: inherit;
}

.indicator-text p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-info-card > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-item span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-method-item a, .contact-method-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-method-item a:hover {
    color: var(--accent);
}

.working-hours {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.working-hours h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.working-hours p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form-card {
    padding: 40px;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

textarea.form-control {
    resize: none;
}

.error-msg {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: var(--danger);
}

.form-group.has-error .error-msg {
    display: block;
}

/* Spinner for submit button */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(15, 23, 42, 0.25);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-status-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.form-status-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Footer Section */
footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-2px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */

@media (max-width: 1380px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid, .calc-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-visual {
        max-width: 550px;
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .image-wrapper {
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1380px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation drawer for mobile */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        z-index: 999;
        transition: var(--transition);
        padding: 40px 24px;
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .nav-menu li {
        width: 100%;
        display: block;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.25rem;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Dropdown styles */
    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        min-width: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        padding-top: 10px !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: none;
    }

    .dropdown-menu li {
        width: 100% !important;
        display: block !important;
    }

    .dropdown:hover .dropdown-menu {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }

    .dropdown.open .dropdown-menu,
    .dropdown.open:hover .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu a {
        display: block;
        font-size: 1.1rem;
        padding: 10px 0;
        color: var(--text-secondary);
        white-space: normal;
    }
    
    .mobile-only-link {
        display: block !important;
    }

    .dropdown-menu a:hover {
        padding-left: 10px;
        background: transparent;
    }

    .dropdown-toggle::after {
        margin-left: 0;
        transition: transform 0.3s ease;
    }

    .dropdown.open .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    /* Menu open Hamburger transform */
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .card-overlay-1 {
        left: 10px;
    }
    
    .card-overlay-2 {
        right: 10px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem !important;
        gap: 8px;
    }
    
    .logo-img {
        height: 32px !important;
    }
    
    .lang-dropdown-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .hero-img {
        height: 380px;
    }
    
    .card-overlay-1, .card-overlay-2 {
        width: 220px;
        padding: 10px 14px;
    }
    
    .card-overlay-1 {
        bottom: 10px;
    }
    
    .card-overlay-2 {
        top: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Subpages Style Additions
   ========================================================================== */
.subpage-hero {
    padding: 140px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

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

.subpage-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.product-info-content h2 {
    font-size: 1.85rem;
    margin-bottom: 24px;
}

.product-info-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-specs-table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: var(--card-shadow);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tech-table th, .tech-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.tech-table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table td {
    color: var(--text-secondary);
}

.tech-table td strong {
    color: var(--text-primary);
}

.product-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.variant-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
}

.variant-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: var(--card-shadow);
}

.variant-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.variant-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.variant-card:hover .variant-img {
    transform: scale(1.06);
}

.variant-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: var(--transition);
}

.variant-card:hover .variant-icon-wrapper {
    background: var(--accent);
    color: #0f172a;
}

.variant-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.variant-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1380px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Product Tab System & Detail Pages */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}
.detail-img-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.detail-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.tab-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    gap: 16px;
}
.tab-header {
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.tab-header:hover {
    color: var(--accent);
}
.tab-header.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.tab-pane p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.tab-pane ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.tab-pane li {
    margin-bottom: 8px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Product Marquee/Slider Styling */
.marquee-container {
    width: 100%;
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 0;
    align-items: center;
}

.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 180px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    margin-right: 30px;
}

.marquee-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.marquee-img-box {
    width: 100%;
    height: 110px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.marquee-img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.marquee-item span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Currency Bar Styling */
.currency-bar {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 50px;
    opacity: 1;
    overflow: hidden;
}

#header.scrolled .currency-bar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom-width: 0;
}

.currency-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.currency-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.currency-rates {
    display: flex;
    align-items: center;
    gap: 24px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.currency-icon {
    font-weight: 800;
    color: var(--accent);
}

.currency-name {
    font-weight: 500;
}

.currency-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.currency-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .currency-container {
        justify-content: center;
        text-align: center;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Header Actions Currency Styling */
.header-currency {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
}

.header-currency .currency-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.header-currency .currency-item strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

/* Hide currency on screens smaller than 768px to prevent header layout wrapping on mobile */
@media (max-width: 768px) {
    .header-currency {
        display: none;
    }
}

/* Mobile responsive adjustments for simulator labels */
@media (max-width: 576px) {
    .beam-support {
        font-size: 0.75rem;
    }
    .beam-label-span, .beam-label-load {
        font-size: 0.75rem;
    }
    .left-support { left: 10px; }
    .right-support { right: 10px; }
    .beam-visual-container {
        height: 200px;
    }
}

/* Project Gallery Custom Styles */
.gallery-item {
    transition: transform 0.4s var(--transition-curve), box-shadow 0.4s var(--transition-curve);
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15) !important;
}
.gallery-item .gallery-img {
    transition: transform 0.6s var(--transition-curve);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

/* Custom Language Dropdown Selector Styles */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.lang-dropdown-btn:hover {
    border-color: var(--accent);
    background-color: rgba(217, 119, 6, 0.02);
}

.lang-dropdown-btn .dropdown-arrow {
    stroke: var(--accent);
    transition: transform 0.3s ease;
}

.custom-lang-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 150px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
    z-index: 1000;
    display: none;
    list-style: none;
    margin: 0;
}

.custom-lang-dropdown.open .lang-dropdown-list {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown-item:hover {
    background-color: rgba(217, 119, 6, 0.04);
    color: var(--text-primary);
}

.lang-dropdown-item.active {
    background-color: rgba(217, 119, 6, 0.08);
    color: var(--accent);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-text {
    white-space: nowrap;
}

/* Hide Google Translate top bar frame and translation tooltips */
.goog-te-banner-frame, 
.goog-te-banner, 
.skiptranslate iframe,
iframe.translation-button {
    display: none !important;
}
body {
    top: 0 !important;
}
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    font-size: 0 !important;
}
.goog-te-balloon-frame {
    display: none !important;
}
#goog-gt-tt, 
.goog-te-tooltip, 
.goog-te-tooltip-bag {
    display: none !important;
    visibility: hidden !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}


