/* Global Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #38b000;
    --warning-color: #ffaa00;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fafbff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline:hover {
    color: white;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: 0.5s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    position: relative;
}

.logo h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    margin: 0 18px;
    font-weight: 500;
    color: #555;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Menu toggle styles */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, rgba(67, 97, 238, 0) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.05) 0%, rgba(114, 9, 183, 0) 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(67, 97, 238, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.8;
}

.search-container {
    margin-top: 40px;
    position: relative;
}

.search-box {
    display: flex;
    max-width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    color: var(--dark-color);
}

.search-box input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-box input[type="text"]::placeholder {
    color: #aaa;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateX(3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    /* Adjust based on your needs */
    margin: 0 auto;
}

.hero-image img {
    max-width: 40%;
    /* Reduce width to make space for icons */
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transform: translateY(0);
    animation: float-image 5s infinite ease-in-out;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Allows clicks to pass through to elements below */
}

.icon-item {
    position: absolute;
    width: 60px;
    /* Slightly smaller for better proportion */
    height: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: float 6s infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Re-enable pointer events for hover */
}

.icon-item:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 3;
    /* Bring hovered icon to front */
}

/* Updated positions to place icons around the image */
.icon-item:nth-child(1) {
    top: 10%;
    left: 20%;
}

.icon-item:nth-child(2) {
    top: 30%;
    left: 5%;
}

.icon-item:nth-child(3) {
    top: 55%;
    left: 10%;
}

.icon-item:nth-child(4) {
    top: 70%;
    left: 25%;
}

.icon-item:nth-child(5) {
    top: 60%;
    right: 20%;
}

.icon-item:nth-child(6) {
    top: 40%;
    right: 5%;
}

.icon-item:nth-child(7) {
    top: 15%;
    right: 25%;
}

.icon-item:nth-child(8) {
    top: 5%;
    right: 45%;
}

.icon-item:nth-child(9) {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.icon-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Rest of your existing animations */
@keyframes float-image {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

/* Tool Categories Section */
.tool-categories {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.tool-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(67, 97, 238, 0.03) 0%, rgba(67, 97, 238, 0) 50%),
        radial-gradient(circle at 80% 80%, rgba(114, 9, 183, 0.03) 0%, rgba(114, 9, 183, 0) 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tool-categories h2,
.popular-tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.category-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 40%);
    border: 2px solid rgba(32, 69, 233, 0.2);
    /* 👈 added border */
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover {
    transform: translateY(-15px) perspective(1000px) rotateX(10deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background-color: rgb(244, 177, 177);
    transition: all 0.3s ease;
}

.category-card:nth-child(2) .icon {
    background-color: rgb(251, 235, 126);
}

.category-card:nth-child(3) .icon {
    background-color: rgb(198, 243, 130);
}

.category-card:hover .icon {
    transform: scale(1.1);
}

.category-card .icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category-card:hover .icon img {
    transform: rotate(15deg);
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.category-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Popular Tools Section */
.popular-tools {
    padding: 100px 0;
    background-color: #f9faff;
    position: relative;
}

.popular-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.1;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.5s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.tool-card:hover::before {
    height: 100%;
}

.tool-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tool-icon.pdf {
    background-color: rgba(246, 177, 142, 0.1);
}

.tool-icon.excel {
    background-color: rgba(117, 176, 85, 0.1);
}

.tool-icon.ppt {
    background-color: rgba(234, 144, 99, 0.1);
}

.tool-icon.image {
    background-color: rgba(251, 188, 5, 0.1);
}

.tool-icon.zip {
    background-color: rgba(216, 198, 94, 0.1);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: rotate(10deg);
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-card:hover h3 {
    transform: translateX(10px);
}

.tool-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.tool-card:hover p {
    transform: translateX(10px);
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.popup.active .popup-content {
    transform: translateY(0);
}

.popup-content p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #555;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

/* Footer Section */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.footer-logo p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-image {
        order: 0;
        margin-bottom: 40px;
    }

    .nav-links {
        display: none;
    }

    .category-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-right: 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        margin: 20px auto;
    }

    .category-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tool-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tool-categories,
    .popular-tools {
        padding: 60px 0;
    }

    .tool-categories h2,
    .popular-tools h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input[type="text"] {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .search-btn {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        width: 100%;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .footer-section {
        margin-bottom: 20px;
    }

    .auth-links a:first-child {
        display: none;
    }

    .category-card,
    .tool-card {
        padding: 25px 20px;
    }
}

/* Additional CSS Styles for Enhanced UI */

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #f0f4ff;
    position: relative;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(240, 244, 255, 0) 0%, #f9faff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--primary-color);
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 250px;
}

.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    visibility: hidden;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.testimonial-content {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: rgba(67, 97, 238, 0.1);
    position: absolute;
    top: -20px;
    left: -15px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--light-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.prev-btn,
.next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(43, 45, 66, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Enhanced popup styles */
.popup-content {
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--primary-color);
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.popup-content p {
    margin-bottom: 25px;
    color: #666;
}

.popup-content .btn {
    margin: 0 5px;
}

/* Animation for section revealing */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header scroll effect */
header.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
    transform: translateY(-100%);
}

/* Profile Section Styles */
.profile-section {
    position: relative;
    display: none;
}

.profile-icon {
    font-size: 2rem;
    color: #4a6bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-icon:hover {
    color: #3a56d4;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 250px;
    z-index: 1000;
}

.profile-info {
    margin-bottom: 15px;
}

.profile-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.profile-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-links {
    display: flex;
    gap: 10px;
}