/* 
  DL SERVICE - Theme Stylesheet
  Author: Daniel Sousa
*/

/* ===== Theme Variables ===== */
:root {
    /* Dark theme (default) */
    --primary-color: #1e88e5;
    --primary-color-dark: #0d47a1;
    --secondary-color: #00b0ff;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --light-text: #f5f5f5;
    --muted-text: #b0b0b0;
    --border-color: #333;
    
    /* Additional colors */
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #03a9f4;
    
    /* Code colors */
    --code-color-1: #ff5722;
    --code-color-2: #4caf50;
    --code-color-3: #ffc107;
}

/* Light theme variables */
.light-theme {
    --dark-bg: #f5f5f5;
    --card-bg: #ffffff;
    --light-text: #333333;
    --muted-text: #666666;
    --border-color: #e0e0e0;
}

/* Tema claro para navbar */
.light-theme .navbar {
    background-color: rgba(245, 245, 245, 0.9) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .navbar-nav .nav-link {
    color: #333333;
}

.light-theme .navbar-toggler-icon {
    filter: invert(1);
}

/* Ajustes para hero section em tema claro */
.light-theme .hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../assets/images/banner.jpg') no-repeat center center;
}

.light-theme .hero-logo {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .hero-logo .logo-wrapper span {
    color: #333333;
}

.light-theme .tech-icons {
    color: #666666;
}

/* Transição suave entre temas */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar, .hero-section, .service-card, .price-card, .contact-info, .about-content, .website-image, .website-cta, .ideal-for-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Botão de alternar tema */
.theme-switch {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    transform: rotate(30deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
    .theme-switch {
        top: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--light-text);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    color: var(--light-text);
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Navbar ===== */
.navbar {
    background-color: rgba(18, 18, 18, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.logo-text:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    margin-right: 8px;
    border-radius: 4px;
}

.navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link:focus:after {
    width: 50%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/banner.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-text);
}

.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-logo {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-wrapper span {
    font-size: 2rem;
    font-weight: 700;
    margin-left: 1rem;
    color: var(--light-text);
}

.tech-icons {
    display: flex;
    justify-content: space-around;
    font-size: 1.5rem;
    color: var(--muted-text);
}

.tech-icons i {
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== Intro Section ===== */
.intro-section {
    background-color: var(--card-bg);
    padding: 4rem 0;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-section .lead {
    font-size: 1.2rem;
    color: var(--light-text);
}

/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.icon-box {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.service-card p {
    color: var(--muted-text);
    margin-bottom: 0;
}

.info-box {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    margin-top: 1rem;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box h4 i {
    margin-right: 0.5rem;
}

.info-box p {
    color: var(--muted-text);
    margin-bottom: 0;
}

/* ===== Papelaria Section ===== */
.papelaria-section {
    background-color: var(--card-bg);
    padding: 5rem 0;
}

.price-card {
    background-color: var(--dark-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.price-card h3 i {
    margin-right: 0.75rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-list li:last-child {
    border-bottom: none;
}

.service {
    color: var(--light-text);
}

.price {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--dark-bg);
    padding: 5rem 0;
}

.contact-info {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--light-text);
}

.contact-item a {
    color: var(--light-text);
    transition: all 0.3s ease;
}

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

/* ===== Footer ===== */
.footer-section {
    background-color: var(--card-bg);
    color: var(--muted-text);
    padding: 2rem 0;
    text-align: center;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-card, .price-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-collapse {
        background-color: rgba(18, 18, 18, 0.95);
        padding: 1rem;
        border-radius: 8px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-logo {
        padding: 1.5rem;
    }
    
    .logo-wrapper span {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 2rem 1rem;
    }
}

/* ===== Website Creation Section ===== */
.website-section {
    background-color: var(--dark-bg);
    padding: 5rem 0;
}

.website-image {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.device-mockup {
    display: flex;
    align-items: flex-end;
    margin-bottom: 2rem;
    position: relative;
}

.device-mockup i {
    margin: 0 1rem;
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.device-mockup i:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    opacity: 1;
}

.code-snippet {
    background-color: var(--darker-bg);
    padding: 1rem;
    border-radius: 6px;
    width: 100%;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--light-text);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-line {
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: typingCode 0.5s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }
.code-line:nth-child(6) { animation-delay: 1.1s; }
.code-line:nth-child(7) { animation-delay: 1.3s; }
.code-line:nth-child(8) { animation-delay: 1.5s; }

@keyframes typingCode {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-color-1 {
    color: var(--code-color-1);
}

.code-color-2 {
    color: var(--code-color-2);
}

.code-color-3 {
    color: var(--code-color-3);
}

.website-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.website-feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.website-feature:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-bottom: 0;
}

.website-cta {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.website-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.website-cta p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.light-theme .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.light-theme .btn-outline-primary:hover,
.light-theme .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
}

.ideal-for-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ideal-for-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.ideal-for-card .icon-box {
    margin: 0 auto 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.ideal-for-card h5 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--light-text);
}

.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        width: 50%;
    }
    
    .website-feature {
        margin-bottom: 1rem;
    }
    
    .website-cta {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .device-mockup i {
        margin: 0 0.5rem;
    }
    
    .website-cta h3 {
        font-size: 1.5rem;
    }
    
    .website-cta p {
        font-size: 1rem;
    }
    
    .col-lg-2-4 {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .code-snippet {
        font-size: 0.8rem;
    }
    
    .website-cta {
        padding: 1.5rem;
    }
}
