body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 120px 120px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}


.about-section {
    padding: 80px 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.3s ease;
}

.about-section:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.about-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3); }
}

.about-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.about-section .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.btn-outline-light {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 300% 300%;
    border: none;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
}


h2 {
    text-align: center;
    margin: 3rem 0;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}


.container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(15px);
}


.card:nth-child(1) {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffdfba 50%, #ffffba 100%);
}

.card:nth-child(2) {
    background: linear-gradient(135deg, #ffffba 0%, #baffc9 50%, #bae1ff 100%);
}

.card:nth-child(3) {
    background: linear-gradient(135deg, #bae1ff 0%, #d4baff 50%, #ffb3ba 100%);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-img-top {
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card:hover .card-img-top {
    transform: scale(1.1) rotate(5deg);
}

.card-body {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.card h2 {
    color: #333;
    margin: 1rem 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.text-muted {
    color: #555 !important;
    font-style: italic;
    font-weight: 500;
}

.card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}


@media screen and (max-width: 768px) {
    body::before {
        animation-duration: 30s;
    }
    
    .about-section {
        margin: 10px;
        padding: 40px 20px;
        transform: none;
        border-radius: 15px;
    }
    
    .about-section:hover {
        transform: scale(1.02);
    }
    
    .about-section h1 {
        font-size: 2.5rem;
    }
    
    .about-section h3 {
        font-size: 1.5rem;
    }
    
    .about-section .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem;
        margin: 2rem 0;
    }
    
    .card {
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: translateY(-10px);
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .about-section {
        padding: 30px 15px;
        margin: 5px;
    }
    
    .about-section h1 {
        font-size: 2rem;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .about-section .lead {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-outline-light, .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Fun loading animation for cards */
.card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .row:hover .card:not(:hover) {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.navbar.navbar-dark.bg-dark {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none !important;
    border-bottom: none !important;
    position: relative;
}

.navbar.navbar-dark.bg-dark::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffb3ba, #ffdfba, #ffffba, #baffc9, #bae1ff, #d4baff);
    background-size: 200% 100%;
    animation: rainbowFlow 8s ease infinite;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.navbar-brand {
    color: #333 !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: #666 !important;
}

.navbar-toggler {
    border-color: rgba(255, 179, 186, 0.5) !important;
    background: rgba(255, 179, 186, 0.2) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 179, 186, 0.25) !important;
}

.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%2851, 51, 51, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    background: rgba(255, 179, 186, 0.15);
    transition: all 0.3s ease;
    position: relative;
}


.navbar-nav .nav-item:nth-child(1) .nav-link {
    border-radius: 20px 20px 20px 0px; /* pointed top left */
}

.navbar-nav .nav-item:nth-child(2) .nav-link {
    border-radius: 20px 0px 20px 20px; /* pointed top right */
}

.navbar-nav .nav-item:nth-child(3) .nav-link {
    border-radius: 20px 20px 0px 20px; /* pointed bottom right */
}

.navbar-nav .nav-item:nth-child(4) .nav-link {
    border-radius: 0px 20px 20px 20px; /* pointed top left */
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 179, 186, 0.3) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:focus {
    background: rgba(255, 179, 186, 0.3) !important;
    color: #000 !important;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 179, 186, 0.4) !important;
    color: #000 !important;
}

.navbar-collapse {
    background: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.offcanvas-navbar .offcanvas-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}

.offcanvas-navbar .offcanvas-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 5px 0 !important;
        text-align: center;
    }
    
    .navbar-toggler {
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        margin: 3px 0 !important;
        padding: 10px 16px !important;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}