/* CloudPrime Premium Overrides - Clean White Theme */

:root {
    --nav-color: #444444;
    /* Darker nav for light bg */
    --nav-hover-color: #ff5821;
    /* Orange accent from screenshot */
    --accent-color: #ff5821;
}

/* --- Logo Styling --- */
.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.header .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--nav-color);
    font-family: 'Raleway', sans-serif;
    letter-spacing: -0.5px;
}

/* Hide text on mobile to save space */
@media (max-width: 768px) {
    .header .logo-text {
        display: none;
    }

    .header .logo-img {
        height: 40px;
    }
}

/* --- Footer Logo --- */
.footer .footer-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 15px;
}

.footer .footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer .footer-logo {
        max-width: 220px;
    }
}

/* --- Services (Clean Card Style) --- */
.services.light-background {
    background-color: #f9f9fa;
    /* Light grey bg */
}

/* Note: The following .service-item styles are for the card layout, which may be replaced by the tab layout below. */
.service-item {
    background: #ffffff;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    padding: 30px;
    border-radius: 8px;
    /* Slightly rounded */
    height: 100%;
    transition: all 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 1;
}

.service-item:hover {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-color);
}

.service-item .icon {
    font-size: 36px;
    line-height: 1;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
    color: #444444;
}

.service-item p {
    color: #5e5e5e;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

/* --- Services (Tabbed Navigation Style - copied from Features) --- */
/* --- Services (Tabbed Navigation Style - copied from features with high specificity) --- */
#services .nav-tabs {
    border: 0;
}

#services .nav-link {
    background-color: var(--surface-color);
    color: var(--heading-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    padding: 15px 20px;
    transition: 0.3s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
}

#services .nav-link i {
    padding-right: 15px;
    font-size: 48px;
    transition: 0.3s;
}

#services .nav-link h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    transition: 0.3s;
}

/* Hover State - Cool Red */
#services .nav-link:hover {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

#services .nav-link:hover h4,
#services .nav-link:hover i {
    color: var(--accent-color) !important;
}

/* Active State - Solid Red Background */
#services .nav-link.active {
    background: var(--accent-color) !important;
    color: var(--contrast-color) !important;
    border-color: var(--accent-color) !important;
}

#services .nav-link.active h4,
#services .nav-link.active i {
    color: var(--contrast-color) !important;
}

/* Tab Content */
#services .tab-content {
    margin-top: 30px;
}

#services .tab-pane h3 {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 26px;
}

#services .tab-pane ul {
    list-style: none;
    padding: 0;
}

#services .tab-pane ul li {
    padding-bottom: 10px;
}

#services .tab-pane ul i {
    font-size: 20px;
    padding-right: 4px;
    color: var(--accent-color);
}

#services .tab-pane p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #services .nav-link i {
        padding: 0;
        line-height: 1;
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    #services .nav-link {
        padding: 15px;
    }

    #services .nav-link i {
        font-size: 24px;
    }
}


/* --- About Section --- */
.about .about-meta {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.about .about-title {
    font-size: 32px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 20px;
}

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

.about ul.feature-list {
    list-style: none;
    padding: 0;
}

.about ul.feature-list li {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

/* --- Team Section --- */
.team-member {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member .member-img {
    position: relative;
    overflow: hidden;
}

.team-member .social {
    position: absolute;
    left: 0;
    bottom: -40px;
    right: 0;
    height: 40px;
    opacity: 0;
    transition: bottom ease-in-out 0.4s, opacity ease-in-out 0.4s;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member .member-img:hover .social {
    bottom: 0;
    opacity: 1;
}

.team-member .social a {
    transition: color 0.3s;
    color: #012970;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-member .social a:hover {
    color: var(--accent-color);
}

.team-member .member-info {
    padding: 25px 15px;
}

.team-member h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 18px;
    color: #012970;
}

.team-member span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #aaaaaa;
}

/* --- Testimonials --- */
.testimonials .testimonial-item {
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 30px 15px;
    /* Add margin for swiper slide spacing */
    background: #fff;
    border-radius: 10px;
    position: relative;
    height: 100%;
}

.testimonials .testimonial-img {
    width: 90px;
    border-radius: 50%;
    border: 6px solid #fff;
    float: left;
    margin: 0 10px 0 0;
}

.testimonials h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: #111;
}

.testimonials h4 {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.testimonials .stars {
    margin: 10px 0;
}

.testimonials .stars i {
    color: #ffc107;
    margin: 0 1px;
}

.testimonials .quote-icon-left,
.testimonials .quote-icon-right {
    color: #ffda6a;
    /* Lighter yellow/orange */
    font-size: 26px;
}

.testimonials .quote-icon-left {
    display: inline-block;
    left: -5px;
    position: relative;
}

.testimonials .quote-icon-right {
    display: inline-block;
    right: -5px;
    position: relative;
    top: 10px;
}

.testimonials p {
    font-style: italic;
    margin: 0 15px 15px 15px;
    padding: 20px 20px 60px 20px;
    background: #f9f9f9;
    /* Slight bubble bg? Or just text */
    background: transparent;
    border-radius: 6px;
}

/* --- Global Utilities --- */
.section-title h2 {
    color: #444444;
    /* Dark title for light bg */
}


/* --- Modern Portfolio Hover Card --- */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 320px;
    /* Taller card */
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.portfolio-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.portfolio-card:hover .card-bg {
    transform: scale(1.1);
}

.portfolio-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(7, 30, 56, 0.4));
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(7, 30, 56, 0.2));
    opacity: 1;
}

.portfolio-card .card-content {
    color: #fff;
    z-index: 3;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-content {
    transform: translateY(0);
}

.portfolio-card .icon-box {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.portfolio-card .icon-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
}


.portfolio-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
    padding-top: 0px;
    overflow: hidden;
}

.portfolio-card:hover p {
    opacity: 1;
    max-height: 100px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Hero Section Fixes --- */
.hero .hero-img img {
    position: relative !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    inset: auto;
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
    z-index: 5;
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Ensure text is above everything */
.hero h1,
.hero p,
.hero .btn-get-started {
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Better visibility on dark bg */
}

/* Remove Blue Overlay */
.hero:before {
    display: none !important;
}

/* Hero Outline Button */
.hero .btn-outline-light {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
    text-decoration: none;
}

.hero .btn-outline-light:hover {
    background: #fff;
    color: var(--accent-color);
}