/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1a4d72;
    --secondary-color: #ffc107;
    --accent-color: #17a2b8;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #1a4d72 0%, #17a2b8 100%);
    --gradient-secondary: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 76px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.8rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card-text {
    color: #666;
    line-height: 1.8;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
    opacity: 1 !important; /* Ensure numbers are always visible */
    margin: 0.5rem 0; /* Add spacing between icon and label */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add subtle shadow for better visibility */
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ===== SERVICES ===== */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 77, 114, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

/* ===== FORMS ===== */
/* Consistent height and styling for all form elements */
.form-control,
.form-select {
    height: calc(2.5rem + 2px); /* Ensure consistent height for all form elements */
    padding: 0.625rem 1rem; /* Consistent padding */
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Allow textareas to use their natural height based on rows */
.form-control[data-bs-target], 
textarea.form-control {
    height: auto;
    min-height: calc(2.5rem + 2px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 77, 114, 0.25);
    outline: 0;
}

/* Ensure button matches the height of form elements */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: calc(2.5rem + 2px); /* Match form element height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: none;
    border-radius: 50px;
    margin: 0 0.25rem;
    padding: 12px 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color) !important;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color) !important;
    transform: translateY(-3px);
}

/* Footer service links */
footer .list-unstyled li a {
    transition: all 0.3s ease;
    position: relative;
}

footer .list-unstyled li a:hover {
    color: var(--secondary-color) !important;
    padding-left: 10px;
    text-decoration: underline !important;
}

footer .list-unstyled li a:hover::before {
    content: "→";
    position: absolute;
    left: -15px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

/* ===== UTILITIES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

/* ===== LOADING ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-up {
    animation: fadeInUp 1s ease;
}

/* ===== EMAIL SUBSCRIPTION SECTION ===== */
.subscription-section {
    background: linear-gradient(135deg, #1a4d72 0%, #17a2b8 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.subscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
}

.subscription-content {
    position: relative;
    z-index: 2;
}

.subscription-icon {
    font-size: 3.5rem;
    color: #ffc107;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.subscription-title {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subscription-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.subscription-benefits {
    margin-bottom: 2.5rem;
}

.benefit-item {
    color: white;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item i {
    font-size: 1.5rem;
    display: block;
}

.benefit-item small {
    font-weight: 500;
    font-size: 0.9rem;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.subscription-input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    transition: all 0.3s ease;
}

.subscription-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.subscription-input {
    border: none !important;
    padding: 15px 25px !important;
    font-size: 1.1rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.subscription-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.subscription-btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: none !important;
    background: #ffc107 !important;
    color: #1a4d72 !important;
    transition: all 0.3s ease !important;
}

.subscription-btn:hover {
    background: #ffb700 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4) !important;
}

.subscription-privacy {
    color: rgba(255, 255, 255, 0.8);
}

.form-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 10px;
}

/* Animation for floating background */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-title {
        font-size: 2rem;
    }
    
    .subscription-subtitle {
        font-size: 1rem;
    }
    
    .subscription-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .subscription-input {
        border-radius: 15px 15px 0 0 !important;
        margin-bottom: 0;
    }
    
    .subscription-btn {
        border-radius: 0 0 15px 15px !important;
        width: 100%;
        margin-top: -1px;
    }
    
    .benefit-item {
        margin-bottom: 1rem;
    }
} 