/* Main Styles for Ihtad */

/* General */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 85px;
}

/* Brand Colors */
:root {
    --primary: #0c8a56;
    --primary-dark: #097548;
    --primary-light: rgba(12, 138, 86, 0.1);
    --secondary: #f8f9fa;
    --accent: #ffc107;
    --accent-dark: #e0a800;
    --text-dark: #333;
    --text-light: #767676;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0c8a56 0%, #097548 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
}

.lead {
    font-weight: 400;
    font-size: 1.1rem;
}

.display-4 {
    font-weight: 800;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(12, 138, 86, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(12, 138, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(12, 138, 86, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(12, 138, 86, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(12, 138, 86, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
    transition: var(--transition);
}

/* Floating Glass Navigation */
.navbar-float {
    position: fixed !important;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1000px;
    z-index: 1050;
    border-radius: 50px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.glass-nav .container-fluid {
    padding: 0.8rem 1.5rem;
}

.glass-nav .navbar-brand img {
    max-height: 32px;
    transition: var(--transition);
}

.glass-link {
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    transition: var(--transition) !important;
    border-radius: 25px;
    position: relative;
    background: transparent !important;
    font-size: 0.9rem;
    margin: 0 0.1rem;
}

.glass-link:hover,
.glass-link:focus {
    color: var(--primary) !important;
    background: rgba(12, 138, 86, 0.08) !important;
    transform: translateY(-1px);
}

.glass-link::before {
    display: none;
}

/* Glass Dropdown */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0.5rem !important;
}

.glass-dropdown .dropdown-item {
    color: #333 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 15px !important;
    margin: 0.2rem !important;
    transition: var(--transition) !important;
    font-size: 0.85rem;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(12, 138, 86, 0.08) !important;
    color: var(--primary) !important;
    transform: translateX(3px);
}

/* Glass Toggler for Mobile */
.glass-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    padding: 0.4rem !important;
}

.glass-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.25) !important;
}

/* Navigation Items Right Alignment */
.navbar-nav.ms-auto {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Responsive Glass Navigation */
@media (max-width: 991px) {
    .navbar-float {
        width: 90%;
        top: 10px;
    }
    
    .glass-nav .navbar-collapse {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 25px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .glass-link {
        margin: 0.2rem 0 !important;
        text-align: center;
        padding: 0.6rem 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-float {
        width: 94%;
        top: 8px;
    }
    
    .glass-nav .container-fluid {
        padding: 0.6rem 1rem;
    }
    
    .glass-nav .navbar-brand img {
        max-height: 28px;
    }
}

/* Body padding to account for fixed navbar */
@media (max-width: 991px) {
    body {
        padding-top: 75px;
    }
}

/* Override any scroll-based changes - keep navbar narrow */
.navbar-scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
}

.navbar-scrolled .navbar-brand img {
    max-height: 32px;
}

.navbar-scrolled .container-fluid {
    padding: 0.8rem 1.5rem;
}

/* Ensure floating nav doesn't change size on scroll */
.navbar-float.navbar-scrolled {
    width: 85%;
    max-width: 1000px;
    padding: 0;
}

.nav-link {
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.hero-content {
    animation: fadeUp 1s ease forwards;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 10px 20px rgba(12, 138, 86, 0.2);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.card:hover .feature-icon {
    transform: rotateY(180deg);
}

/* Testimonials */
.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    padding: 3px;
}

/* Contact */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(12, 138, 86, 0.2);
    transition: var(--transition);
}

.d-flex:hover .contact-icon {
    transform: scale(1.1);
}

/* Forms */
.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--primary-light);
    border-color: var(--primary);
}

/* Footer */
footer {
    background-color: #1a1e21;
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* Footer Social Links */
.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    margin: 0 5px;
    font-size: 1.3rem;
    color: var(--text-dark);
    background-color: rgba(12, 138, 86, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-link:hover {
    color: var(--white);
    background-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(12, 138, 86, 0.3);
}

.social-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 138, 86, 0.3);
}

/* Sections Spacing */
section {
    padding: 5rem 0;
}

.section-odd {
    background-color: var(--secondary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
} 