/* ==========================================
   CD-SYSTEM BASE - DEMO ACCOUNTING-1
   ========================================== */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-transform: none;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.2em;
    font-weight: 700;
}

h2 {
    font-size: 2.4em;
    font-weight: 600;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
}

h4 {
    font-size: 1.4em;
    font-weight: 600;
}

h5 {
    font-size: 1.2em;
    font-weight: 600;
}

h6 {
    font-size: 1.1em;
    font-weight: 600;
}

/* Header Styles */
#header .header-top {
    border-bottom-width: 1px;
    border-bottom-color: rgba(0,0,0,0.1);
}

#header .header-nav-main {
    background: transparent;
}

#header .header-nav-main nav > ul > li > a {
    text-transform: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 1.2rem 1rem;
    transition: all 0.3s ease;
}

#header .header-nav-main nav > ul > li > a:hover {
    color: var(--primary);
}

#header .header-nav-main nav > ul > li.active > a {
    color: var(--primary);
    font-weight: 600;
}

/* Dropdown Styles */
#header .header-nav-main.header-nav-main-dropdown-modern nav > ul > li.dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

#header .header-nav-main.header-nav-main-dropdown-modern nav > ul > li.dropdown .dropdown-menu li a {
    font-weight: 500;
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

#header .header-nav-main.header-nav-main-dropdown-modern nav > ul > li.dropdown .dropdown-menu li a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Button Styles */
.btn {
    font-weight: 600;
    text-transform: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1em;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.2);
    overflow: visible;
}

.progress-bar {
    border-radius: 4px;
    position: relative;
    transition: width 1.5s ease;
}

.progress-bar-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2em;
}

/* Stats Section */
.stats-section {
    background: var(--light);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1em;
    color: var(--dark);
    font-weight: 500;
}

/* Newsletter Form */
.newsletter-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.newsletter-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,136,204,0.25);
}

/* Footer */
#footer {
    background: var(--dark);
    color: #fff;
}

#footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#footer a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

#footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    #header .header-nav-main nav > ul > li > a {
        padding: 1rem 0.8rem;
        font-size: 1em;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .card-body {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Custom Variables */
:root {
    --primary: #0088CC;
    --primary-dark: #006699;
    --secondary: #6C757D;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    --light: #F8F9FA;
    --dark: #343A40;
    --default: #777;
}
