/* 
* Isurus Ltd - Main Stylesheet
* Version: 1.0
* Author: Isurus Development Team
*/

/* ===== Custom Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #2d3d4d;
    --secondary-color: #01a3c9;
    --accent-color: #ffc107;
    --dark-color: #333333;
    --light-color: #f2f2f2;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transition Speed */
    --transition-speed: 0.3s;
}

/* ===== Base Styles ===== */
html, body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* ===== Utility Classes ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-margin {
    margin: var(--spacing-xl) 0;
}

.text-justify {
    text-align: justify;
}

/* ===== Header Styles ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.logo {
    max-height: 50px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-family: var(--font-primary);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color var(--transition-speed);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

.client-login-btn {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-left: var(--spacing-md);
    transition: background-color var(--transition-speed);
}

.client-login-btn:hover {
    background-color: var(--accent-color);
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) 0;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

/* ===== Hero Section and Page Hero Section Styles ===== */
/* Common styles for both hero types */
.hero-section, .page-hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding: 8rem 0;
}

.hero-section::before, .page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Darker overlay for the entire hero section */
}

.hero-section .hero-content, .page-hero-section .hero-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 35px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Add subtle animated accent line */
.hero-section .hero-content::after, .page-hero-section .hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.hero-section .hero-title, .page-hero-section .hero-title {
    color: white;
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(120deg, #ffffff 0%, var(--accent-color) 70%);
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    animation: title-fade-in 1.2s ease-out forwards;
}

@keyframes title-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 85%;
    line-height: 1.6;
    margin-bottom: 25px;
    animation: subtitle-fade-in 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes subtitle-fade-in {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: buttons-fade-in 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes buttons-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons .btn {
    margin-right: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Services Section ===== */
.services-section .card {
    border: none;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services-section .card-img-top {
    height: 180px;
    object-fit: cover;
}

.services-section .card-body {
    padding: var(--spacing-lg);
}

.services-section .card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.services-section .card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

/* ===== Portfolio Section ===== */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.portfolio-img {
    transition: transform var(--transition-speed);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    padding: var(--spacing-lg);
    color: white;
    text-align: center;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.portfolio-overlay p {
    margin-bottom: var(--spacing-md);
}

.portfolio-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.portfolio-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonial-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
    display: flex; /* Added */
    flex-direction: column; /* Added */
    height: 100%; /* Added to make all items in a row the same height */
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding: 0 var(--spacing-md);
    flex-grow: 1; /* Added to make text expand */
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.2;
}

.testimonial-text::before {
    top: -10px;
    left: -5px;
}

.testimonial-text::after {
    bottom: -20px;
    right: -5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: var(--spacing-md);
    object-fit: cover;
}

.testimonial-author-info h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author-info p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: var(--font-size-sm);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.contact-info-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.contact-info-content h5 {
    margin-bottom: var(--spacing-xs);
}

.contact-info-content p {
    margin-bottom: 0;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.contact-form .btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.contact-form .btn-submit:hover {
    background-color: var(--accent-color);
}

/* ===== Footer Styles ===== */
.site-footer {
    background-color: var(--dark-color);
    color: #dee2e6;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-contact-info p {
    margin-bottom: var(--spacing-sm);
}

.footer-contact-info a {
    color: #dee2e6;
}

.footer-contact-info a:hover {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: var(--spacing-sm);
    transition: background-color var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #dee2e6;
    transition: color var(--transition-speed), padding-left var(--transition-speed);
    display: block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: var(--spacing-sm);
}

.footer-divider {
    margin: var(--spacing-lg) 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.copyright, .sister-brands {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.sister-brands {
    text-align: right;
}

.sister-brands a {
    color: #dee2e6;
}

.sister-brands a:hover {
    color: var(--accent-color);
}

/* Contact Us Fixed Button */
.contact-us-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.btn-contact-us {
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn-contact-us:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
}

/* Client Login Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: var(--spacing-lg);
}

.btn-close {
    color: white;
}

/* ===== CTA Section Styles ===== */
.cta-section {
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: white !important;
    overflow: hidden !important;
}

/* Dark overlay for better text contrast */
.cta-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(45, 61, 77, 0.85) 100%) !important;
    z-index: 1 !important;
}

/* Ensure content appears above overlay */
.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced text styling for better contrast */
.cta-section h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p,
.cta-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced button styling for CTA sections */
.cta-section .btn {
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: #0191b3;
    border-color: #0191b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background-color: transparent;
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Additional contrast enhancement for smaller screens */
@media (max-width: 767.98px) {
    .cta-section::before {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(45, 61, 77, 0.9) 100%);
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }
    
    .cta-section p,
    .cta-section .lead {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-left: 0;
    }
    
    .client-login-btn {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 100%;
    }
    
    .sister-brands {
        text-align: left;
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section, .page-hero-section {
        padding: 5rem 0;
    }
    
    .hero-section .hero-content, .page-hero-section .hero-content {
        background-color: rgba(0, 0, 0, 0.3);
        padding: 18px;
        width: 70%;
        margin-left: 20px;
        border-left: 3px solid var(--accent-color);
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 575.98px) {
    html, body {
        font-size: 0.9rem;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .hero-section, .page-hero-section {
        padding: 3rem 0 3rem;
        text-align: left;
    }
    
    .hero-section .hero-content, .page-hero-section .hero-content {
        padding: 15px;
        background-color: rgba(0, 0, 0, 0.25);
        width: 65%;
        margin-left: 15px;
        margin-right: 0;
        border-left: 2px solid var(--accent-color);
    }
    
    .hero-section .hero-title, .page-hero-section .hero-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .hero-section .hero-subtitle, .page-hero-section .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
        max-width: 100%;
    }
    
    .contact-us-fixed {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-contact-us {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}