﻿/* Refined color palette */
:root {
    --primary-color: #2c3e50;
    --accent-color: rgba(76, 175, 80, 0.8);
    --gradient-light: rgba(236, 240, 241, 0.95);
    --gradient-white: rgba(255, 255, 255, 0.98);
    --shadow-soft: 0 10px 30px rgba(44, 62, 80, 0.1);
    --shadow-strong: 0 20px 40px rgba(44, 62, 80, 0.15);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero section */
.hero2 {
    position: relative;
    padding: 140px 0;
    background: linear-gradient(135deg, var(--gradient-white), var(--gradient-light));
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    
    text-align: left !important; /* Move text to the left */
    padding-left: 20px; /* Adjust padding for left alignment */
}

    .hero2 h1::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 100%;
        background: rgba(255, 255, 255, 0.8); /* White container behind text */
        z-index: -1;
        transform: translateY(-50%);
        border-radius: 10px;
        padding: 10px;
    }

    /* Animated gradient line */
    .hero2 .animated-line {
        height: 6px;
        background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
        width: 50%;
        transition: width 0.5s ease;
        margin: 0 auto;
        opacity: 1;
        border-radius: 10px;
    }

    .hero2:hover .animated-line {
        width: 100%;
    }

    /* Hero text with gradient */
    .hero2 h1 {
        font-size: 4rem;
        font-weight: 300;
        background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textGradient 5s ease-in-out infinite;
        position: relative;
        z-index: 1;
    }
/* Section container */
.section-container {
    background: rgba(255, 255, 255, 0.7); /* More transparent */
    backdrop-filter: blur(10px); /* Add blur effect */
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
    .section-container h3 {
        font-size: 2.5rem; /* Increase the font size for h3 titles */
        font-weight: bold; /* Make the title bold */
        margin-bottom: 15px; /* Add some space below the title */
    }

    .section-container p {
        font-size: 1.2rem; /* Adjust paragraph font size for better readability */
    }
/* More Products styling */
.more-products {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Add blur effect */
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    background-clip: text;
    
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Welcome section */
.welcome2 {
    position: relative;
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9);
    animation: floatGentle 6s ease-in-out infinite;
    max-width: 800px;
    margin: 0 auto;
}

    .welcome2 h1 {
        font-size: 4.2rem;
        font-weight: 300;
        color: var(--primary-color);
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
        position: relative;
    }

    .welcome2 h2 {
        font-size: 1.8rem;
        color: var(--accent-color);
        font-weight: 400;
        opacity: 0.9;
    }

/* Card design */
.card {
    height: 400px;
    background: white;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9);
    transition: var(--transition-smooth);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-20px);
        border-radius: 40px !important;
        box-shadow: 0 30px 60px rgba(44, 62, 80, 0.12), 0 0 0 1px rgba(41, 128, 185, 0.1);
    }

/* Card image */
.card-img-top {
    height: 400px;
    object-fit: cover;
    border-radius: 30px 30px 0 0;
    transition: var(--transition-smooth);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Card body */
.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7), transparent);
    padding: 30px 20px;
    transition: var(--transition-smooth);
    border-radius: 0 0 30px 30px;
    backdrop-filter: blur(5px);
}

.card:hover .card-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Card title */
.card-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: white !important;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    transition: var(--transition-smooth);
}

.card:hover .card-title {
    color: var(--primary-color) !important;
}

/* Gradient underline */
.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width 0.5s ease;
    border-radius: 2px;
}

.card:hover .card-title::after {
    width: 70%;
}

/* Arrow indicator */
.card::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-smooth);
    z-index: 3;
}

.card:hover::after {
    opacity: 0.6;
    transform: translateX(0);
}

/* Main container */
main.container {
    background: white;
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
    margin-top: -40px;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

@keyframes subtleFlow {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        height: 400px;
    }

    .card-img-top {
        height: 300px;
    }

    .welcome2 h1 {
        font-size: 3rem;
    }
}

/* New sign icon size */
.title-icon {
    width: 24px; /* Adjust size as needed */
    height: auto;
}

.powerBtn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.7), rgba(44, 62, 80, 0.7));
    color: #003366;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-size: 200% 200%;
    animation: glossyEffect 2s infinite alternate;
}

    .powerBtn:hover {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(76, 175, 80, 0.7));
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
    }


@keyframes glossyEffect {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}