/*
* AcadeWise - IT Service Provider
* Custom CSS Styles
*/

/* ======= Global Styles ======= */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --primary-hover: #3367d6;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Dark Mode Variables */
    --dark-mode-bg: #1a1a1a;
    --dark-mode-text: #f0f0f0;
    --dark-mode-secondary-bg: #2d2d2d;
    --dark-mode-card-bg: #333333;
    --dark-mode-border: #444444;
}

[data-theme="dark"] {
    --primary-color: #64a0ff;
    --secondary-color: #50c878;
    --dark-color: #f0f0f0;
    --light-color: #2d2d2d;
    --primary-hover: #5690e9;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #444;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-color: var(--dark-mode-bg);
    color: var(--dark-mode-text);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ======= Top Bar ======= */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

/* ======= Navigation ======= */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.sticky-top {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

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

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link.active::after {
        display: none;
    }
}

/* ======= Hero Section ======= */
.hero-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9)), url('https://source.unsplash.com/random/1920x1080/?technology') no-repeat center center/cover;
    color: white;
    padding: 160px 0;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ======= Features Section ======= */
.feature-box {
    padding: 30px;
    border-radius: 5px;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

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

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

/* ======= Services Section ======= */
.service-card {
    border: none;
    margin-bottom: 30px;
    background-color: white;
}

[data-theme="dark"] .service-card {
    background-color: var(--dark-mode-card-bg);
}

/* Allow card-3d class to handle the hover effects */
.service-card:not(.card-3d):hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 30px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ======= About Section ======= */
.about-img {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    margin-bottom: 15px;
}

.about-feature-item i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ======= Counter Section ======= */
.counter-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9)), url('https://source.unsplash.com/random/1920x1080/?server') no-repeat center center/cover;
    padding: 80px 0;
    position: relative;
    color: white;
}

.counter-box {
    text-align: center;
    margin-bottom: 30px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ======= Testimonial Section ======= */
.testimonial-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(66, 133, 244, 0.1);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author-title {
    color: #777;
    font-size: 0.875rem;
}

/* ======= Blog Section ======= */
.blog-card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

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

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #777;
}

.blog-meta > div {
    margin-right: 20px;
}

.blog-meta i {
    margin-right: 5px;
}

/* ======= CTA Section ======= */
.cta-section {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9)), url('https://source.unsplash.com/random/1920x1080/?consultation') no-repeat center center/cover;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 30px;
}

/* ======= Contact Page ======= */
.contact-info-box {
    background: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
}

.contact-info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-content h4 {
    margin-bottom: 15px;
}

.contact-form {
    background: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.map-container {
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ======= Services Page ======= */
.service-detailed-card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.service-detailed-card .card-body {
    padding: 40px;
}

.service-detailed-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ======= Documentation Page ======= */
.doc-card {
    background: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
    transition: var(--transition);
}

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

.doc-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.doc-meta {
    font-size: 0.875rem;
    color: #777;
    margin-top: 15px;
}

.doc-meta i {
    margin-right: 5px;
}

.doc-meta > div {
    margin-right: 15px;
    display: inline-block;
}

/* ======= Blog Page ======= */
.blog-post {
    margin-bottom: 50px;
}

.blog-post-title {
    margin-bottom: 15px;
}

.blog-post-meta {
    margin-bottom: 20px;
    color: #777;
    font-size: 0.875rem;
}

.blog-post-meta > span {
    margin-right: 20px;
}

.blog-post-meta i {
    margin-right: 5px;
}

.blog-post-content {
    margin-bottom: 20px;
}

.blog-sidebar-widget {
    background: white;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.blog-sidebar-widget h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.blog-sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.widget-posts-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.widget-posts-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-posts-img {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.widget-posts-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-posts-content {
    flex-grow: 1;
}

.widget-posts-title {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.widget-posts-date {
    font-size: 0.75rem;
    color: #777;
}

.widget-categories ul,
.widget-tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget-categories li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    color: #444;
}

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

.widget-categories span {
    background-color: var(--light-color);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.widget-tags li {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 10px;
}

.widget-tags a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-color);
    border-radius: 3px;
    color: #444;
    font-size: 0.875rem;
}

.widget-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ======= Admin Dashboard ======= */
.admin-sidebar {
    background-color: var(--dark-color);
    color: white;
    height: 100%;
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 30px;
}

.admin-card {
    border: none;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    height: 100%;
}

.admin-card .card-body {
    padding: 25px;
}

.admin-card .card-title {
    margin-bottom: 20px;
}

.admin-dashboard-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-dashboard-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.admin-table {
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    overflow: hidden;
}

.admin-table thead th {
    background-color: var(--light-color);
    border-bottom: none;
    font-weight: 600;
}

.admin-form-card {
    border: none;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

/* ======= Responsive Styles ======= */
@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .service-detailed-card .card-body {
        padding: 25px;
    }
    
    .admin-content {
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* ======= 3D Elements and Dark Mode ======= */
/* 3D Card Effects */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

[data-theme="dark"] .card-3d {
    background-color: var(--dark-mode-card-bg);
    color: var(--dark-mode-text);
}

.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 3D Button Effect */
.btn-3d {
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 3D Text Effect */
.text-3d {
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2), 
                 2px 2px 0 rgba(0,0,0,0.1);
}

/* Dark Mode Styles */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--dark-mode-text);
}

[data-theme="dark"] .navbar {
    background-color: var(--dark-mode-card-bg) !important;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--dark-mode-text);
}

[data-theme="dark"] .text-dark {
    color: var(--dark-mode-text) !important;
}

[data-theme="dark"] .navbar-light .navbar-toggler {
    border-color: var(--dark-mode-border);
    color: var(--dark-mode-text);
}

[data-theme="dark"] .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(240, 240, 240, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

[data-theme="dark"] .feature-box,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .doc-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .contact-info-box,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-detailed-card,
[data-theme="dark"] .blog-sidebar-widget {
    background-color: var(--dark-mode-card-bg);
    color: var(--dark-mode-text);
}

[data-theme="dark"] .bg-light {
    background-color: var(--dark-mode-secondary-bg) !important;
}

[data-theme="dark"] .admin-table thead th {
    background-color: var(--dark-mode-secondary-bg);
    color: var(--dark-mode-text);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--dark-mode-secondary-bg);
    border-color: var(--dark-mode-border);
    color: var(--dark-mode-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--dark-mode-secondary-bg);
    color: var(--dark-mode-text);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
}

.partner-item {
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    height: 100px;
    width: 100%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px;
}

[data-theme="dark"] .partner-item {
    background-color: var(--dark-mode-card-bg);
}

[data-theme="dark"] .partner-logo {
    filter: brightness(0.9);
}

[data-theme="dark"] .partner-item h5 {
    color: var(--dark-mode-text);
}

.partner-logo img,
.partner-logo svg {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .footer,
    .btn,
    .admin-sidebar,
    .dark-mode-toggle {
        display: none !important;
    }
    
    body {
        color: #000;
        background-color: #fff;
    }
    
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}
