:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #e6f3ff;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

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

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

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin-left: auto;
    margin-right: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Remove all margin adjustments */
.about-dropdown,
.about-dropdown + li,
.nav-links li:last-child {
    margin: 0;
}

/* Language visibility for navigation items */
.nav-links li a.lang-ro {
    display: none;
}

body[data-lang="ro"] .nav-links li a.lang-ro {
    display: block;
}

body[data-lang="ro"] .nav-links li a.lang-en {
    display: none;
}

/* Keep existing styles for links */
.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links li a.active,
body[data-lang="en"] .nav-links li a.active.lang-en,
body[data-lang="ro"] .nav-links li a.active.lang-ro {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero::after {
    content: none; /* Remove any potential background overlay */
}

.hero .container {
    position: relative;
    z-index: 1;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 1rem;
}

.hero-content h1,
.hero-content p {
    background: transparent;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 7rem 0 4rem;
    background: var(--white);
    position: relative;
}

.services::before,
.services::after {
    content: none;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

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

.service-card {
    background-color: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card::before, .service-card::after {
    content: none;
}

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

/* Ensure content stays above overlay */
.service-card > *:not(::before):not(::after) {
    position: relative;
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-card.clickable {
    cursor: pointer;
}

/* Ensure service card links maintain text color */
a.service-card {
    color: var(--text-color);
    text-decoration: none;
}

a.service-card:hover {
    color: var(--text-color);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.service-card i {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 3px #8B4513;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.125rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .nav-links {
        margin-right: 1rem;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.about::before,
.about::after {
    content: none;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

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

.about-card {
    padding: 2rem;
    background: #F8F8F8;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: inherit;
}

.about-card i {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 3px #8B4513;
    margin-bottom: 2rem;
}

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

.about-card p {
    color: var(--primary-color);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.contact-item .contact-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
}

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

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

.footer-content p a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-content p a:hover {
    opacity: 0.8;
}

/* Responsive Design */
.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .welcome {
        padding: 6rem 0 3rem;
    }

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

    .welcome-content p {
        font-size: 1.1rem;
    }

    .about,
    .contact {
        padding: 4rem 0;
        min-height: auto;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Language Visibility */
.lang-ro {
    display: none !important;
}

.lang-en {
    display: block;
}

body[data-lang="ro"] .lang-ro {
    display: block !important;
}

body[data-lang="ro"] .lang-en {
    display: none !important;
}

/* Contact Form Language Visibility */
.contact-form input.lang-ro,
.contact-form textarea.lang-ro,
.contact-form button.lang-ro {
    display: none;
}

body[data-lang="ro"] .contact-form input.lang-ro,
body[data-lang="ro"] .contact-form textarea.lang-ro,
body[data-lang="ro"] .contact-form button.lang-ro {
    display: block;
}

body[data-lang="ro"] .contact-form input.lang-en,
body[data-lang="ro"] .contact-form textarea.lang-en,
body[data-lang="ro"] .contact-form button.lang-en {
    display: none;
}

/* Dropdown Menu Styles */
.services-dropdown,
.about-dropdown {
    position: relative;
}

.services-dropdown > a,
.about-dropdown > a {
    position: relative;
    padding-right: 25px;
}

.services-dropdown > a::after,
.about-dropdown > a::after {
    font-size: 10px;
    right: 8px;
}

/* Show dropdown menu ONLY on hover */
.services-dropdown:hover .dropdown-menu,
.about-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    font-weight: 700;
    background-color: transparent;
    padding-left: 1rem;
}

/* Hide Romanian items when English is active */
body[data-lang="en"] .dropdown-menu .lang-ro {
    display: none;
}

/* Hide English items when Romanian is active */
body[data-lang="ro"] .dropdown-menu .lang-en {
    display: none;
}

/* Responsive Dropdown */
@media (max-width: 768px) {
    .services-dropdown .dropdown-menu,
    .about-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .services-dropdown:hover .dropdown-menu,
    .about-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding: 8px 15px;
    }
    
    .dropdown-menu li a:hover {
        padding-left: 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Service Cards */
.service-card {
    scroll-margin-top: 100px; /* For smooth scrolling to sections */
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
        background-color: #f8f8f8;
    }

    .services-dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .services-dropdown.active .dropdown-content {
        display: block;
    }
}

/* Services Page */
.services-page {
    position: relative;
    padding-top: 120px;
}

.services-page .services-grid::after {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    color: rgba(0, 86, 179, 0.7);
    z-index: 10;
    pointer-events: none;
}

.services-page .service-card i {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 3px #8B4513;
    margin-bottom: 2rem;
}

.services-page .container {
    position: relative;
}

.services-page .services-intro {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.page-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Update existing services grid for the dedicated page */
.services-page .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.services-page .service-card {
    background-color: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-page .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .services-page {
        padding: 5rem 0 3rem;
    }

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

    .services-page .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* About Page Styles */
.about-page {
    position: relative;
    padding-top: 120px;
}

.about-page .about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.about-card {
    background: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-card i {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 3px #8B4513;
    margin-bottom: 2rem;
}

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

.about-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.mission-section,
.expertise-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.mission-section h2,
.expertise-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mission-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-color);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.expertise-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-page {
        padding: 5rem 0 3rem;
    }

    .about-page .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-intro p,
    .mission-section p,
    .expertise-list li {
        font-size: 1rem;
    }

    .mission-section h2,
    .expertise-section h2 {
        font-size: 1.75rem;
    }
}

/* Welcome Section */
.welcome {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.welcome-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.welcome-cta {
    margin-top: 2rem;
}

.welcome-cta .cta-button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn.settings {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cookie-btn.reject {
    background: #666;
    color: white;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-settings-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.cookie-option p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-left: 1.8rem;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn.save {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

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

    .cookie-settings-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-page .page-header {
    text-align: center;
    padding: 120px 0 40px;
    background: var(--accent-color);
}

.contact-page .page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-page .page-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
    flex: 1;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contact-card p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .contact-page {
        padding: 100px 0 60px;
    }
    
    .contact-page .page-header {
        padding: 100px 0 30px;
    }
    
    .contact-page .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card i {
        font-size: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-card p {
        font-size: 1.1rem;
    }
}

/* Copyright Page Styles */
.copyright-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.copyright-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.copyright-content p {
    text-align: center;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.copyright-content .page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    .copyright-content {
        padding: 1.5rem;
    }
    
    .copyright-content p {
        font-size: 1rem;
    }
    
    .copyright-content .page-title {
        font-size: 1.8rem;
    }
}

/* Global text alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.page-title, 
.section-title,
h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Content text alignment */
.welcome-content,
.about-content p,
.services-intro,
.contact-info,
.copyright-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.8;
}

/* Card text alignment */
.service-card,
.about-card,
.contact-card {
    text-align: center;
    padding: 2rem;
}

.service-card p,
.about-card p {
    text-align: center;
    line-height: 1.7;
}

/* Form elements alignment */
.contact-form-container {
    text-align: center;
}

.contact-form {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    text-align: center;
}

/* Footer alignment */
.footer-content {
    text-align: center;
}

@media (max-width: 768px) {
    .welcome-content,
    .about-content p,
    .services-intro,
    .contact-info,
    .copyright-content {
        padding: 0 0.5rem;
    }
}

/* All text alignment to center */
p, h1, h2, h3, .page-title, 
.welcome-content,
.about-content,
.about-content p,
.services-intro,
.services-intro p,
.service-card p,
.about-card p,
.contact-info,
.contact-card p,
.copyright-content,
.copyright-content p {
    text-align: center;
}

/* Services and About cards */
.service-card,
.about-card,
.contact-card {
    text-align: center;
    padding: 2rem;
}

/* Contact form */
.contact-form-container {
    text-align: center;
}

.contact-form {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    text-align: center;
}

/* Copyright page */
.copyright-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.copyright-content p {
    text-align: center;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Service Detail Page Styles */
.service-detail-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--white);
}

.service-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.service-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.service-detail-content > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Service Panel Styles */
.service-panel {
    width: 100%;
    background-color: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-panel h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    text-align: center;
}

.service-panel p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.2rem;
    text-align: left;
}

.service-panel ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 0;
}

.service-panel ul li {
    padding: 0.5rem 0;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Remove expandable features */
.service-panel ul {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 1rem;
    transition: none;
}

/* Remove down arrow */
.service-panel::after {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-detail-page {
        padding-top: 100px;
    }

    .service-detail-content {
        padding: 1.5rem;
    }

    .service-panel h3 {
        font-size: 1.5rem;
    }

    .service-panel p {
        font-size: 1.1rem;
    }

    .service-panel ul li {
        font-size: 1rem;
    }
}

/* Update services page icons */
.services-page .service-card i {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 3px #8B4513;
    margin-bottom: 2rem;
}

.about h2,
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.about-content p,
.contact-info .contact-text {
    color: var(--secondary-color);
    line-height: 1.8;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Service Detail Content Language Visibility */
.service-detail-content > div.lang-ro {
    display: none !important;
}

.service-detail-content > div.lang-en {
    display: grid;
}

body[data-lang="ro"] .service-detail-content > div.lang-ro {
    display: grid !important;
}

body[data-lang="ro"] .service-detail-content > div.lang-en {
    display: none !important;
}

/* Service Detail Page and About Page Shared Styles */
.service-detail-page,
.about-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--white);
}

.service-detail-content,
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Overview Panel Styles */
.overview-panel {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    background-color: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.overview-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Panels Grid Styles */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.service-panel,
.about-card {
    width: 100%;
    background-color: #F8F8F8;
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-panel:hover,
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Text Styles */
.service-detail-content h3,
.about-card h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    text-align: center;
}

.service-detail-content p,
.about-card p {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.2rem;
    text-align: center;
}

.service-detail-content ul,
.about-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 2rem;
}

.service-detail-content ul li,
.about-card ul li {
    padding: 0.75rem 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.service-detail-content ul li:hover,
.about-card ul li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .service-detail-content > div,
    .about-page .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-detail-page,
    .about-page {
        padding-top: 100px;
    }

    .service-detail-content,
    .about-content {
        padding: 1.5rem;
    }

    .service-detail-content > div,
    .about-page .about-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-content h2,
    .about-page h2 {
        font-size: 2rem;
    }

    .service-detail-content h3,
    .about-card h3 {
        font-size: 1.5rem;
    }

    .service-detail-content p,
    .about-card p {
        font-size: 1.1rem;
    }

    .service-detail-content ul li,
    .about-card ul li {
        font-size: 1rem;
    }

    .panels-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* About Page Panel Styles */
.service-panel {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-panel ul {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-panel.expanded ul {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-panel i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-panel.expanded i {
    transform: scale(1.1);
}

.service-panel::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-panel.expanded::after {
    transform: translateX(-50%) rotate(180deg);
} 