/* ============================================
   DataVoice Website - Main Stylesheet
   Professional Design with Bilingual Support
   ============================================ */

:root {
    --dv-orange: #ed7615;
    --dv-dark: #1c1c1c;
    --dv-light: #f9fafb;
    --dv-gray: #6c757d;
    --dv-gray-light: #e9ecef;
    --dv-blue: #005b80;
    --dv-blue-dark: #0e3b5f;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dv-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--dv-gray);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--dv-gray);
    border: 1px solid transparent;
}

.language-switcher a.active {
    background-color: var(--dv-orange);
    color: #ffffff;
}

.language-switcher a:hover:not(.active) {
    background-color: var(--dv-light);
    color: var(--dv-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
   
 #scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  background: #111;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--dv-orange);
    color: #ffffff;
    border-color: var(--dv-orange);
}

.btn-primary:hover {
    background-color: #d96510;
    border-color: #d96510;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 118, 21, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--dv-orange);
    border-color: var(--dv-orange);
}

.btn-outline:hover {
    background-color: var(--dv-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--dv-blue);
    color: #ffffff;
    border-color: var(--dv-blue);
}

.btn-secondary:hover {
    background-color: #003d5c;
    border-color: #003d5c;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(237, 118, 21, 0.08), rgba(255, 255, 255, 1));
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-title-gradient {
    background: linear-gradient(to right, #005b80 15%, #b0a992 52%, #ee7717 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-services {
    display: inline-block;
    background-color: rgba(237, 118, 21, 0.1);
    color: var(--dv-orange);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--dv-gray);
    margin-bottom: 2rem;
    max-width: 520px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dv-orange);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--dv-gray);
    margin-top: 0.5rem;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 5rem 2rem;
    background-color: #ffffff;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--dv-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ============================================
   FLIP CARDS
   ============================================ */

.flip-card {
    perspective: 1000px;
    cursor: pointer;
    height: 280px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flip-card-front {
    background-color: #ffffff;
    border: 1px solid var(--dv-gray-light);
}

.flip-card-back {
    background-color: rgba(237, 118, 21, 0.05);
    transform: rotateY(180deg);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(237, 118, 21, 0.15);
    color: var(--dv-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dv-dark);
}

.card-text {
    color: var(--dv-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-back-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dv-dark);
}

.card-back-text {
    font-size: 0.95rem;
    color: var(--dv-gray);
    line-height: 1.5;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 5rem 2rem;
    background-color: var(--dv-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(237, 118, 21, 0.15);
    color: var(--dv-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dv-dark);
}

.feature-content p {
    color: var(--dv-gray);
    font-size: 0.95rem;
}

.features-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STRATEGIC SECTION
   ============================================ */

.strategic-section {
    padding: 5rem 2rem;
    background-color: #ffffff;
}

.strategic-content {
    max-width: 1280px;
    margin: 0 auto;
}

.strategic-subsection {
    margin-bottom: 4rem;
}

.strategic-subsection h3 {
    color: var(--dv-orange);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.strategic-intro {
    font-size: 1.05rem;
    color: var(--dv-gray);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.strategic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.strategic-list-item {
    padding: 1.5rem;
    background-color: var(--dv-light);
    border-radius: 10px;
    border-left: 4px solid var(--dv-orange);
    box-shadow: 0 4px 12px rgba(14, 59, 95, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategic-list-item p {
    margin: 0;
    color: var(--dv-dark);
    font-weight: 500;
}

.strategic-conclusion {
    padding: 2rem;
    background-color: rgba(237, 118, 21, 0.05);
    border-radius: 10px;
    margin-top: 2rem;
}

.strategic-conclusion p {
    margin-bottom: 0.5rem;
    color: var(--dv-dark);
    font-weight: 500;
}

.strategic-conclusion p:last-child {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--dv-orange);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 5rem 2rem;
    background-color: var(--dv-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #ffffff;
    border: none;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    padding: 1.5rem;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    width: 100%;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dv-dark);
}

.accordion-header:hover {
    background-color: var(--dv-light);
}

.accordion-header.active {
    background-color: rgba(237, 118, 21, 0.08);
    color: var(--dv-orange);
}

.accordion-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--dv-gray);
    line-height: 1.6;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.contact-section {
    padding: 5rem 2rem;
    background-color: #ffffff;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-wrapper {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dv-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dv-gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dv-orange);
    box-shadow: 0 0 0 3px rgba(237, 118, 21, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input {
    width: auto;
    margin: 0;
}

.form-checkbox label {
    margin: 0;
    font-weight: 400;
}

.form-checkbox a {
    color: var(--dv-orange);
    text-decoration: none;
    font-weight: 600;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--dv-orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: #d96510;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(237, 118, 21, 0.9), rgba(237, 118, 21, 1));
    color: #ffffff;
    text-align: center;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
}

.cta-button {
    background-color: #ffffff;
    color: var(--dv-orange);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-contact {
    margin-top: 2.5rem;
    opacity: 0.95;
}

.cta-contact p {
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-link:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--dv-blue-dark);
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dv-orange);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 1;
    line-height: 1.6;
}

.footer-copyright {
    color: #ffffff;
    opacity: 1;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-list a:hover {
    opacity: 1;
    color: var(--dv-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 1;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--dv-gray-light);
    padding-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dv-gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dv-dark);
}

.modal-body {
    color: var(--dv-dark);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dv-orange);
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .services-section,
    .features-section,
    .strategic-section,
    .faq-section,
    .contact-section,
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 250px;
    }
    
    .cta-links {
        gap: 1rem;
        flex-direction: column;
    }
}
