/*
    Custom Styles for docOffice Website
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #008080; /* Deep Teal */
    --secondary-color: #4682B4; /* Steel Blue */
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
}

/* --- Navigation --- */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 80vh;
}

.hero-section h1 {
    font-weight: 700;
}

#typing-effect {
    border-right: 2px solid white;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 24px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- Product Cards --- */
.product-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 20px 0;
}

/* --- Logo --- */
.navbar-brand .logo-icon {
    width: 30px;
    height: 30px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    border-right-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
}

.navbar-brand .plus-sign {
    color: var(--secondary-color);
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.navbar-brand .logo-text {
    font-weight: 700;
    font-size: 22px;
}

/* --- Interactive Features --- */
.feature-card, .support-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover, .support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon, .support-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.btn-outline-light {
    border-color: white;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- Modal Styles --- */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

/* --- Navbar Scroll Effects --- */
.navbar {
    transition: transform 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* --- Form Enhancements --- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
}

/* --- Accordion Styles --- */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 128, 128, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
}

/* --- Card Hover Effects --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-card, .support-card {
        margin-bottom: 2rem;
    }
}

/* --- Animation Classes --- */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* --- Loading States --- */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
