/* 
  D-KORE SOLAR - Custom Styles
  Theme: Blue + White + Green
*/

:root {
    --primary-color: #0b2545; /* Dark Blue */
    --secondary-color: #13315c;
    --accent-color: #8f921e; /* Greenish/Yellow Accent */
    --accent-hover: #757818;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}
p { line-height: 1.7; color: #555; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 146, 30, 0.4);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 15px 0;
}
.navbar.sticky {
    padding: 10px 0;
}
.navbar-brand img { max-height: 100px; }
.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--accent-color) !important; }

/* Hero Section */
.hero-slider {
    height: 100vh;
    min-height: 600px;
    position: relative;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(11,37,69,0.9) 0%, rgba(11,37,69,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}
.hero-title { font-size: 3.5rem; font-weight: 800; color: white; margin-bottom: 20px;}
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

/* Page Header (Breadcrumb Banner) */
.page-header {
    background: var(--primary-color);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
}
.page-header h1 { color: white; }
.breadcrumb { justify-content: center; background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--accent-color); text-decoration: none; }
.breadcrumb-item.active { color: #ccc; }

/* Global Sections */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; position: relative; display: inline-block; padding-bottom: 10px; }
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}
.section-title p { color: #777; margin-top: 15px; font-size: 1.1rem; }

/* Cards & Glassmorphism */
.service-card, .project-card, .blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}
.service-card:hover, .project-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; transition: transform 0.5s ease; }
.service-card:hover .card-img-wrap img, .project-card:hover .card-img-wrap img, .blog-card:hover .card-img-wrap img {
    transform: scale(1.1);
}

/* Glassmorphism Info Box */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 30px;
}
.counter-box i { font-size: 3rem; color: var(--accent-color); margin-bottom: 15px; }
.counter-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ccc;
    padding-top: 80px;
}
footer h5 { color: white; margin-bottom: 25px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.social-icons a {
    display: inline-block;
    width: 40px; height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--accent-color); transform: translateY(-3px); }
.footer-bottom {
    background-color: var(--secondary-color);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    z-index: 99;
    display: none;
    transition: var(--transition);
}
#back-to-top:hover { background: var(--primary-color); cursor: pointer; }

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-dark { background-color: var(--primary-color); }
.bg-light-gray { background-color: var(--bg-light); }

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 10px;
        margin-top: 15px;
    }
    .hero-title { font-size: 2.5rem; }
}
