
        :root {
            --hot-pink: #fa7afa;
            --vibrant-purple: #ab69fc;
            --dark-indigo: #4441a0;
            --mimi-purple: #FFD6FF;
            --pink: #f8bbd9;
            --white: #FFFFFF;
            --light-gray: #E5E7EB;
            --black: #000000;
            --grey: #6B7280;
            --green: #53da84;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--mimi-purple);
            color: var(--black);
            overflow-x: hidden;
        }

        /* PREVENT TEXT OVERFLOW */
        h1, h2, h3, h4, p, span {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* ENSURE IMAGES ARE RESPONSIVE */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Header & Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: rgba(49, 46, 129, 0.95);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--hot-pink);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--hot-pink);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--light-gray);
        }

        .nav-links .download-btn {
            background-color: var(--hot-pink);
            color: var(--white);
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .nav-links .download-btn:hover {
            background-color: var(--pink);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
        }

        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--hot-pink);
        }

        
        /* Home Section */
.home {
    display: flex;
    min-height: 101vh; 
    position: relative;
    z-index: 1;
    overflow: hidden; /* Prevent content overflow */
}

.home-left {
    flex: 1;
    background-color: var(--dark-indigo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: var(--white);
    position: relative;
    z-index: 2;
    min-height: 101vh; /* Match parent height */
}

.home-left h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}


        .wave {
            animation-name: wave-animation;
            animation-duration: 1s;      /* speed of one wave */
            animation-iteration-count: 4; /* wave 4 times */
            transform-origin: 70% 70%;
            display: inline-block;
        }
        
        @keyframes wave-animation {
            0%   { transform: rotate(0deg); }
            20%  { transform: rotate(25deg); }
            40%  { transform: rotate(-20deg); }
            60%  { transform: rotate(25deg); }
            80%  { transform: rotate(-10deg); }
            100% { transform: rotate(0deg); } 
        }

        .home-left .typing-text {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--light-gray);
            min-height: 2.5rem;
        }

        .home-left .typing-text .typed-text {
            color: var(--hot-pink);
            font-weight: 600;
        }

        .home-left p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: var(--light-gray);
        }

        .home-left .download-cv-btn {
            display: inline-block;
            background-color: var(--hot-pink);
            color: var(--white);
            padding: 0.8rem 2rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            width: fit-content;
            touch-action: manipulation;
        }

        .home-left .download-cv-btn:hover {
            background-color: var(--pink);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
        }

        .home-right {
            flex: 1;
            background-color: var(--vibrant-purple);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .profile-image-wrapper {
            position: relative;
            width: 320px;
            height: 320px;
            z-index: 1;
        }

        .profile-image {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        }

        .profile-image img {
            width: 110%;
            height: 110%;
            object-fit: cover;
            object-position: center center;
            border-radius: 50%;
            margin: -5%;
        }

        .rotating-border {
            position: absolute;
            top: -12px;
            left: -12px;
            right: -12px;
            bottom: -12px;
            border: 8px dashed var(--hot-pink);
            border-radius: 50%;
            animation: rotate 20s linear infinite;
            z-index: 2;
        }

                /* Home Title Font Size Fix */
                .home-left .home-title {
                    font-size: 2.1rem;
                    margin-bottom: 1rem;
                    line-height: 1.2;
                }
        
                /* Button Group Styling */
                .button-group {
                    display: flex;
                    gap: 1rem;
                    flex-wrap: wrap;
                }
        
                /* Let's Connect Button */
                .home-left .connect-btn {
                    display: inline-block;
                    background-color: var(--vibrant-purple);
                    color: var(--white);
                    padding: 0.8rem 2rem;
                    border-radius: 5px;
                    text-decoration: none;
                    font-weight: 600;
                    transition: all 0.3s ease;
                    width: fit-content;
                    touch-action: manipulation;
                }
        
                .home-left .connect-btn:hover {
                    background-color: var(--dark-indigo);
                    transform: translateY(-5px);
                    box-shadow: 0 10px 20px rgba(181, 122, 255, 0.3);
                }



        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Sections */
 
/* Fix inconsistent section spacing */
section {
    padding: 3rem 5% !important;
    margin: 0 !important;
}

/* Consistent space between sections */
section + section {
    margin-top: 2.5rem !important;
}

/* Fix spacing before "Frameworks & Standards" */
h2:contains("Frameworks"), 
h3:contains("Frameworks"),
h2:contains("Standards"),
h3:contains("Standards") {
    margin-top: 2rem !important;
}

/* Add space after lists that come before headings */
ul + h2,
ul + h3,
ol + h2,
ol + h3 {
    margin-top: 1.5rem !important;
}

/* Add space before lists that come after headings */
h2 + ul,
h3 + ul,
h2 + ol,
h3 + ol {
    margin-top: 0.5rem !important;
}

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            text-align: center;
            position: relative;
            color: var(--dark-indigo);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, var(--hot-pink), var(--vibrant-purple));
            border-radius: 2px;
        }

        /* About Section */
        .about-container {
            max-width: 1000px;
            margin: 0 auto;
            background-color: var(--white);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .about-scroll {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 1rem;
        }

        .about-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .about-scroll::-webkit-scrollbar-track {
            background: var(--light-gray);
            border-radius: 10px;
        }

        .about-scroll::-webkit-scrollbar-thumb {
            background: var(--hot-pink);
            border-radius: 10px;
        }

        .about-scroll p {
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        



/* Functional Areas Heading - Clean Design */
.functional-areas-heading {
    text-align: center;
    margin: 4rem 0 3rem;
    position: relative;
}

.heading-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--mimi-purple), 
        transparent
    );
    opacity: 0.6;
}

.heading-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hot-pink), var(--mimi-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Title Styles */
.functional-areas-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.title-main {
    color: var(--dark-purple);
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.title-main::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--mimi-purple), 
        transparent
    );
}

.title-accent {
    background: linear-gradient(135deg, var(--hot-pink), var(--mimi-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    padding: 0 1rem;
}

/* Subtitle */
.heading-subtitle {
    margin-top: 1.5rem;
}

.heading-subtitle p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    font-style: italic;
}

.heading-subtitle p::before,
.heading-subtitle p::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--mimi-purple);
    opacity: 0.3;
    top: 50%;
    transform: translateY(-50%);
}

.heading-subtitle p::before {
    left: 0;
}

.heading-subtitle p::after {
    right: 0;
}

/* Functional Areas Grid - One Row */
.functional-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Base Card Styles */
.area-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgb(240, 93, 220);
}

/* Card Icon Styles */
.card-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.area-card:hover .card-icon {
    transform: scale(1.1);
}

/* Card Text Styles */
.area-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
}

/* Individual Card Colors - Natural and Untouched */
/* Data Analytics - Blue Theme */
.analytics-card::before {
    background: #3498db;
}

.analytics-card .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.analytics-card h4 {
    color: #2c3e50;
}

.analytics-card:hover h4 {
    color: #3498db;
}

/* Cloud Computing - Orange Theme */
.cloud-card::before {
    background: #f39c12;
}

.cloud-card .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

.cloud-card h4 {
    color: #2c3e50;
}

.cloud-card:hover h4 {
    color: #f39c12;
}

/* Network Administration - Green Theme */
.network-card::before {
    background: #27ae60;
}

.network-card .card-icon {
    background: linear-gradient(135deg, #27ae60, #219653);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.network-card h4 {
    color: #2c3e50;
}

.network-card:hover h4 {
    color: #27ae60;
}

/* Cybersecurity - Red Theme */
.security-card::before {
    background: #e74c3c;
}

.security-card .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2);
}

.security-card h4 {
    color: #2c3e50;
}

.security-card:hover h4 {
    color: #e74c3c;
}

/* Dance Animations - Subtle */
@keyframes gentleDance {
    0%, 100% { transform: translateY(0); }
    33% { transform: translateY(-10px); }
    66% { transform: translateY(-5px); }
}

.area-card.dancing {
    animation: gentleDance 0.5s ease infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Individual dance variations */
.analytics-card.dancing {
    animation-timing-function: ease-out;
}

.cloud-card.dancing {
    animation-duration: 0.6s;
}

.network-card.dancing {
    animation-duration: 0.55s;
}

.security-card.dancing {
    animation-timing-function: ease-in-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .functional-areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .area-card {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .functional-areas-title {
        font-size: 2.2rem;
    }
    
    .heading-subtitle p {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .functional-areas-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .area-card {
        height: 220px;
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .area-card h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 2rem 1.5rem;
    }
    
    .functional-areas-title {
        font-size: 1.8rem;
    }
    
    .heading-decorative {
        gap: 1rem;
    }
    
    .decorative-line {
        width: 40px;
    }
    
    .heading-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
        
        /* Education Section */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 6px;
            background-color: var(--vibrant-purple);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -3px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            width: 50%;
            box-sizing: border-box;
        }

        .timeline-item:nth-child(odd) {
            left: 0;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline-content {
            padding: 20px;
            background-color: var(--white);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgb(240, 130, 216);
        }

        .timeline-content h3 {
            color: var(--dark-indigo);
            margin-bottom: 0.5rem;
        }

        .timeline-content .date {
            color: var(--hot-pink);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .timeline-content .institution {
            color: rgb(117, 3, 117);
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: var(--white);
            border: 4px solid var(--hot-pink);
            border-radius: 50%;
            top: 15px;
            z-index: 1;
        }

        .timeline-item:nth-child(odd)::after {
            right: -10px;
        }

        .timeline-item:nth-child(even)::after {
            left: -10px;
        }


/* Main Experience Section */
#experience {
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(255, 214, 255, 0.1), rgba(181, 122, 255, 0.05));
    position: relative;
    overflow: hidden;
}

#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px; /* Reduced height */
    background: linear-gradient(135deg, 
        rgba(255, 0, 127, 0.08), 
        rgba(181, 122, 255, 0.05), 
        rgba(255, 214, 255, 0.03));
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 0;
}

/* Section Title - SAME COLOR AS EDUCATION */
#experience .section-title {
    font-size: 2.5rem; /* Same as education */
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    color: var(--dark-indigo); /* Same color as education */
    font-weight: 700; /* Same as education */
    text-transform: none; /* Removed uppercase */
    letter-spacing: normal; /* Reset */
}

#experience .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Same as education */
    height: 4px; /* Same as education */
    background: linear-gradient(90deg, var(--hot-pink), var(--vibrant-purple)); /* Same as education */
    border-radius: 2px; /* Same as education */
}

/* Removed title-underline class since we're using ::after instead */

/* Section Description */
#experience .section-description {
    text-align: center;
    color: var(--grey);
    font-size: 1.1rem;
    margin-bottom: 3rem; /* Reduced from 4rem */
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    position: relative;
    z-index: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px; /* Reduced from 15px */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); /* Reduced shadow */
}

/* Experience Cards Container - SMALLER CARDS */
.experience-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Smaller min width */
    gap: 25px; /* Reduced gap */
    max-width: 1100px; /* Reduced width */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Individual Experience Card - SMALLER SIZE */
.experience-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 16px; /* Reduced from 20px */
    padding: 0;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08), /* Reduced shadow */
        0 8px 15px rgba(255, 0, 127, 0.1), /* Reduced shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-height: 450px; /* Added min height for consistency */
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* Reduced from 5px */
    background: linear-gradient(90deg, var(--hot-pink), var(--vibrant-purple));
    border-radius: 16px 16px 0 0; /* Reduced */
    z-index: 2;
}

.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 127, 0.03) 0%, 
        rgba(181, 122, 255, 0.05) 100%);
    border-radius: 16px; /* Reduced */
    z-index: 1;
}

.experience-card:hover {
    transform: translateY(-10px) rotateX(3deg); /* Reduced movement */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12), /* Reduced shadow */
        0 15px 30px rgba(255, 0, 127, 0.15), /* Reduced shadow */
        0 0 0 2px rgba(255, 0, 127, 0.1), /* Reduced border */
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 0, 127, 0.2);
}

/* Card Header - SMALLER PADDING */
.card-header {
    padding: 25px 25px 18px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px 16px 0 0; /* Reduced */
    position: relative;
    z-index: 3;
}

/* Job Title with Icon - SMALLER */
.job-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap */
    margin-bottom: 12px; /* Reduced */
}

.job-icon {
    width: 45px; /* Reduced from 50px */
    height: 45px; /* Reduced from 50px */
    background: linear-gradient(135deg, var(--hot-pink), var(--vibrant-purple));
    border-radius: 10px; /* Reduced from 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem; /* Reduced from 1.5rem */
    box-shadow: 0 6px 15px rgba(255, 0, 127, 0.25); /* Reduced shadow */
    flex-shrink: 0;
}

.experience-job-title {
    color: var(--dark-indigo);
    font-size: 1.4rem; /* Reduced from 1.6rem */
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.experience-company {
    color: var(--vibrant-purple);
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
}

.experience-company::before {
    content: '🏢';
    font-size: 0.9rem;
}

.experience-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(181, 122, 255, 0.1));
    color: rgb(0, 0, 0);
    padding: 7px 18px; /* Reduced padding */
    border-radius: 22px; /* Slightly reduced */
    font-size: 0.9rem; /* Slightly smaller */
    font-weight: 600;
    margin-top: 8px; /* Reduced */
    border: 1px solid rgb(22, 6, 6);
    backdrop-filter: blur(10px);
}

.experience-duration::before {
    content: '📅';
    font-size: 0.85rem;
}

/* Card Body - SMALLER PADDING */
.card-body {
    padding: 0 25px 25px; /* Reduced padding */
    position: relative;
    z-index: 3;
}

/* Responsibilities List - BLUE SQUARE BULLETS & STRONG BLACK TEXT */
.experience-responsibilities {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.experience-responsibilities li {
    margin-bottom: 10px; /* Reduced */
    padding-left: 28px; /* Adjusted for square */
    position: relative;
    color: #000000 !important; /* FORCE STRONG BLACK */
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.experience-responsibilities li:hover {
    color: rgb(0, 0, 0) !important;
    transform: translateX(8px); /* Reduced movement */
}

/* BLUE SQUARE BULLETS - NO STARS */
.experience-responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px; /* Square size */
    height: 12px; /* Square size */
    background: linear-gradient(135deg, #014592, #014592); /* Blue gradient */
    border-radius: 3px; /* Slightly rounded corners */
    transform: rotate(45deg); /* Rotated square */
}

/* Scrollable Area */
.experience-scrollable {
    max-height: 220px; /* Reduced height */
    overflow-y: auto;
    padding-right: 12px; /* Reduced padding */
    margin-top: 12px; /* Reduced */
    position: relative;
}

.experience-scrollable::-webkit-scrollbar {
    width: 5px; /* Slightly thinner */
}

.experience-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 0, 127, 0.05);
    border-radius: 8px; /* Reduced */
}

.experience-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--hot-pink), var(--vibrant-purple));
    border-radius: 8px; /* Reduced */
}

.experience-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--vibrant-purple), var(--hot-pink));
}

/* Scroll Indicator - STRONG COLOR */
.scroll-indicator {
    position: absolute;
    bottom: 8px; /* Adjusted */
    right: 12px; /* Adjusted */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--hot-pink) !important; /* STRONG COLOR */
    font-size: 0.8rem;
    opacity: 0.9 !important; /* More visible */
    font-weight: 600 !important; /* Bold */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Better visibility */
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-indicator span:first-child {
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Card Footer - SMALLER */
.card-footer {
    padding: 18px 25px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 16px 16px; /* Reduced */
    border-top: 1px solid rgba(255, 0, 127, 0.1);
    position: relative;
    z-index: 3;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Reduced gap */
}

.role-tag {
    background: rgba(181, 122, 255, 0.1);
    color: rgba(0, 0, 0, 0.938);
    padding: 4px 12px; /* Reduced padding */
    border-radius: 18px; /* Slightly reduced */
    font-size: 0.75rem; /* Slightly smaller */
    font-weight: 500;
    border: 1px solid rgba(25, 2, 53, 0.2)
}

.role-tag.tutor {
    background: rgba(255, 0, 127, 0.1);
    color: var(--hot-pink);
    border-color: rgba(255, 0, 127, 0.2);
}

.role-tag.volunteer {
    background: rgba(0, 127, 255, 0.1);
    color: #007FFF;
    border-color: rgba(0, 127, 255, 0.2);
}

/* Floating Decorative Elements - SMALLER */
.floating-element {
    position: absolute;
    width: 80px; /* Reduced from 100px */
    height: 80px; /* Reduced from 100px */
    background: linear-gradient(135deg, 
        rgba(255, 0, 127, 0.1), 
        rgba(181, 122, 255, 0.05));
    border-radius: 50%;
    filter: blur(30px); /* Reduced blur */
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

.floating-element:nth-child(1) {
    top: 15%; /* Adjusted */
    left: 8%; /* Adjusted */
    width: 120px; /* Reduced from 150px */
    height: 120px; /* Reduced from 150px */
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 65%; /* Adjusted */
    right: 12%; /* Adjusted */
    width: 100px; /* Reduced from 120px */
    height: 100px; /* Reduced from 120px */
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -30px) rotate(120deg); /* Reduced movement */
    }
    66% {
        transform: translate(-15px, 25px) rotate(240deg); /* Reduced movement */
    }
}

/* RESPONSIVE DESIGN  */
@media (max-width: 768px) {
    #experience .section-title {
        font-size: 2rem; /* Matches education */
    }
    
    .experience-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .experience-card {
        margin: 0 5px; /* Reduced margin */
        min-height: 420px; /* Adjusted for mobile */
    }
    
    .job-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* Reduced gap */
    }
    
    .job-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .experience-job-title {
        font-size: 1.3rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 20px 18px; /* Reduced padding */
    }
    
    .experience-responsibilities li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #experience {
        padding: 3rem 5%;
    }
    
    #experience .section-title {
        font-size: 1.8rem; /* Matches education */
    }
    
    #experience .section-description {
        font-size: 1rem;
        padding: 15px;
        margin-bottom: 2.5rem;
    }
    
    .experience-cards-container {
        gap: 15px;
    }
    
    .experience-card:hover {
        transform: translateY(-8px); /* Reduced movement */
    }
    
    .experience-card {
        min-height: 400px; /* Adjusted for small screens */
    }
}

/* Card Entrance Animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97); /* Reduced movement */
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.experience-card {
    animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.experience-card:nth-child(1) {
    animation-delay: 0.1s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.3s;
}

        /* Certificates Section */
        .certificates-container {
            max-width: 1000px;
            margin: 0 auto;
        }

    .certificate-item {
        background-color: var(--white);
        border-radius: 10px;
        margin-bottom: 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .certificate-header {
        padding: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .certificate-header:hover {
        background-color: rgb(219, 237, 240);
    }

    .certificate-header h3 {
        color: var(--dark-indigo);
    }

    .certificate-header i {
        color: var(--hot-pink);
        transition: transform 0.3s ease;
    }

    .certificate-content {
        display: none;
        padding: 0 1.5rem 1.5rem;
    }

    .certificate-content.active {
        display: block;
    }

    .certificate-image {
        max-width: 100%;
        border-radius: 5px;
        margin-top: 1rem;
        box-shadow: 0 3px 10px rgba(14, 13, 13, 0.1);
    }

    .certificate-link {
        display: inline-block;
        margin-top: 1rem;
        color: var(--hot-pink);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .certificate-link:hover {
        color: var(--vibrant-purple);
    }

        /* Skills Section */
        .skills-container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .skill-category {
            background-color: rgb(255, 255, 255);
            border-radius: 10px;
            margin-bottom: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .skill-header {
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .skill-header:hover {
            background-color: rgb(219, 237, 240);
        }

        .skill-header h3 {
            color: var(--dark-indigo);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .skill-header i {
            color: var(--hot-pink);
            transition: transform 0.3s ease;
        }

        .skill-content {
            display: none;
            padding: 0 1.5rem 1.5rem;
        }

        .skill-content.active {
            display: block;
        }

        .skill-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }

        .skill-item {
            background-color: var(--mimi-purple);
            padding: 0.8rem;
            border-radius: 5px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .skill-item:hover {
            background-color: var(--hot-pink);
            color: var(--white);
            transform: translateY(-3px);
        }


        /* Style the Tools & Technologies section */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .tool-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .tool-item:hover {
            transform: translateY(-20px);
        }

        .tool-icon {
            width: 65px;
            height: 65px;
            background-color: var(--white);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            font-size: 1.8rem;
            color: var(--hot-pink);
        }

        .tool-name {
            font-size: 0.8rem;
            text-align: center;
            color: rgb(36, 0, 104)
        }

       /* Frameworks & Standards Section - COMPACT VERSION */
.frameworks-container {
    max-width: 1000px;
    margin: 0 auto;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Smaller min width */
    gap: 1.5rem; /* Reduced gap */
}

.framework-item {
    background-color: var(--white);
    border-radius: 12px; /* Slightly smaller radius */
    padding: 1.5rem; /* Reduced padding */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Lighter shadow */
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray); /* Subtle border instead of transparent */
    height: 100%; /* Make all cards equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.framework-item:hover {
    transform: translateY(-10px); /* Smaller hover lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Lighter hover shadow */
    border-color: var(--vibrant-purple);
}

.framework-icon {
    width: 60px; /* Smaller icon */
    height: 60px;
    background: linear-gradient(135deg, var(--hot-pink), var(--vibrant-purple));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem; /* Reduced margin */
    color: white;
    font-size: 1.5rem; /* Smaller icon size */
}

.framework-item h3 {
    color: var(--dark-indigo);
    margin-bottom: 0.3rem; /* Reduced margin */
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 600;
    line-height: 1.3;
}

.framework-item p {
    color: var(--grey);
    font-size: 0.85rem; /* Smaller text */
    margin-bottom: 0.8rem; /* Reduced margin */
    line-height: 1.4;
    min-height: auto; /* Remove fixed height */
    flex-grow: 1; /* Allow description to take available space */
}

.framework-level {
    display: inline-block;
    padding: 0.2rem 0.8rem; /* Smaller padding */
    background-color: var(--mimi-purple);
    color: var(--vibrant-purple);
    border-radius: 15px; /* Smaller radius */
    font-size: 0.75rem; /* Smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: auto; /* Push to bottom */
}

/*Add a subtle background pattern to cards */
.framework-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hot-pink), var(--vibrant-purple));
    border-radius: 12px 12px 0 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .framework-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Even smaller on mobile */
        gap: 1rem;
    }
    
    .framework-item {
        padding: 1.2rem;
    }
    
    .framework-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .framework-item h3 {
        font-size: 1.1rem;
    }
    
    .framework-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .framework-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 1rem;
    }
    
    .framework-item {
        padding: 1rem;
    }
}


/* Projects Section */

/* Project container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide projects initially */
.project-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Project card styling */
.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
    min-height: 500px; /* Reduced minimum height */
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 20px 40px rgb(170, 235, 235),
        0 15px 30px rgb(150, 223, 223),
        0 10px 20px rgb(175, 238, 238);
    animation: gentle-wiggle 2s ease-in-out;
}

@keyframes gentle-wiggle {
    0%, 100% { 
        transform: translateY(-10px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(0.5deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-0.5deg); 
    }
}

/* Project image */
.project-image {
    height: 200px;
    min-height: 200px;
    background-color: var(--dark-indigo);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Project content */
.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--dark-indigo);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-date {
    color: var(--hot-pink);
    font-weight: 500;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Project tools */
.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.project-tool {
    background-color: var(--mimi-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-indigo);
    white-space: nowrap;
}

/* ===== RESPONSIBILITIES SECTION ===== */
/* Responsibilities should be hidden by default */
.project-responsibilities {
    margin-bottom: 1rem;
    max-height: 0; /* Completely hidden by default */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    flex-shrink: 0;
}

/* When responsibilities are shown */
.project-responsibilities.show-responsibilities {
    max-height: 300px; /* Fixed medium height with scrollbar */
    opacity: 1;
    visibility: visible;
    margin-bottom: 1.5rem;
}

/* Content inside responsibilities */
.project-responsibilities .responsibility-content {
    max-height: 300px; /* Fixed height for scroll */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom scrollbar for responsibilities */
.project-responsibilities .responsibility-content::-webkit-scrollbar {
    width: 6px;
}

.project-responsibilities .responsibility-content::-webkit-scrollbar-track {
    background: var(--mimi-purple);
    border-radius: 10px;
}

.project-responsibilities .responsibility-content::-webkit-scrollbar-thumb {
    background: var(--hot-pink);
    border-radius: 10px;
}

.project-responsibilities .responsibility-content::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

.project-responsibilities .responsibility-content ul {
    padding-left: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

.project-responsibilities .responsibility-content li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    position: relative;
    padding-left: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

.project-responsibilities .responsibility-content li:before {
    content: "•";
    color: var(--hot-pink);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/*  Project Buttons */
.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Push buttons to bottom */
    flex-shrink: 0; /* Prevent buttons from shrinking */
    padding-top: 1rem;
}

.project-btn {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    touch-action: manipulation;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    white-space: nowrap;
}

.view-project {
    background-color: var(--hot-pink);
    color: var(--white);
}

.view-project:hover {
    background-color: var(--pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}

.view-responsibilities-btn {
    background-color: var(--hot-pink);
    color: var(--white);
}

.view-responsibilities-btn:hover {
    background-color: var(--pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}

/* Button state when responsibilities are shown */
.view-responsibilities-btn[aria-expanded="true"] {
    background-color: var(--pink);
}

/* View More/Less Projects Button Container  */
.view-more-projects-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--mimi-purple);
    width: 100%;
    grid-column: 1 / -1; /* Make it span all grid columns */
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-more-projects-btn {
    background: linear-gradient(45deg, var(--hot-pink), var(--vibrant-purple));
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
    justify-content: center;
}

.view-more-projects-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
    background: linear-gradient(45deg, var(--vibrant-purple), var(--hot-pink));
}

.view-more-projects-btn .fa-chevron-down {
    transition: transform 0.3s ease;
}

.view-more-projects-btn.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

/* Ensure the button container is properly placed in the grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* When hidden projects are shown, ensure button is at bottom */
.projects-container:has(.project-card.visible:last-of-type) + .view-more-projects-container {
    margin-top: 3rem;
    padding-top: 2rem;
}


/*  Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        min-height: 450px; /* Reduced for mobile */
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-buttons {
        flex-direction: column;
    }
    
    .project-tool {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-responsibilities.show-responsibilities {
        max-height: 250px; /* Slightly smaller on mobile */
    }
    
    .project-responsibilities .responsibility-content {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .project-card {
        min-height: 400px;
    }
    
    .project-image {
        height: 180px;
        min-height: 180px;
    }
    
    .project-responsibilities.show-responsibilities {
        max-height: 200px;
    }
    
    .project-responsibilities .responsibility-content {
        max-height: 200px;
    }
}




/* Awards Section - PROPERLY SIZED IMAGES */
.awards-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2.5rem;
}

.award-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 580px; /* Reduced from 650px */
}

.award-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(175, 218, 247, 0.2);
}

/* Award Header Styling */
.award-header {
    padding: 1.8rem 1.8rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05), rgba(138, 43, 226, 0.05));
}

.award-icon {
    font-size: 2.5rem;
    color: var(--hot-pink);
    min-width: 60px;
    text-align: center;
    padding-top: 0.3rem;
}

.award-text {
    flex: 1;
}

.award-card h3 {
    color: var(--dark-indigo);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
}

.award-card p {
    color: var(--vibrant-purple);
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.award-date {
    color: var(--white);
    font-weight: 600;
    padding: 0.4rem 1.3rem;
    background: linear-gradient(135deg, var(--hot-pink), var(--vibrant-purple));
    border-radius: 22px;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.25);
}

/* PROPER IMAGE STYLING - Vice Chancellor */
.award-image-proper {
    width: 100%;
    flex: 1;
    min-height: 320px; /* Reduced from 400px */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Reduced padding */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.image-proper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.proper-image {
    max-width: 90%; /* Reduced from 100% */
    max-height: 90%; /* Reduced from 100% */
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid white;
}

.proper-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}

/* PROPER IMAGE WITH HOVER - Tutor Award */
.award-image-proper-hover {
    width: 100%;
    flex: 1;
    min-height: 320px; /* Reduced from 400px */
    position: relative;
    padding: 15px; /* Reduced padding */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.image-proper-hover-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Proper image wrappers */
.proper-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
    padding: 0 15px;
}

.default-proper {
    opacity: 1;
    z-index: 1;
}

.hover-proper {
    opacity: 0;
    z-index: 2;
}

/* Proper hover images */
.proper-hover-image {
    max-width: 90%; /* Reduced from 100% */
    max-height: 90%; /* Reduced from 100% */
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid white;
}

/* Hover effect */
.image-proper-hover-container:hover .default-proper {
    opacity: 0;
}

.image-proper-hover-container:hover .hover-proper {
    opacity: 1;
}

/* Captions for hover images */
.proper-hover-caption {
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}




/* Instruction - MOVED FURTHER RIGHT */
.proper-hover-instruction {
    position: absolute;
    top: 20px;
    right: 10px; /* MOVED FROM 20px TO 10px - CLOSER TO EDGE */
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-indigo);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.image-proper-hover-container:hover .proper-hover-instruction {
    background: var(--vibrant-purple);
    color: white;
    transform: scale(1.03);
}

.proper-hover-instruction i {
    color: var(--vibrant-purple);
    transition: color 0.3s ease;
}

.image-proper-hover-container:hover .proper-hover-instruction i {
    color: white;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .awards-container {
        max-width: 850px;
        grid-template-columns: 1fr;
    }
    
    .award-card {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .awards-container {
        max-width: 100%;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .award-card {
        min-height: 500px;
    }
    
    .award-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .award-icon {
        padding-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .award-card h3 {
        font-size: 1.3rem;
    }
    
    .award-image-proper,
    .award-image-proper-hover {
        min-height: 280px;
        padding: 12px;
    }
    
    .proper-image,
    .proper-hover-image {
        max-width: 85%;
        max-height: 85%;
    }
    
    .proper-hover-instruction {
        top: 15px;
        right: 8px; /* MOVED FROM 15px TO 8px - CLOSER TO EDGE */
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .award-card {
        min-height: 450px;
    }
    
    .award-image-proper,
    .award-image-proper-hover {
        min-height: 250px;
        padding: 10px;
    }
    
    .proper-image,
    .proper-hover-image {
        max-width: 80%;
        max-height: 80%;
        border-width: 1px;
    }
    
    .proper-image-caption,
    .proper-hover-caption {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .proper-hover-instruction {
        top: 10px;
        right: 6px; /* MOVED FROM 10px TO 6px - CLOSER TO EDGE */
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}

/* MAKE IMAGES FULL ON HOVER */
@media (max-width: 768px) {
    .award-image-proper,
    .award-image-proper-hover {
        min-height: 380px !important;
        height: 380px !important;
    }
    
    /* Default size (when not hovering) */
    .proper-hover-image {
        width: auto !important;
        height: auto !important;
        max-width: 98% !important;
        max-height: 90% !important;
        transition: all 0.3s ease !important;
    }
    
    /* FULL SIZE ON HOVER */
    .image-proper-hover-container:hover .proper-hover-image {
        width: 98% !important;
        height: 98% !important;
        max-width: 98% !important;
        max-height: 98% !important;
        transform: scale(1.05) !important;
    }
    
    /* Also make the first image consistent */
    .proper-image {
        width: auto !important;
        height: auto !important;
        max-width: 98% !important;
        max-height: 98% !important;
    }
}

        /* Contact Section */
        .contact-container {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            gap: 3rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info h3 {
            color: var(--dark-indigo);
            margin-bottom: 1.5rem;
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            background-color: var(--white);
            border-radius: 40%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            color: var(--hot-pink);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .contact-item:hover .contact-icon {
            background-color: var(--hot-pink);
            color: var(--white);
            transform: translateY(7px);
        }

        .contact-text h4 {
            color: var(--dark-indigo);
            margin-bottom: 0.2rem;
        }

        .contact-text p {
            color: var(--grey);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-link {
            width: 50px;
            height: 50px;
            background-color: var(--white);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            color: var(--hot-pink);
            text-decoration: none;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background-color: var(--hot-pink);
            color: var(--white);
            transform: translateY(-5px);
        }







        /* Contact Section - Mobile Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
        word-break: break-all; /* For long URLs/emails */
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .contact-container {
        gap: 1.5rem;
    }
    
    .contact-details {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}





        .contact-form {
            flex: 1;
            background-color: var(--white);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .contact-form::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(45deg, #FF7F00, var(--hot-pink), var(--white), #007FFF, #00FF7F, var(--vibrant-purple));
            border-radius: 12px;
            z-index: -1;
            animation: borderAnimation 3s linear infinite;
            background-size: 400% 400%;
        }

        @keyframes borderAnimation {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--dark-indigo);
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid var(--light-gray);
            border-radius: 5px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--hot-pink);
            box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.1);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        .submit-btn {
            background: linear-gradient(45deg, 
                #FF007F, 
                #FF4DA6, 
                #B57AFF, 
                #8A5CFF, 
                #007FFF, 
                #00BFFF, 
                #00FF7F,
                #4DFF9C,
                #FF007F);
            background-size: 600% 600%;
            color: var(--white);
            border: none;
            border-radius: 5px;
            padding: 0.8rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.5s ease;
            position: relative;
            overflow: hidden;
            touch-action: manipulation;
            animation: ultraSmoothFlow 15s ease infinite;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            box-shadow: 
                0 5px 15px rgba(0, 0, 0, 0.2),
                0 0 10px rgba(255, 0, 127, 0.3);
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(255, 0, 127, 0.5);
            animation: ultraSmoothFlow 6s ease infinite;
        }

        @keyframes ultraSmoothFlow {
            0% {
                background-position: 0% 0%;
            }
            50% {
                background-position: 100% 100%;
            }
            100% {
                background-position: 0% 0%;
            }
        }

                /* Enhanced required field styling */
                .required {
                    color: #ff0000;
                    font-weight: bold;
                    margin-left: 2px;
                    font-size: 1.1em;
                }
                
                /* Style for invalid/empty required fields */
                .form-control:invalid:not(:focus):not(:placeholder-shown) {
                    border-color: #ff0000;
                    background-color: rgba(255, 0, 0, 0.05);
                }
                
                .form-control:invalid:not(:focus):not(:placeholder-shown) + .error-message {
                    display: block;
                }
                
                /* Error message styling */
                .error-message {
                    display: none;
                    color: #ff0000;
                    font-size: 0.8rem;
                    margin-top: 0.3rem;
                }
                
                .form-required-note {
                    color: var(--grey);
                    font-size: 0.85rem;
                    margin: 1rem 0;
                    text-align: left;
                    padding: 0.5rem;
                    background-color: rgba(255, 0, 0, 0.05);
                    border-radius: 4px;
                    border-left: 3px solid #ff0000;
                }
        .success-message {
            display: none;
            margin-top: 1rem;
            padding: 1rem;
            background-color: rgba(132, 243, 175, 0.219);
            border: 1px solid var(--green);
            border-radius: 5px;
            color: var(--green);
            text-align: center;
        }

        /* ===== Footer ===== */
footer {
    background-color: var(--dark-indigo);
    color: var(--white);
    padding: 1.1rem 2%;
}

[data-theme="dark"] footer {
    background-color: #0a0a15;
}

/* Force everything to start from left edge */
footer .footer-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

footer .footer-left {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.99rem;
    position: relative;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--hot-pink);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hot-pink);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-align: left;
    opacity: 0.8;
}

/* ===== Feedback Widget ===== */
.footer-right {
    flex: 0 0 auto;
}

.feedback-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: -0.3rem 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.feedback-widget:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--hot-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 64, 129, 0.15);
}

.feedback-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.star-emoji {
    font-size: 1.5rem;
    animation: gentle-bounce 2s infinite ease-in-out;
}

@keyframes gentle-bounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-7px) rotate(15deg); 
    }
    75% { 
        transform: translateY(-7px) rotate(-15deg); 
    }
}

.feedback-text {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.feedback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--hot-pink), var(--vibrant-purple));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
    width: 100%;
    text-align: center;
}

.feedback-link:hover {
    background: linear-gradient(135deg, var(--vibrant-purple), var(--hot-pink));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 64, 129, 0.4);
    color: white;
}

.feedback-link i {
    font-size: 0.8rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-left {
        min-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .feedback-widget {
        margin: 0 auto;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 5%;
    }
    
    .footer-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .feedback-widget {
        padding: 1rem;
    }
    
    .feedback-text {
        font-size: 0.95rem;
    }
    
    .feedback-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

        /* RESPONSIVE DESIGN */
        @media (max-width: 1200px) {
            .home-left h1 {
                font-size: 3rem;
            }
            
            .home-left .typing-text {
                font-size: 1.6rem;
            }
        }

        @media (max-width: 992px) {
            .home {
                flex-direction: column;
                min-height: auto;
            }
            
            .home-left, .home-right {
                flex: none;
                min-height: 50vh;
                width: 100%;
            }
            
            .home-left {
                padding: 6rem 5% 3rem;
                text-align: center;
                order: 2;
            }
            
            .home-right {
                order: 1;
                padding: 4rem 5%;
            }
            
            .home-left h1 {
                font-size: 2.5rem;
                margin-bottom: 1rem;
            }
            
            .home-left .typing-text {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .home-left p {
                font-size: 1.1rem;
                margin-bottom: 2rem;
            }
            
            .home-left .download-cv-btn {
                margin: 0 auto;
            }
            
            .profile-image-wrapper {
                width: 280px;
                height: 280px;
            }
            
            .timeline::after {
                left: 31px;
            }
            
            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }
            
            .timeline-item:nth-child(even) {
                left: 0;
            }
            
            .timeline-item::after {
                left: 21px;
            }
            
            .timeline-item:nth-child(odd)::after, 
            .timeline-item:nth-child(even)::after {
                left: 21px;
            }
            
            .contact-container {
                flex-direction: column;
                gap: 2rem;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: var(--dark-indigo);
                flex-direction: column;
                padding: 1.5rem 5%;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
                z-index: 1000;
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links a {
                padding: 0.8rem 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .nav-links .download-btn {
                margin-top: 1rem;
                text-align: center;
            }
            
            .hamburger {
                display: block;
            }
            
            .home-left {
                padding: 5rem 5% 2rem;
            }
            
            .home-left h1 {
                font-size: 2.2rem;
                line-height: 1.3;
            }
            
            .home-left .typing-text {
                font-size: 1.4rem;
                min-height: 2.2rem;
            }
            
            .profile-image-wrapper {
                width: 250px;
                height: 250px;
            }
            
            .rotating-border {
                top: -10px;
                left: -10px;
                right: -10px;
                bottom: -10px;
            }
            
            .section-title {
                font-size: 2rem;
                margin-bottom: 2.5rem;
            }
            
            section {
                padding: 4rem 5%;
            }
            
            .projects-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .project-buttons {
                flex-direction: column;
            }
            
            .skill-list {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
                gap: 1rem;
            }
            
            .project-image {
                height: 180px;
            }
        }

        @media (max-width: 576px) {
            .home-left h1 {
                font-size: 1.8rem;
            }
            
            .home-left .typing-text {
                font-size: 1.2rem;
                min-height: 2rem;
            }
            
            .home-left p {
                font-size: 1rem;
            }
            
            .profile-image-wrapper {
                width: 220px;
                height: 220px;
            }
            
            .profile-image img {
                width: 115%;
                height: 115%;
                margin: -7.5%;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .functional-areas {
                flex-direction: column;
            }
            
            .area-card {
                min-width: 100%;
            }
            
            .awards-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .project-image {
                height: 160px;
            }
        }

        @media (max-width: 400px) {
            .home-left h1 {
                font-size: 1.6rem;
            }
            
            .home-left .typing-text {
                font-size: 1.1rem;
            }
            
            .profile-image-wrapper {
                width: 200px;
                height: 200px;
            }
            
            .rotating-border {
                top: -8px;
                left: -8px;
                right: -8px;
                bottom: -8px;
                border-width: 6px;
            }
            
            .tool-icon {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            
            .tool-name {
                font-size: 0.7rem;
            }
            
            .project-content h3 {
                font-size: 1.2rem;
            }
            
            .project-tools {
                gap: 0.3rem;
            }
            
            .project-tool {
                font-size: 0.7rem;
                padding: 0.2rem 0.6rem;
            }
        }

        /*  FIX SCROLLBAR AND OVERLAPPING */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Add padding to top of all sections to account for fixed header */
section {
    padding: 7rem 5% 5rem; /* Increased top padding to 7rem */
    scroll-margin-top: 5rem; /* This prevents content from hiding under header */
}

/* Specifically for home section, adjust padding */
#home {
    padding-top: 0; /* Home doesn't need extra padding */
    scroll-margin-top: 0;
}

/* Fix the header height issue */
header {
    height: 70px; /* Fixed height */
}

.home {
    margin-top: 70px; /* Push home section down by header height */
    min-height: calc(100vh - 70px); /* Adjust height to account for header */
}

/* Fix typing text container height */
.home-left .typing-text {
    min-height: 2.5rem;
    height: auto; /* Allow it to grow */
}

/* Ensure text doesn't get cut off */
.home-left h1,
.home-left .typing-text,
.home-left p {
    max-width: 100%;
    word-break: normal;
    overflow: visible;
}

/* Fix z-index stacking */
.home-left {
    position: relative;
    z-index: 10;
}

.home-right {
    position: relative;
    z-index: 5;
}

/* Adjust responsive home section margins */
@media (max-width: 992px) {
    .home {
        margin-top: 70px;
        min-height: auto;
    }
    
    .home-left, .home-right {
        min-height: calc(50vh - 35px);
    }
}

/* Fix for very small screens */
@media (max-width: 400px) {
    .home-left h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .home-left .typing-text {
        font-size: 1.2rem;
        min-height: 2.2rem;
        line-height: 1.4;
    }
    
    .home-left p {
        font-size: 1rem;
        line-height: 1.4;
    }
}














/* AI Assistant Styles - Position in bottom-right */
#ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Toggle Button Container */
.ai-toggle-btn {
    width: 75px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(30, 144, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 0;
    animation: bluePulse 4s infinite ease-in-out;
}

/* Container for Your Chatbot Design */
.chatbot-container {
    position: relative;
    width: 120px;
    height: 120px;
    transform: scale(0.7);
    transform-origin: center;
    margin: 0;
}

/* Chatbot Speech Bubble */
.chatbot-speech {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: white;
    border: 2px solid #FF1493;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #FF1493;
    z-index: 20;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.dots {
    display: flex;
    gap: 3px;
}
.dots span {
    width: 6px;
    height: 6px;
    background: #FF1493;
    border-radius: 50%;
    animation: jump 1s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jump {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Chatbot Head */
.chatbot-head {
    width: 108%;
    height: 81px;
    background: #1E90FF;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Chatbot Face */
.chatbot-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 12;
}

.chatbot-eyes {
    display: flex;
    gap: 10.5px;
    margin-bottom: 8px;
}
.chatbot-eye {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}
.chatbot-eye::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: black;
    border-radius: 50%;
    animation: blink 3s infinite step-end;
}
@keyframes blink {
    0%, 20%, 40%, 60%, 80%, 100% { height: 8px; }
    50% { height: 0; }
}

/* Chatbot Smile */
.chatbot-smile {
    position: relative;
    width: 40px;
    height: 17px;
    background: #0A2472;
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    margin-top: 4px;
    animation: laugh 2.2s infinite alternate;
}

.chatbot-teeth {
    display: flex;
    gap: 1px;
    width: 80%;
    height: 5px;
    margin-top: 1.1px;
}
.chatbot-teeth span {
    flex: 1;
    background: #ffffff;
    border-radius: 1px;
}

@keyframes laugh {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.12) rotate(-1deg); }
    100% { transform: scaleY(1) rotate(1deg); }
}

/* Chatbot Blush */
.chatbot-blush {
    position: absolute;
    width: 7px;
    height: 4px;
    background: rgba(255,20,147,0.35);
    border-radius: 50%;
    top: 65%;
}
.chatbot-blush.left { left: 15%; }
.chatbot-blush.right { right: 15%; }

/* Chatbot Headphones */
.chatbot-headphones {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    z-index: 15;
}
.headphone-band {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50px;
    border: 8px solid #FF1493;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    border-bottom: none;
    box-sizing: border-box;
    z-index: 14;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.earcup {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #FF1493;
    border: 2px solid white;
    border-radius: 50%;
    top: 25px;
    z-index: 16;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}
.earcup.left { left: -10px; }
.earcup.right { right: -10px; }

/* Chatbot Microphone */
.mic-arm {
    position: absolute;
    top: 55px;
    right: -4px;
    width: 35px;
    height: 40px;
    border: 3px solid #FF1493;
    border-color: transparent transparent #FF1493 #FF1493;
    border-radius: 0 0 40px 40px;
    transform: rotate(-48deg);
    box-sizing: border-box;
    z-index: 13;
}
.microphone {
    position: absolute;
    top: 69px;
    right: 22px;
    width: 20px;
    height: 14px;
    background: #FF1493;
    border-radius: 20px;
    z-index: 17;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    width: 15px;
    height: 15px;
    background: #FF4757;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: pulseNotification 2s infinite;
    z-index: 10;
}

@keyframes pulseNotification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button Hover Effects */
.ai-toggle-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 45px rgba(30, 144, 255, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Pulse Animation */
@keyframes bluePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 35px rgba(30, 144, 255, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(30, 144, 255, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.4);
    }
}

/*  CHAT WINDOW */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1f0ff;
    z-index: 1001;
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header - FIXED */
.chat-header {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2C6BA8;
    height: 70px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

/* Profile Picture */
.profile-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: white;
    flex-shrink: 0;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Assistant Info - FIXED TEXT VISIBILITY */
.assistant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.assistant-details {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Title - FIXED SIZE */
.assistant-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    display: block;
    width: 100%;
}

/* Status Text - FIXED SIZE */
.assistant-status {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.status-indicator {
    width: 7px;
    height: 7px;
    background: #67e600;
    border-radius: 50%;
    animation: statusGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes statusGlow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Close Button */
.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Message Styles - DECREASED FONT SIZE */
.message {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: 2px;
}

.ai-message .message-avatar {
    border: 2px solid #4A90E2;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

.user-message .message-avatar {
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content-container {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}

.message-sender {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
    font-weight: 500;
}

.ai-message .message-sender {
    color: #4A90E2;
    margin-left: 8px;
}

.user-message .message-sender {
    color: #6c757d;
    text-align: right;
    margin-right: 8px;
}

/* Message Content - DECREASED FONT SIZE */
.message-content {
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    animation: messageAppear 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    font-size: 13px; /* DECREASED */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message .message-content {
    background: white;
    border: 1px solid #e1f0ff;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.1);
    color: #333;
}

.user-message .message-content {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.15);
    color: white;
}

/* Chat Input Area */
.chat-input-area {
    padding: 14px 16px;
    background: white;
    border-top: 1px solid #eef5ff;
    flex-shrink: 0;
}

.quick-questions {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-question {
    padding: 6px 12px;
    background: rgba(74, 144, 226, 0.1);
    border: 1.5px solid rgba(74, 144, 226, 0.25);
    border-radius: 18px;
    font-size: 12px; /* DECREASED */
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.quick-question:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

#ai-user-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e1f0ff;
    border-radius: 22px;
    font-size: 13px; /* DECREASED */
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8fbff;
    color: #333;
}

#ai-user-input::placeholder {
    color: #8bb4f0;
    opacity: 0.8;
}

#ai-user-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

#ai-send-message {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem; /* DECREASED */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

#ai-send-message:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f8ff;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #b8d4ff;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #8bb4f0;
}

/* ========== TYPING INDICATOR ========== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    max-width: 85%;
    align-self: flex-start;
    margin-bottom: 12px;
    animation: messageAppear 0.4s ease;
    background: white;
    border: 1px solid #e1f0ff;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.1);
}

.typing-indicator span {
    color: #666;
    font-size: 12px; /* DECREASED */
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: #4A90E2;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    #ai-assistant {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        width: 92vw;
        max-width: 380px;
        height: 65vh;
        bottom: 90px;
        right: 4vw;
    }
    
    .ai-toggle-btn {
        width: 70px;
        height: 70px;
    }
    
    .chatbot-container {
        transform: scale(0.6);
    }
    
    .assistant-details h4 {
        font-size: 14px;
    }
    
    .assistant-status {
        font-size: 11px;
    }
    
    .message-content {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 96vw;
        height: 75vh;
        right: 2vw;
        bottom: 85px;
    }
    
    .ai-toggle-btn {
        width: 65px;
        height: 65px;
    }
    
    .chatbot-container {
        transform: scale(0.55);
    }
    
    .chat-header {
        padding: 12px 14px;
        height: 65px;
    }
    
    .profile-pic {
        width: 38px;
        height: 38px;
    }
    
    .assistant-details h4 {
        font-size: 13px;
    }
    
    .assistant-status {
        font-size: 10px;
    }
    
    .close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .message-content {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .quick-questions {
        gap: 5px;
    }
    
    .quick-question {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    #ai-user-input {
        padding: 9px 14px;
        font-size: 12.5px;
    }
    
    #ai-send-message {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
}

/* ========== CRITICAL FIXES FOR HEADER TEXT ========== */
/* If text is still not showing, these are emergency fixes */
.assistant-details h4 {
    /* Force text to be visible */
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    display: block !important;
    font-size: 15px !important;
}

/* Ensure text doesn't get cut off */
.assistant-info {
    max-width: 250px; /* Give enough space for text */
}

/* Emergency override for very small screens */
@media (max-width: 360px) {
    .assistant-details h4 {
        font-size: 13px !important;
        max-width: 180px;
    }
    
    .assistant-status {
        font-size: 10px !important;
        max-width: 180px;
    }
}

/* Text shadow for better visibility */
.assistant-details h4,
.assistant-status {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


