body {
    margin: 0;
    font-family: Arial, sans-serif;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --dark-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #004494;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 2005;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Hero Section */
.hero {
    height: 120vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/imgs.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

/* Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.section:nth-child(even) {
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card i {
    transition: transform 0.3s ease;
    display: inline-block;
    /* Required for transform */
}

.card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN - Mobile First
   ========================================= */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .welcome-title {
        font-size: 2.2rem;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {

    /* Navigation - Mobile Menu */
    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.2rem;
        max-width: 70%;
        line-height: 1.3;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 2000;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        bottom: 0;
    }

    .hamburger {
        display: block;
        z-index: 2001;
        position: relative;
    }

    .hamburger.active i::before {
        content: '\f00d';
    }

    /* Mobile Menu Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-3d-text {
        text-shadow:
            0 1px 0 #ccc,
            0 2px 0 #bbb,
            0 3px 1px rgba(0, 0, 0, .1),
            0 1px 3px rgba(0, 0, 0, .2);
    }

    /* Floating Shapes - Smaller on Mobile */
    .shape {
        font-size: 2rem;
        opacity: 0.1;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* Grid Layout */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* Welcome Section */
    .welcome-modern-section {
        padding: 3rem 0;
    }

    .welcome-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .welcome-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .welcome-text {
        font-size: 1rem;
        text-align: left;
    }

    .welcome-text p {
        margin-bottom: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h3 {
        margin-bottom: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Chatbot - Mobile Positioning */
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .chatbot {
        width: 90%;
        max-width: 350px;
        right: 5%;
        bottom: 80px;
        max-height: 450px;
    }

    .chat-header {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .chat-body {
        padding: 1rem;
        min-height: 250px;
    }

    .message {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .chat-footer {
        padding: 0.8rem;
    }

    .chat-footer input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
    }

    /* Decorative Elements - Hide on Mobile */
    .welcome-modern-section::before,
    .welcome-modern-section::after {
        display: none;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .nav-links {
        width: 85%;
        padding: 4rem 1.5rem 2rem;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .welcome-card {
        padding: 1.2rem;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .welcome-text {
        font-size: 0.95rem;
    }

    .card-content {
        padding: 1rem;
    }

    .chatbot {
        width: 95%;
        right: 2.5%;
    }

    .chatbot-toggle {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    .shape {
        font-size: 1.5rem;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        padding: 3rem 1.5rem 1rem;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }
}



/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: var(--transition);
    animation: bounceIn 1s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    background: #004494;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.6);
}

.chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.chat-header button:hover {
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user {
    align-self: flex-end;
    background: #e3f2fd;
    color: var(--text-color);
    border-bottom-right-radius: 2px;
}

.bot {
    align-self: flex-start;
    background: #f1f3f4;
    color: var(--text-color);
    border-bottom-left-radius: 2px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.8rem;
}

.chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chat-footer input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.2);
}

.chat-footer button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.chat-footer button:hover {
    background: #004494;
    transform: scale(1.1);
}

/* =========================================
   New Anime & Unique Effects
   ========================================= */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-effect {
    animation: float 4s ease-in-out infinite;
}

/* Pulse/Glow Animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

/* Pop In Animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    80% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Enhanced Card Effects */
.card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.card:hover::after {
    left: 200%;
    transition: all 0.6s;
}

/* Enhanced Button Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4);
}

/* Hero Title Typing Effect Cursor (Simulated) */
.hero h1 {
    position: relative;
    display: inline-block;
}

/* Navbar Link Hover Effect */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* =========================================
   Modern Welcome Section Styles
   ========================================= */
.welcome-modern-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.welcome-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 5px solid var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
    border-left-width: 10px;
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-badge {
    display: inline-block;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: floatBadge 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.welcome-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.welcome-card:hover .welcome-title::after {
    width: 100px;
}

.welcome-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.welcome-text p {
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.welcome-text strong {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.welcome-text strong::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(0, 86, 179, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.welcome-card:hover .welcome-text strong::before {
    transform: scaleX(1);
}

/* Decorative background animations */
.welcome-modern-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 5s infinite alternate;
}

.welcome-modern-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    z-index: 0;
    animation: spreadRipple 8s infinite linear;
}

/* New Keyframes for this section */
@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes spreadRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }
}

/* =========================================
   Interactive About Cards
   ========================================= */
.interactive-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.interactive-card.expanded {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-color);
}

.card-summary {
    margin-bottom: 1rem;
    color: #555;
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.details-content.open {
    max-height: 500px;
    /* Approximate max height */
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more-btn {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.interactive-card:hover .read-more-btn {
    transform: translateX(5px);
}

.interactive-card.expanded .read-more-btn {
    display: none;
    /* Hide 'Read More' when open, or change text */
}

.show-less-btn {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.show-less-btn:hover {
    transform: translateY(-2px);
}

/* =========================================
   3D Animation & Tilt Effects
   ========================================= */

/* 3D Tilt Container */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-content {
    transform: translateZ(20px);
}

/* 3D Typography for Hero */
.hero-3d-text {
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25),
        0 10px 10px rgba(0, 0, 0, .2),
        0 20px 20px rgba(0, 0, 0, .15);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

/* Floating 3D Background Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatMedical 15s infinite ease-in-out;
    color: var(--primary-color);
}

.shape-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    bottom: 25%;
    right: 15%;
    animation-delay: -3s;
}

.shape-3 {
    top: 50%;
    left: 5%;
    animation-delay: -6s;
}

.shape-4 {
    top: 20%;
    right: 20%;
    animation-delay: -9s;
}

.shape-5 {
    bottom: 15%;
    left: 30%;
    animation-delay: -12s;
}

.shape-6 {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes floatMedical {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translateY(-60px) rotate(-5deg) scale(0.9);
    }

    75% {
        transform: translateY(-30px) rotate(3deg) scale(1.05);
    }
}

/* Enhanced 3D Card Hover */
.card-3d-hover {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.card-3d-hover:hover .card-content {
    transform: translateZ(30px);
}