/*
* Smart Choice - Main Stylesheet
* Author: Your Name
* Version: 1.0
*/

/* =====================
   GLOBAL STYLES
===================== */

:root {
    /* Primary Colors */
    --white: #ffffff;
    --dark-blue: rgb(26, 32, 46);
    --accent: rgb(118, 197, 130);
    --accent-dark: rgb(130, 165, 55);
    --accent-light: rgb(170, 205, 90);
    --accent-soft: rgba(150, 187, 67, 0.15);
    --secondary: rgb(107, 114, 128);
    --secondary-light: rgb(150, 155, 165);
    --dark: #212529;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-dark-secondary: rgb(33, 40, 55);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-standard: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

body {
    font-family: var(--font-main);
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headings);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-standard);
}

a:hover {
    color: var(--accent-dark);
}

.min-vh-80 {
    min-height: 80vh;
}

.text-accent {
    color: var(--accent) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent-soft {
    color: rgba(150, 187, 67, 0.5) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-accent-soft {
    background-color: var(--accent-soft) !important;
}

.bg-dark-secondary {
    background-color: var(--bg-dark-secondary) !important;
}

.rounded-4 {
    border-radius: var(--radius-xl) !important;
}

.rounded-pill-start {
    border-radius: 50rem 0 0 50rem !important;
}

.rounded-pill-end {
    border-radius: 0 50rem 50rem 0 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* =====================
   BUTTONS
===================== */

.btn {
    font-weight: 500;
    transition: all var(--transition-standard);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover, .btn-accent:focus, .btn-accent:active {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover, .btn-outline-accent:focus, .btn-outline-accent:active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-link {
    font-weight: 500;
    padding: 0;
    color: var(--accent);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.btn-dark-secondary {
    background-color: var(--bg-dark-secondary);
    border-color: var(--bg-dark-secondary);
    color: var(--white);
}

.btn-dark-secondary:hover {
    background-color: #2c3547;
    border-color: #2c3547;
}

.btn-dark-secondary.active {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* =====================
   HEADER & NAVIGATION
===================== */

.header-main {
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    transition: transform var(--transition-standard);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    color: var(--dark);
    position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--accent);
    transition: width var(--transition-standard);
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    width: calc(100% - 2rem);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--accent);
}

.dropdown-menu {
    border: none;
    min-width: 230px;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-standard);
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
    background-color: var(--accent-soft);
    color: var(--accent);
}

/* =====================
   HERO SECTION
===================== */

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    padding: 3rem 0;
}

.hero-section h1 {
    font-weight: 700;
    color: var(--dark-blue);
}

.tech-illustration {
    position: relative;
    z-index: 1;
}

.tech-blob {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    z-index: -1;
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    background-color: var(--accent-soft);
    animation: blob-animation 8s infinite alternate;
}

.tech-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

.animation-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes blob-animation {
    0% {
        border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    }
    50% {
        border-radius: 30% 70% 50% 50% / 40% 50% 50% 60%;
    }
    75% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    }
}

/* =====================
   SERVICES
===================== */

.service-card {
    transition: all var(--transition-standard);
    overflow: hidden;
}

.service-card .card-body {
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transition: all var(--transition-slow);
    z-index: 0;
}

.service-card:hover::before {
    top: 0;
    opacity: 0.05;
}

.service-card:hover .icon-box {
    background-color: var(--accent);
    color: var(--white);
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--accent);
    transition: all var(--transition-standard);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* =====================
   ABOUT SECTION
===================== */

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    line-height: 1.2;
    max-width: 150px;
}

/* =====================
   CASE STUDIES
===================== */

.case-study-card {
    transition: all var(--transition-standard);
}

.case-study-card img {
    transition: all var(--transition-standard);
}

.case-study-card:hover img {
    transform: scale(1.05);
}

/* =====================
   TESTIMONIALS
===================== */

.testimonial-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.testimonial-quote {
    position: relative;
}

.testimonial-quote .bi-quote {
    position: absolute;
    top: -30px;
    left: -10px;
    opacity: 0.1;
    z-index: 0;
}

blockquote p {
    position: relative;
    z-index: 1;
}

/* =====================
   BLOG/EDUCATIONAL
===================== */

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all var(--transition-standard);
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card {
    overflow: hidden;
}

/* =====================
   NEWSLETTER
===================== */

.newsletter-form {
    max-width: 500px;
}

/* =====================
   FOOTER
===================== */

.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/world-map-dots.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-links li a {
    position: relative;
    transition: all var(--transition-standard);
    padding-left: 0;
}

.footer-links li a:hover {
    padding-left: 10px;
    color: var(--accent) !important;
}

.footer-newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    height: 50px;
}

.footer-newsletter .btn {
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-standard);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* =====================
   COOKIE CONSENT
===================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
}

.cookie-consent-banner.active {
    display: block;
    animation: slideUp var(--transition-standard);
}

.cookie-content {
    max-height: 70vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* =====================
   CONTACT PAGE
===================== */

.contact-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    background: linear-gradient(0deg, transparent, var(--accent-soft), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-form .form-control {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    height: auto;
    border-radius: var(--radius-lg);
    background-color: #f8fafc;
    transition: all var(--transition-standard);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(150, 187, 67, 0.25);
    background-color: var(--white);
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* =====================
   ABOUT PAGE
===================== */

.team-card {
    position: relative;
    overflow: hidden;
}

.team-card img {
    transition: all var(--transition-standard);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card .card-body {
    position: relative;
    z-index: 1;
}

.team-social {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-standard);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--accent);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-standard);
}

.team-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--accent-soft);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    left: -2.5rem;
    top: 0.5rem;
}

.timeline-year {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--accent-soft);
    color: var(--accent);
    border-radius: 50rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* =====================
   SERVICES PAGE
===================== */

.service-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-standard);
}

.service-card-large:hover .service-icon-large {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.service-benefit-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.service-benefit-item::before {
    content: '\F633';
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
}

/* =====================
   CASE STUDIES PAGE
===================== */

.case-study-full {
    position: relative;
}

.case-study-full .case-study-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-study-full .case-study-image img {
    transition: all var(--transition-standard);
}

.case-study-full:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary);
}

/* =====================
   TESTIMONIALS PAGE
===================== */

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\F6B0';
    font-family: "bootstrap-icons";
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    color: var(--accent-soft);
    opacity: 0.5;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

/* =====================
   EDUCATIONAL PAGE
===================== */

.category-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--accent-soft);
    color: var(--accent);
    border-radius: 50rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-standard);
}

.category-badge:hover {
    background-color: var(--accent);
    color: var(--white);
}

.blog-sidebar-section {
    margin-bottom: 2.5rem;
}

.blog-sidebar-section h4 {
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.blog-sidebar-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.popular-post {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 1rem;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* =====================
   404 ERROR PAGE
===================== */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    text-shadow: 5px 5px 0 rgba(150, 187, 67, 0.2);
    margin-bottom: 1.5rem;
}

/* =====================
   RESPONSIVE STYLES
===================== */

@media (max-width: 1199.98px) {
    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 1rem;
        max-width: 130px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        border-radius: var(--radius-lg);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: -30px auto 0;
    }
    
    .testimonial-img {
        width: 100px;
        height: 100px;
    }
    
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .display-4, .display-5 {
        font-size: calc(1.3rem + 1.5vw);
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -2rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .error-code {
        font-size: 7rem;
    }
}

/* Special effects for enhanced visual appeal */
.gloss-effect {
    position: relative;
    overflow: hidden;
}

.gloss-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: glossAnimation 6s infinite;
}

@keyframes glossAnimation {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 200%;
    }
}

/* Scroll animations */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Custom hover effects for cards */
.hover-zoom {
    transition: transform var(--transition-standard);
}

.hover-zoom:hover {
    transform: scale(1.03);
}

.hover-rotate {
    transition: transform var(--transition-standard);
}

.hover-rotate:hover {
    transform: rotate(2deg);
}

.hover-shadow {
    transition: box-shadow var(--transition-standard);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

/* Modern gradient text */
.gradient-text {
    background: linear-gradient(90deg, var(--accent), #4a8ec2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}