:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-light: #f1f5f9; /* Light grey */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --dark-section: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-section: 30px;
    --radius-card: 20px;
    --radius-pill: 50px;
    --glass: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 20px; /* Base bottom spacing */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-wrapper {
    padding: 100px 0;
}

.card-container {
    background: white;
    border-radius: var(--radius-section);
    padding: 60px 40px;
    box-shadow: var(--shadow-soft);
}

.card-container-dark {
    background: var(--dark-section);
    border-radius: var(--radius-section);
    padding: 80px 40px;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Off-canvas Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 30px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    font-size: 24px;
    margin-bottom: 40px;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* Profile Restructure Styles */
.profile-header-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-avatar-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta-info {
    flex-grow: 1;
}

.profile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.bio-section,
.interests-section {
    margin-top: 30px;
}

/* Hero Section Fix */
.hero {
    height: 85vh;
    min-height: 650px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-radius: var(--radius-section);
    overflow: visible; /* Allow search overlap */
    margin-bottom: 100px; /* Space for floating search */
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    border-radius: var(--radius-section);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 60px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: white;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 700px;
    text-align: left;
}

/* Floating Search Form */
.search-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px); /* Responsive padding */
    max-width: 1200px;
    z-index: 100;
}

.search-box {
    background: white;
    padding: 35px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

/* About Section */
.section {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 15px solid white;
    box-shadow: var(--shadow-soft);
}

.shape-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

/* Roadmap (Dark) */
.roadmap-section {
    background: var(--dark-section);
    margin: 20px;
    border-radius: var(--radius-section);
    padding: 100px 40px;
    color: white;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.roadmap-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roadmap-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Members Grid Update */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.profile-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-heavy);
}

.card-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(5px);
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.blog-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 24px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.blog-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Section */
.featured-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.featured-main {
    height: 500px;
    border-radius: var(--radius-card);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: var(--radius-card);
}

.featured-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* CTA */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-section);
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin: 100px 0;
}

.cta-banner h2 {
    font-size: 36px;
    font-weight: 800;
}

/* Footer */
footer {
    background: #0f172a;
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: white;
}

/* Testimonial Slider Fix */
.testimonial-section {
    padding: 100px 0;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.testimonial-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    height: 480px;
    perspective: 1000px;
}

.testimonial-item {
    position: absolute;
    width: 160px;
    height: 160px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    z-index: 1;
    opacity: 0.4;
    transform: scale(0.7) translateX(0);
}

.testimonial-item.active {
    width: 200px;
    height: 200px;
    opacity: 1;
    z-index: 10;
    transform: scale(1.2) translateX(0);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    border: 4px solid var(--white);
}

.testimonial-item.prev {
    transform: scale(0.8) translateX(-220px);
    z-index: 5;
    opacity: 0.6;
}

.testimonial-item.next {
    transform: scale(0.8) translateX(220px);
    z-index: 5;
    opacity: 0.6;
}

.testimonial-item.far-prev {
    transform: scale(0.6) translateX(-380px);
    opacity: 0;
    pointer-events: none;
}

.testimonial-item.far-next {
    transform: scale(0.6) translateX(380px);
    opacity: 0;
    pointer-events: none;
}

.testimonial-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content-area {
    margin-top: 60px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
}

.testimonial-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
    display: none;
}

.testimonial-text.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Identity Collage Fix */
.identity-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.identity-collage {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-circle {
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    box-shadow: var(--shadow-heavy);
    aspect-ratio: 1/1;
    border: 8px solid var(--white);
    background: var(--white);
}

.main-circle {
    width: 380px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.sub-circle-1 {
    width: 180px;
    top: 0;
    right: 20px;
    z-index: 2;
    animation: float 8s ease-in-out infinite reverse;
}

.sub-circle-2 {
    width: 140px;
    bottom: 20px;
    left: 40px;
    z-index: 4;
    animation: float 7s ease-in-out infinite;
}

.collage-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Breakpoints update */
@media (max-width: 1200px) {
    .hero-content {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .about-grid,
    .featured-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .identity-text {
        text-align: center;
    }
    .identity-collage {
        height: 400px;
        margin-top: 40px;
    }
    .main-circle {
        width: 280px;
    }
    .sub-circle-1 {
        width: 140px;
        right: 10%;
    }
    .sub-circle-2 {
        width: 120px;
        left: 10%;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        height: auto;
        padding: 100px 0 160px;
        border-radius: 0;
        margin-bottom: 80px;
    }
    .hero::after {
        border-radius: 0;
    }
    .search-container {
        bottom: -40px;
        width: calc(100% - 32px);
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 60px 24px;
    }
}

@media (max-width: 768px) {
    .identity-collage {
        height: 320px;
        overflow: hidden;
    }
    .main-circle {
        width: 220px;
    }
    .sub-circle-1 {
        width: 100px;
        right: 5%;
        top: 10%;
    }
    .sub-circle-2 {
        width: 90px;
        left: 5%;
        bottom: 10%;
    }
    .nav-links,
    .navbar .btn-primary {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .section-wrapper {
        padding: 60px 0;
    }
    .card-container,
    .card-container-dark {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .hero {
        height: auto;
        min-height: unset;
        padding: 60px 0 0;
        margin-bottom: 0;
        border-radius: 20px;
    }
    .hero-content {
        padding: 0 20px;
        text-align: center;
    }
    .hero-content p {
        font-size: 1rem !important;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .search-container {
        position: relative;
        bottom: 0;
        transform: none;
        left: 0;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 40px;
        padding: 0;
    }
    .search-box {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    }
    .search-box button {
        width: 100%;
    }
    .profile-info-content {
        padding: 30px !important;
    }
    .profile-hero-img {
        height: 400px !important;
    }
    .attributes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .profile-header-wrap {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .profile-avatar-circle {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }
    .profile-meta-info h1 {
        font-size: 32px !important;
    }
    .profile-head-actions {
        flex-direction: column;
        width: 100%;
    }
    .profile-head-actions .btn {
        width: 100% !important;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 16px 24px;
        width: 100%;
    }

    .testimonial-item.prev,
    .testimonial-item.next {
        opacity: 0.2;
    }
    .testimonial-item.prev {
        transform: scale(0.6) translateX(-90px);
    }
    .testimonial-item.next {
        transform: scale(0.6) translateX(90px);
    }
    .testimonial-text {
        font-size: 16px;
        padding: 0 10px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .card-img-wrapper {
        height: 220px;
    }
    .card-title {
        font-size: 16px;
    }
    .card-body {
        padding: 12px;
    }
    .rating-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
}
