/* Components CSS - Imports all component styles */
@import url('./components/alert.css');
@import url('./components/app-card.css');
@import url('./components/button.css');
@import url('./components/card.css');
@import url('./components/color-picker.css');
@import url('./components/grid-canvas.css');
@import url('./components/input.css');
@import url('./components/modal.css');
@import url('./components/service-card.css');
@import url('./components/table.css');
@import url('./components/navigation.css');
@import url('./components/admin.css');

/* Section Components */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
}

.section-label,
.section-title,
.section-desc {
    text-align: center;
}

.section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 80px 20px;
}

.contact-section a {
    color: var(--glow);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: color 0.25s ease, fill 0.25s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.contact-icon[data-type="gmail"]:hover {
    background: #EA4335;
    color: #fff;
}

.contact-icon[data-type="gmail"]:hover svg {
    stroke: #fff;
}

.contact-icon[data-type="whatsapp"]:hover {
    background: #25D366;
    color: #fff;
}

.contact-icon[data-type="whatsapp"]:hover svg {
    fill: #fff;
}

.contact-icon[data-type="messenger"]:hover {
    background: #0084FF;
    color: #fff;
}

.contact-icon[data-type="messenger"]:hover svg {
    fill: #fff;
}

.contact-icon[data-type="telegram"]:hover {
    background: #26A5E4;
    color: #fff;
}

.contact-icon[data-type="telegram"]:hover svg {
    fill: #fff;
}

/* Footer Styles */
footer {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--glow-rgb), 0.3), transparent);
    pointer-events: none;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--glow);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-content section {
    margin-bottom: 48px;
    position: relative;
    padding-bottom: 32px;
}

.legal-content section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--glow-rgb), 0.3), transparent);
    pointer-events: none;
}

.legal-content h2 {
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Light theme overrides */
[data-theme="light"] .section-title {
    color: #0f172a;
}

[data-theme="light"] .legal-content h2 {
    color: #0f172a;
}

[data-theme="light"] .legal-content {
    color: #0f172a;
}

[data-theme="light"] .legal-content p {
    color: #0f172a;
}

[data-theme="light"] .legal-content ul {
    color: #0f172a;
}

[data-theme="light"] .legal-content strong {
    color: #0f172a;
}

/* Theme toggle visibility */
.theme-toggle .moon {
    display: block;
}

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

[data-theme="light"] .theme-toggle .moon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun {
    display: block;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll offset for fixed header */
section[id] {
    scroll-margin-top: 90px;
}

/* Light theme overrides */
[data-theme="light"] .section-title {
    color: #0f172a;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    #about {
        padding-top: 100px !important;
    }

    #about h1 {
        font-size: 2.4rem !important;
    }

    .contact-section {
        padding: 40px 20px !important;
    }
}