/* Custom CSS for Professional Services Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f1a26;
    padding-top: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: default;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* Language Button */
.language-btn {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 20px !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-left: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-width: 50px !important;
    justify-content: center !important;
    letter-spacing: 0.5px !important;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.language-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* Hero Section */
.hero-section {
    background: #0f1a26;
    min-height: 80vh;
    display: flex;
    padding-top: 90px;
    padding-bottom: 2rem;
    align-items: center;
    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 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"/><circle cx="800" cy="300" r="150" fill="url(%23grad1)"/><circle cx="400" cy="700" r="120" fill="url(%23grad1)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

/* Floating spheres */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
}

.sphere-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7762bd, #9b59b6);
    top: 20%;
    left: 15%;
    animation: float-sphere-1 5s ease-in-out infinite;
}

.sphere-2 {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3bb298, #2ecc71);
    bottom: 25%;
    right: 20%;
    animation: float-sphere-2 4s ease-in-out infinite;
}

@keyframes float-sphere-1 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) translateX(15px) rotate(90deg); 
    }
    50% { 
        transform: translateY(-10px) translateX(5px) rotate(180deg); 
    }
    75% { 
        transform: translateY(-25px) translateX(-10px) rotate(270deg); 
    }
}

@keyframes float-sphere-2 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
    }
    33% { 
        transform: translateY(15px) translateX(-20px) scale(1.2); 
    }
    66% { 
        transform: translateY(-18px) translateX(12px) scale(0.9); 
    }
}

/* Page Header */
.page-header {
    background: #16202e;
    padding: 130px 0 80px;
    margin-top: -90px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, #16202e 100%);
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    height: 100%;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-card h5 {
    font-weight: 700;
    color: #ffffff;
}

.service-card ul li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.service-card ul li:last-child {
    margin-bottom: 0;
}

.service-card ul li i {
    margin-top: 0.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7762bd 0%, #3bb298 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

/* Modern Service Icons */
.service-icon-modern {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: none;
}

.service-icon-modern:hover {
    transform: scale(1.15);
}

.service-icon-modern i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.purple-icon i {
    color: #8b5cf6;
}

.green-icon i {
    color: #10b981;
}

/* Event Cards */
.row.events-row {
    display: flex;
    align-items: stretch;
}

.row.events-row .col-md-6 {
    display: flex;
}

.event-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.event-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/banner_orig.jpg') center 40%/cover;
    overflow: hidden;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.blue-bg {
    background: url('../images/mmat25_new_banner.jpg?v=2025d') center 30%/cover !important;
}

.operations-research-bg {
    background: url('../images/operations_research_v4_banner.jpg') center 40%/cover !important;
}

.cogmob2026-bg {
    background: url('../images/cogmob2026.jpg') center 38%/cover !important;
}

.mabiv-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.mabiv-may-bg {
    background: url('../images/mabiv_april_justice_bg.jpg') center 45%/cover !important;
}

.mabiv-october-bg {
    background: url('../images/mabiv_may_bg.jpg') center 25%/cover !important;
    position: relative;
}

.mabiv-october-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.5) !important;
    pointer-events: none;
}

.mabiv-april-bg {
    background: url('../images/mabiv_may_bg.jpg') center 25%/cover !important;
    position: relative;
}

.mabiv-april-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.4) !important;
    pointer-events: none;
}

.tech-bg {
    background: url('../images/cogmob_2024_final_bg.jpg') center 40%/cover !important;
}

/* Mobile banner positioning adjustments */
@media (max-width: 768px) {
    .tech-bg {
        background: url('../images/cogmob_2024_final_bg.jpg') center 40%/cover !important;
    }
    .cogmob-bg {
        background: url('../images/cogmob_2025_bg.jpg?v=2025b') center 28%/cover !important;
    }
}

/* Extra small screens (SE, etc.) */
@media (max-width: 480px) {
    .tech-bg {
        background: url('../images/cogmob_2024_final_bg.jpg') center 40%/cover !important;
    }
    .cogmob-bg {
        background: url('../images/cogmob_2025_bg.jpg?v=2025b') center 28%/cover !important;
    }
}

.cogmob-bg {
    background: url('../images/cogmob_2025_bg.jpg?v=2025b') center 28%/cover !important;
}

.event-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1.8rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.orange-badge {
    background: rgba(255, 107, 53, 0.9) !important;
}

.blue-badge {
    background: rgba(79, 172, 254, 0.9) !important;
}

.past-badge {
    background: rgba(102, 126, 234, 0.9) !important;
}

.tech-badge {
    background: rgba(17, 153, 142, 0.9) !important;
}

.event-date {
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0;
    display: inline;
    opacity: 1;
    text-transform: none;
    letter-spacing: normal;
    color: #3bb298;
}

.event-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}



.event-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Event Card Links */
.event-card-link {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-card-link:hover .event-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.event-card-link:hover {
    text-decoration: none !important;
}

/* About Page Styles */
.about-image {
    text-align: center;
    padding: 2rem;
}

.about-icon {
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.mission-card, .vision-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    box-shadow: var(--box-shadow-lg);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.8rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Contact Form */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Toggle Button for Past Events */
.btn-toggle {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-toggle:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-toggle #toggleIcon {
    transition: transform 0.3s ease;
}

.btn-toggle.expanded #toggleIcon {
    transform: rotate(180deg);
}

.btn-purple #toggleIcon {
    transition: transform 0.3s ease;
}

.btn-purple.expanded #toggleIcon {
    transform: rotate(180deg);
}

/* Hero Contact Button Green Hover */
.btn-outline-light:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%) !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Stats Section */
.stat-item h3 {
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    margin-top: 0;
    background: #141b26;
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1200px) {
    .team-photo {
        width: 240px;
        height: 240px;
    }
    
    .team-gradient-ring {
        width: 256px;
        height: 256px;
        top: -8px;
        left: -8px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 3rem;
        min-height: 85vh;
    }
    
    .display-4 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .team-gradient-ring {
        width: 216px;
        height: 216px;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form-card {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 2rem;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .about-icon {
        font-size: 6rem;
    }
    
    /* Mobile service icons - bigger size */
    .service-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
    
    .contact-info, .contact-form {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 180px;
        height: 180px;
    }
    
    .team-gradient-ring {
        width: 196px;
        height: 196px;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .language-btn {
        margin: 1rem auto 0 auto !important;
        display: block !important;
        width: fit-content;
    }
    
    .btn-modern {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .contact-form-card {
        padding: 1.5rem !important;
    }
    
    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-main-icon {
        font-size: 1.5rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .service-card ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .event-card {
        margin-bottom: 1rem;
    }
    
    .event-badge {
        padding: 1.2rem 1rem;
        font-size: 0.8rem;
    }
    
    .floating-sphere {
        display: none;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 0;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-logo {
        height: 42px;
    }
    
    .page-header {
        padding: 120px 0 60px;
        margin-top: -80px;
    }
    
    .hero-section {
        min-height: 75vh;
        padding: 90px 0 2rem;
    }
    
    .hero-icon {
        font-size: 5rem;
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .gradient-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
        margin: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .team-photo {
        width: 160px;
        height: 160px;
    }
    
    .team-gradient-ring {
        width: 176px;
        height: 176px;
    }
    
    .team-member h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
        padding: 0 1rem;
        text-align: center !important;
    }
    
    /* Mobile text centering */
    .hero-section .lead {
        text-align: center !important;
    }
    
    #services .lead {
        text-align: center !important;
    }
    
    #events .lead {
        text-align: center !important;
    }
    
    .contact-info-modern p {
        text-align: center !important;
    }
    
    .contact-form-card {
        padding: 1rem !important;
        margin: 0 0.5rem;
    }
    
    .contact-info-modern {
        padding: 1rem 0.5rem;
        text-align: center;
    }
    
    /* Additional mobile text centering for 768px breakpoint */
    .hero-section p.lead {
        text-align: center !important;
        padding: 0 1rem;
    }
    
    #services p.lead {
        text-align: center !important;
    }
    
    #events p.lead {
        text-align: center !important;
    }
    
    .form-control-modern {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-modern {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-card .d-flex {
        align-items: flex-start !important;
        margin-bottom: 1rem;
    }
    
    .service-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
    
    .service-card h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .event-card-link {
        margin-bottom: 1rem;
    }
    
    .event-badge {
        padding: 1rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .event-content h5 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .event-content p {
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .footer-section {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Mobile-specific adjustments for better touch targets */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-toggler:focus {
        text-decoration: none;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    
    /* Improve mobile popup */
    .success-popup {
        padding: 20px 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .success-popup-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 375px) {
    .hero-section {
        padding: 70px 0 1.5rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5, .gradient-title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .gradient-title br {
        line-height: 1.1;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    .team-gradient-ring {
        width: 156px;
        height: 156px;
    }
    
    .contact-form-card {
        margin: 0;
        border-radius: 20px;
    }
    
    .service-card {
        padding: 1rem !important;
    }
    
    .event-badge {
        padding: 0.8rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Additional Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Better touch targets */
    .event-card-link {
        min-height: 44px;
    }
    
    .btn, .btn-modern, .language-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Prevent text selection on interactive elements */
    .navbar-brand, .btn, .event-card, .team-photo {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Improve text readability */
    p, li {
        text-align: left;
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .pt-1 {
        padding-top: 1.5rem !important;
    }
    
    .pb-3 {
        padding-bottom: 1.5rem !important;
    }
    
    /* Ensure proper viewport behavior */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 0 1rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-gradient-ring {
        width: 136px;
        height: 136px;
    }
    
    /* Compact mobile menu for landscape mode */
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        max-height: calc(100vh - 100px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.35rem 1rem !important;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    /* Extra space for hero title in landscape mode */
    .hero-section h1 {
        margin-top: 50px !important;
    }
    
    /* Center text in landscape mode */
    .hero-section p,
    #services h2,
    #services p,
    #events h2,
    #events > p,
    #about h2,
    #about h3,
    #about p,
    .team-member p,
    #contact h2,
    #contact h4,
    #contact p,
    .contact-info-modern p {
        text-align: center !important;
    }
    
    /* Service card titles and lists left-aligned in landscape mode */
    #services h5,
    .service-card h5,
    #services ul,
    #services li,
    .service-card ul,
    .service-card li {
        text-align: left !important;
    }
    
    /* Event card content left-aligned in landscape mode */
    .event-content h5,
    .event-content p,
    .event-content .event-date,
    .event-badge,
    .event-card p {
        text-align: left !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo, .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile navbar improvements */
@media (max-width: 991px) {
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.375rem 0.75rem;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-collapse {
        background: rgba(15, 26, 38, 0.98);
        margin-top: 0.75rem;
        border-radius: 15px;
        padding: 0.75rem 1rem;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        position: relative;
        z-index: 1050;
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.4rem;
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* Smooth scroll behavior improvements for mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    
    /* Fix iOS bounce scroll */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    
    /* Improve mobile loading performance */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Better focus states for mobile */
    .form-control-modern:focus,
    .btn:focus {
        outline: 2px solid rgba(59, 179, 152, 0.5);
        outline-offset: 2px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

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

.gradient-title {
    background: linear-gradient(90deg, #7762bd 0%, #3bb298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile hero title positioning */
@media (max-width: 768px) {
    .gradient-title {
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Decorative elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 20px;
    height: 20px;
    background: #7762bd;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-bg-dot 5s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 30px;
    height: 30px;
    background: #3bb298;
    border-radius: 50%;
    opacity: 0.4;
    animation: float-bg-dot 4s ease-in-out infinite reverse;
}

/* Additional decorative dots */
.hero-section .container::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 20%;
    width: 15px;
    height: 15px;
    background: #7762bd;
    border-radius: 50%;
    opacity: 0.3;
    animation: float-bg-dot 6s ease-in-out infinite;
}

.hero-section .container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 25px;
    height: 25px;
    background: #3bb298;
    border-radius: 50%;
    opacity: 0.2;
    animation: float-bg-dot 3.5s ease-in-out infinite reverse;
}

@keyframes float-bg-dot {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-10px) scale(1.1); 
    }
}

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Footer Styles */
.footer-section {
    background: #0c1320;
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-content {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3bb398;
    text-decoration: none;
}

.footer-email {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #3bb398;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.social-icon:hover {
    color: #7862be;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 15px rgba(120, 98, 190, 0.6)) drop-shadow(0 0 30px rgba(120, 98, 190, 0.3));
    text-shadow: 0 0 20px rgba(120, 98, 190, 0.8);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(120, 98, 190, 0.5));
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Team Section Styles */
.team-photo-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.team-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-gradient-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 296px;
    height: 296px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.purple-ring {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

.green-ring {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}

.team-photo-wrapper:hover .team-photo {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.team-photo-wrapper:hover .team-gradient-ring {
    transform: scale(1.1);
    opacity: 0.6;
}

.team-member {
    transition: all 0.3s ease;
}

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

/* Contact Form Modern Styles */
.contact-form-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.contact-info-modern {
    padding: 2rem 1rem;
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

.contact-main-icon {
    font-size: 2rem;
    color: white;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
        transform: scale(1.05);
    }
}

.contact-feature-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-feature-item:hover {
    transform: translateX(10px);
}

.form-control-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control-modern:focus {
    border-color: #3bb398 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 179, 152, 0.25) !important;
    outline: none;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
    color: white;
}

.form-control-modern:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.form-control-modern option {
    background: #1a2332;
    color: white;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.btn-modern {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-send {
    min-width: 200px;
    position: relative;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.6s ease;
}

.btn-modern:hover .btn-shine {
    left: 100%;
}

/* Success Popup Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 38, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-popup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: all 0.3s ease;
}

.success-popup-overlay.show .success-popup {
    transform: translateY(0);
}

.success-popup-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.success-popup-close {
    background: linear-gradient(135deg, #7862be 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.success-popup-close:hover {
    background: linear-gradient(135deg, #6d48c7 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(120, 98, 190, 0.4);
}

/* Form Checkbox Styles */
.form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #7862be 0%, #8b5cf6 100%);
    border-color: #7862be;
}

.form-check-input:focus {
    border-color: #7862be;
    box-shadow: 0 0 0 0.25rem rgba(120, 98, 190, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(59, 179, 152, 0.2);
    color: #3bb398;
    border: 1px solid rgba(59, 179, 152, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .success-popup {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .success-popup-text {
        font-size: 1.1rem;
    }
}

/* Extra large breakpoint line break - only for screens 1400px and above */
@media (min-width: 1400px) {
    .br-xl-only {
        display: inline !important;
    }
}

@media (max-width: 1399px) {
    .br-xl-only {
        display: none !important;
    }
}
