/* =========================================
   FORCE VISIBILITY & CORE OVERRIDES
   ========================================= */
section,
.project-card,
.certifications {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* =========================================
   GLOBAL THEME VARIABLES & RESETS
   ========================================= */
:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

body {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

span {
    color: var(--main-color) !important;
}

/* =========================================
   HEADER & NAVBAR OVERRIDES
   ========================================= */
.header {
    background: var(--bg-color) !important;
    /* Force Dark Background */
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.header .navbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.header .navbar a {
    font-size: 1.45rem !important;
    margin-right: 1.8rem !important;
}

.header .logo {
    font-size: 2rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.header.sticky {
    background: var(--second-bg-color) !important;
}

/* =========================================
   MOBILE MENU FIXES
   ========================================= */
@media (max-width: 768px) {
    #menu-icon {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
        color: #fff !important;
    }

    .navbar {
        background-color: #fff !important;
        z-index: 999;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    }

    .navbar.active {
        display: block !important;
    }

    .navbar a {
        display: block !important;
        font-size: 2rem !important;
        margin: 2rem 0 !important;
        color: #333 !important;
        text-align: center;
    }
}

/* =========================================
   FOOTER ICON FIX
   ========================================= */
.footer-iconTop {
    z-index: 999;
}

@media (max-width: 768px) {
    .footer-iconTop {
        right: 2rem;
        bottom: 2rem;
        top: auto;
    }
}

/* =========================================
   HOME SECTION OVERHAUL
   ========================================= */
.home {
    background: var(--bg-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    padding: 0 5% 0 10% !important;
    /* Left text, right image padding adjustment */
    min-height: 100vh;
}

.home-content {
    max-width: 55vw !important;
    /* Increased width */
}

/* Adjusted to fit side-by-side */

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
    color: #e2e2e2 !important;
}

/* Social Media Icons - Neon Style */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent !important;
    border: .2rem solid var(--main-color) !important;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color) !important;
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color) !important;
    color: var(--second-bg-color) !important;
    box-shadow: 0 0 1rem var(--main-color);
}

/* Buttons - Neon Style */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color) !important;
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color) !important;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    border: 2px solid var(--main-color) !important;
}

.btn:hover {
    box-shadow: none;
    background: transparent !important;
    color: var(--main-color) !important;
}

/* Profession Animation Fixes */
.profession-container .profession-box {
    background: var(--bg-color) !important;
}

.profession-container .profession-box .profession {
    background: var(--bg-color) !important;
    border-bottom: 5px solid var(--main-color) !important;
}

.profession i {
    color: var(--main-color) !important;
}

.profession h3 {
    color: var(--text-color) !important;
}

.profession-container .overlay {
    background: var(--bg-color) !important;
}

.profession-box .circle {
    border: 0.2rem solid var(--second-bg-color) !important;
}

/* Home Image Glow */
.home-img img {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 35vw;
    border-radius: 50%;
    border: .5rem solid var(--main-color) !important;
    box-shadow: 0 0 2rem var(--main-color) !important;
    filter: drop-shadow(0 0 20px var(--main-color));
    transition: .5s ease;
    pointer-events: auto !important;
}

.home-img img:hover {
    box-shadow: 0 0 5rem var(--main-color),
        0 0 10rem var(--main-color) !important;
    transform: scale(1.02) !important;
}

/* =========================================
   MOBILE RESPONSIVENESS (Fix Side-by-Side on Mobile)
   ========================================= */
@media (max-width: 991px) {
    .home {
        flex-direction: column-reverse !important;
        /* Image top, text bottom usually, or just column */
        justify-content: center !important;
        text-align: center !important;
        padding: 10rem 3% 2rem !important;
        gap: 3rem;
    }

    .home-content {
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-img img {
        width: 70vw;
        /* Larger image on mobile */
        max-width: 400px;
        margin-top: 2rem;
    }

    .social-media a {
        margin: 2rem 1rem !important;
        /* Adjust spacing */
    }
}

/* =========================================
   ABOUT SECTION OVERHAUL
   ========================================= */
.about {
    background: var(--second-bg-color) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.about-img img {
    width: 35vw;
    border-radius: 50%;
    border: .5rem solid var(--main-color) !important;
    box-shadow: 0 0 2rem var(--main-color) !important;
    transition: .5s ease;
}

.about-img img:hover {
    box-shadow: 0 0 5rem var(--main-color),
        0 0 10rem var(--main-color) !important;
    transform: scale(1.02);
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 2rem 0 3rem;
    color: var(--text-color) !important;
}

@media (max-width: 991px) {
    .about-content h2 {
        text-align: center !important;
    }
}

.about-content p {
    font-size: 1.6rem;
    color: #e2e2e2 !important;
    margin-bottom: 3rem;
    text-align: justify;
}

.about-content p strong {
    color: var(--main-color) !important;
}

/* =========================================
   SKILLS SECTION OVERHAUL
   ========================================= */
.skills {
    background: var(--bg-color) !important;
}

.skill-tag {
    background: #fff !important;
    /* White Background */
    color: #1f242d !important;
    /* Dark Text */
    padding: .8rem 1.5rem;
    border-radius: .5rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: .3s;
    border: 1px solid #fff;
}

.skill-tag:hover {
    background: transparent !important;
    color: #fff !important;
    /* White text on dark bg */
    box-shadow: 0 0 10px #fff;
}

/* Fix for Education Section Text Visibility */
.highlight-tag {
    color: #1f242d !important;
    /* Dark text for contrast against cyan background */
    font-weight: 600;
}

/* =========================================
   USER REQUEST FIXES (Middle Align & Header Color)
   ========================================= */

/* Fix 1: Header "Full Stack AI Developer" to Cyan with Border & Bold */
.logo {
    color: #0ef !important;
    border: 2px solid #0ef !important;
    /* Added border */
    padding: 5px 15px !important;
    /* Added padding for spacing */
    border-radius: 8px !important;
    /* Optional: Rounded corners */
    font-weight: 700 !important;
    /* Made text bolder */
}

/* Fix 2: Research Section Centering */
.paper-card {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.paper-title {
    font-size: 3.5rem !important;
    /* Increased Size */
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.read-paper-btn {
    margin: 4rem auto 0 auto !important;
    /* Center Button */
    display: inline-flex !important;
}

.keywords {
    justify-content: center !important;
}

.key-tag {
    font-size: 1.8rem !important;
    /* Increased body text size */
}

/* =========================================
   PROJECTS SECTION OVERHAUL
   ========================================= */
.projects {
    background: var(--second-bg-color) !important;
}

/* Filter Buttons - White Full */
.filter-btn {
    background: #fff !important;
    /* White Background */
    color: #1f242d !important;
    /* Dark Text */
    border: 2px solid #fff !important;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: transparent !important;
    color: #fff !important;
    box-shadow: 0 0 10px #fff;
}

/* Fix for Red Circle Request: Project Category Badge */
.project-category {
    color: #1f242d !important;
    /* Dark Text */
    font-weight: 600;
    background: #fff !important;
    /* White Background */
    border: 1px solid #fff;
}

/* =========================================
   PREMIUM HEALIX SECTION STYLES
   ========================================= */
.healix {
    background: var(--bg-color);
    color: #fff;
    padding: 8rem 9% 8rem;
    position: relative;
    overflow: hidden;
}

.healix-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.healix-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.healix .heading {
    margin-bottom: 3rem;
    color: #fff;
}

.healix .heading span {
    color: #0ef;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.healix-content h3 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.healix-content p {
    font-size: 1.8rem;
    color: #e2e2e2;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.coming-soon {
    font-size: 1.6rem;
    background: transparent;
    color: #0ef;
    padding: 0.8rem 2.5rem;
    border: 2px solid #0ef;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.4);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 238, 255, 0.7), inset 0 0 10px rgba(0, 238, 255, 0.2);
    }
}

.healix-features {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 2rem 1rem 4rem;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #0ef #323946;
}

.healix-features::-webkit-scrollbar {
    height: 10px;
}

.healix-features::-webkit-scrollbar-track {
    background: #323946;
    border-radius: 10px;
}

.healix-features::-webkit-scrollbar-thumb {
    background: #0ef;
    border-radius: 10px;
}

.feature-box {
    min-width: 280px;
    background: #323946;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.5s ease;
    scroll-snap-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #0ef;
    z-index: -1;
    transition: 0.5s;
}

.feature-box:hover::before {
    width: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.3);
}

.feature-box i {
    font-size: 5rem;
    color: #0ef;
    margin-bottom: 1.5rem;
    transition: 0.5s;
}

.feature-box:hover i,
.feature-box:hover h4,
.feature-box:hover p {
    color: #1f242d;
}

.feature-box h4 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: 0.5s;
}

.feature-box p {
    font-size: 1.6rem;
    color: #ddd;
    margin-bottom: 0;
    transition: 0.5s;
}

.healix-tech {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.healix-tech h4 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #fff;
}

.healix-tech .tech-tag {
    background: transparent;
    border: 2px solid #0ef;
    color: #0ef;
    font-weight: 600;
}

/* =========================================
   FOOTER REFINEMENTS
   ========================================= */
/* =========================================
   FOOTER REFINEMENTS
   ========================================= */
.footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding: 2rem 3% !important;
    /* Reduced padding to 3% to move content closer to the left edge */
    background: var(--main-color) !important;
    /* Suspected cyan background, ensuring it is checked or handled if needed, but primarily fixing text */
}

.footer-section h3 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f242d !important;
    /* Dark text for contrast */
}

.footer-section p {
    font-size: 1.6rem;
    color: #1f242d !important;
    /* Dark text for contrast against cyan */
    font-weight: 500;
}

/* Social Media in Footer */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: .2rem solid #1f242d !important;
    /* Dark border */
    border-radius: 50%;
    font-size: 1.8rem;
    color: #1f242d !important;
    /* Dark icon */
    transition: .5s ease;
}

.social-links a:hover {
    background: #1f242d !important;
    color: #0ef !important;
    /* Cyan icon on dark bg hover */
    box-shadow: 0 0 1rem #1f242d;
}

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews {
    background: var(--second-bg-color) !important;
    padding: 10rem 9% 6rem;
}

.reviews .heading {
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #aaa;
    margin-bottom: 4rem;
}

/* Review Input Area */
.review-input-area {
    max-width: 700px;
    margin: 0 auto 5rem;
}

.review-prompt {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2.5rem;
    background: var(--bg-color);
    border: 2px solid rgba(0, 238, 255, 0.2);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: .4s ease;
    color: #888;
    font-size: 1.6rem;
}

.review-prompt:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.15);
    color: var(--main-color);
}

.review-prompt i {
    font-size: 2.4rem;
    color: var(--main-color);
}

.review-form-expanded {
    display: none;
    background: var(--bg-color);
    border: 2px solid rgba(0, 238, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    animation: reviewSlideDown 0.4s ease;
}

.review-form-expanded.active {
    display: block;
}

@keyframes reviewSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rate-label {
    font-size: 1.5rem;
    color: #ccc;
}

.stars-input {
    display: flex;
    gap: .5rem;
}

.stars-input i {
    font-size: 2.8rem;
    color: #555;
    cursor: pointer;
    transition: .2s ease;
}

.stars-input i:hover,
.stars-input i.active {
    color: #ffd700;
}

.stars-input i.bxs-star {
    color: #ffd700;
}

/* Review Textarea */
.review-form-expanded textarea {
    width: 100%;
    padding: 1.5rem;
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: .3s;
}

.review-form-expanded textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.15);
    outline: none;
}

.review-form-expanded textarea::placeholder {
    color: #666;
}

/* Form Actions */
.review-form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.review-submit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: .8rem;
}

.review-cancel-btn {
    background: transparent !important;
    color: #aaa !important;
    border-color: #555 !important;
    box-shadow: none !important;
}

.review-cancel-btn:hover {
    color: #fff !important;
    border-color: #fff !important;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Review Card */
.review-card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: .4s ease;
    position: relative;
    overflow: hidden;
    animation: reviewFadeIn 0.5s ease;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.12);
    border-color: rgba(0, 238, 255, 0.2);
}

/* Delete Button */
.review-delete-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: #555;
    font-size: 2rem;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .3s ease;
    opacity: 0;
}

.review-card:hover .review-delete-btn {
    opacity: 1;
}

.review-delete-btn:hover {
    background: rgba(255, 70, 70, 0.15);
    color: #ff4646;
}

@keyframes reviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Review Card Header */
.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.reviewer-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #0a8f9a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-color);
    font-weight: 700;
}

.reviewer-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

.review-date {
    font-size: 1.2rem;
    color: #777;
}

/* Star Display */
.review-stars {
    display: flex;
    gap: .3rem;
    margin-bottom: 1.2rem;
}

.review-stars i {
    font-size: 1.6rem;
    color: #ffd700;
}

.review-stars i.empty {
    color: #444;
}

/* Review Text */
.review-text {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.7;
    position: relative;
}

.review-text::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--main-color);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: Georgia, serif;
}

.review-text p {
    padding-left: 2rem;
}

/* No Reviews State */
.no-reviews {
    text-align: center;
    padding: 5rem 2rem;
    color: #666;
}

.no-reviews i {
    font-size: 5rem;
    color: var(--main-color);
    opacity: 0.4;
    margin-bottom: 1.5rem;
}

.no-reviews p {
    font-size: 1.6rem;
}

/* Toast Notification */
.review-toast {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: var(--bg-color);
    border: 1px solid var(--main-color);
    color: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
    animation: toastSlide 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-toast i {
    color: var(--main-color);
    font-size: 2rem;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .reviews {
        padding: 8rem 5% 4rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-input-area {
        margin-bottom: 3rem;
    }

    .review-prompt {
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
    }

    .star-rating-input {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-form-actions {
        flex-direction: column;
    }

    .review-form-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .review-card {
        padding: 2rem;
    }
}