/* ============================================
   VARIABILE ȘI RESTYLE GLOBAL
   ============================================ */

:root {
    --primary-white: #FFFFFF;
    --primary-dark: #00120C;
    --primary-cyan: #00ADEF;
    --accent-orange: #EC8112;
    --accent-yellow: #E9B418;
    --light-gray: #F8F9FA;
    --border-gray: #E5E7EB;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Colors theme */
    --bg-primary: var(--primary-white);
    --bg-secondary: var(--light-gray);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-light);
    --border-color: var(--border-gray);
    --navbar-bg: var(--primary-white);
    --navbar-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Dark mode theme */
html[data-theme="dark"] {
    --bg-primary: #1F2937;
    --bg-secondary: #111827;
    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --border-color: #374151;
    --navbar-bg: #111827;
    --navbar-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .mobile-toggle span {
    background-color: #FFFFFF;
}

@media (max-width: 768px) {
    html[data-theme="dark"] .mobile-theme-toggle-wrapper {
        border-top-color: transparent;
    }
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   CONTAINER ȘI LAYOUT UTILITY
   ============================================ */

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

.text-center {
    text-align: center;
}

/* ============================================
   NAVIGARE
   ============================================ */

.navbar {
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--navbar-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}

.skip-link:focus {
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 8px 16px;
    background-color: var(--primary-cyan);
    color: #ffffff;
    border-radius: 4px;
    z-index: 1000;
}

.navbar.navbar-scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-right {
    display: none;
    gap: 8px;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
    aspect-ratio: 1447 / 546;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-cyan);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-cyan);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 28px;
    overflow: visible;
    outline: none !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:focus-within,
.theme-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-outline: none !important;
}

.theme-toggle::-moz-focus-inner {
    border: none !important;
    outline: none !important;
}

.theme-toggle:hover {
    -webkit-box-shadow: none !important;
}

.toggle-track,
.toggle-thumb {
    outline: none !important;
    pointer-events: none;
}

.toggle-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--border-color);
    border-radius: 14px;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--primary-white);
    border-radius: 50%;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.icon-light {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-dark {
    display: none;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .icon-light {
    display: none;
}

html[data-theme="dark"] .icon-dark {
    display: flex;
}

html[data-theme="dark"] .toggle-track {
    background-color: var(--primary-cyan);
}

html[data-theme="dark"] .toggle-thumb {
    left: 24px;
}

.theme-toggle:hover .toggle-track {
    opacity: 0.8;
}

.theme-toggle-label {
    display: none;
}

.theme-toggle-desktop {
    display: flex;
}

.theme-toggle-mobile {
    display: none;
}

.mobile-theme-toggle-wrapper {
    display: none;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--navbar-bg);
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 550px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        background-color: var(--light-gray);
        color: var(--primary-cyan);
    }

    .theme-toggle-desktop {
        display: none !important;
    }

    .theme-toggle-mobile {
        display: flex;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .theme-toggle-mobile:focus,
    .theme-toggle-mobile:focus-visible,
    .theme-toggle-mobile:active {
        outline: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    .theme-toggle-mobile::-moz-focus-inner {
        border: none !important;
        outline: none !important;
    }

    .mobile-theme-toggle-wrapper {
        display: flex;
    }

    .nav-right {
        display: flex;
    }
}

@media (min-width: 768px) {
    .theme-toggle-label {
        display: inline;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-cyan) 100%);
    color: var(--primary-white);
    padding: 80px 20px;
    text-align: center;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--primary-white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #d66d0e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button-white {
    display: inline-block;
    background-color: var(--primary-white);
    color: var(--primary-dark);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

    .hero-content p {
        font-size: 1rem;
    }
}

/* ============================================
   SECȚIUNI
   ============================================ */

.section-intro {
    padding: 60px 20px;
    background-color: var(--bg-secondary);
}

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

.section-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.section-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.section-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-item h3 {
    color: var(--primary-dark);
    margin: 15px 0;
    font-size: 1.5rem;
}

html[data-theme="dark"] .section-item h3 {
    color: var(--primary-white);
}

.section-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   SERVICII PREVIEW
   ============================================ */

.services-preview {
    padding: 60px 20px;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

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

.service-card {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-cyan);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--text-primary);
    margin: 15px 0;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-cyan) 100%);
    color: var(--primary-white);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section-light {
    background-color: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
}

.cta-section-light h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.cta-section-light p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background-color: var(--primary-dark);
    color: var(--primary-white);
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    padding: 40px 20px;
}

.about-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

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

.value-card {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-cyan);
}

.value-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   SERVICII PAGE
   ============================================ */

.services-section {
    margin: 40px 0;
}

.service-detail-item {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-item:last-child {
    border-bottom: none;
}

.service-detail-item h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.service-detail-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
}

.service-list li {
    padding: 10px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 25px;
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: bold;
}

/* ============================================
   PROIECTE PAGE
   ============================================ */

.projects-section {
    margin: 40px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00adef 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-white);
}

.project-card > * {
    padding: 0 20px;
}

.project-card h3 {
    color: var(--text-primary);
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.project-type {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 20px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 10px 20px 0;
}

.project-info {
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 20px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
    margin: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
}

.contact-info h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 8px 0;
}

.contact-item a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .contact-items-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
}

.contact-message h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-message p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.method-box {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-cyan);
}

.method-box h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.method-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-section {
    background-color: var(--bg-secondary);
    padding: 20px 20px;
    border-radius: 8px;
    text-align: center;
}

.map-section h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.map-placeholder {
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.map-placeholder p {
    margin: 10px 0;
}

.map-placeholder a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.map-placeholder a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   BUTOANE
   ============================================ */

.btn-primary {
    display: inline-block;
    background-color: var(--primary-cyan);
    color: var(--primary-white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0088b8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-white);
    color: var(--primary-dark);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--primary-cyan);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-cyan);
    color: var(--primary-white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-dark);
    color: var(--primary-white);
    padding: 40px 20px 20px;
    transition: background-color 0.3s ease;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER CERTIFICATIONS
   ============================================ */

.footer-certifications {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.footer-cert-link img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.footer-cert-link:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-certifications {
        gap: 15px;
        padding: 20px 0;
    }

    .footer-cert-link img {
        height: 40px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .footer-certifications {
        gap: 10px;
        padding: 15px 0;
    }

    .footer-cert-link img {
        height: 35px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .section-grid {
        gap: 20px;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

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

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}
