* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1E1A3C, #2D1B4A);
    color: #fff;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.input-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.input-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #6e8efb;
    outline: none;
}

.font-results {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.font-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.font-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.font-card p {
    font-size: 1.1rem;
    word-break: break-all;
}

.font-card small {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    font-size: 1rem;
}

.popup.show {
    display: block;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #1E1A3C, #2D1B4A);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 80px;
    width: auto;
    border-radius: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-links li {
    display: flex;
    align-items: center;
    /* Align items in the list */
}

.nav-links li a,
.nav-links li .dropbtn {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    display: inline-flex;
    /* Ensure consistent display */
    align-items: center;
    /* Vertically center the text and icon */
}

/* Removed hover effect completely */
.nav-links li a:hover,
.nav-links li .dropbtn:hover {
    /* No changes, no hover effect */
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-flex;
    /* Ensure dropdown aligns with other links */
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* Position below the dropdown button */
    left: 0;
    background-color: #2D1B4A;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #1E1A3C;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* Indicate it's clickable */
}

.dropbtn i {
    margin-left: 5px;
    font-size: 0.8em;
}

.info-section {
    width: 100%;
    padding: 60px 30px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1E1A3C, #6e8efb, #1E1A3C);
}

.info-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.info-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #1E1A3C;
    display: inline-block;
    position: relative;
}

.info-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #1E1A3C);
    border-radius: 2px;
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

.info-content p {
    margin-bottom: 20px;
}

.info-content a {
    color: #6e8efb;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.info-content a:hover {
    color: #5a6feb;
    text-decoration: underline;
}

.highlight {
    background: linear-gradient(90deg, #6e8efb, #5a6feb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-method {
    padding: 30px 20px;
    text-align: center;
    background: #f9f9fd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6e8efb, #5a6feb);
    transition: height 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-method:hover::before {
    height: 8px;
}

.contact-method .method-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6e8efb, #5a6feb);
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.contact-method h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1E1A3C;
}

.info-section:nth-of-type(even) {
    background: #f4f7fa;
}

.info-section#about {
    position: relative;
}

.info-section#about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(244, 247, 250, 0.8));
    pointer-events: none;
}

.blog-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background: #26a69a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.blog-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.blog-card-header {
    padding: 15px;
    text-align: center;
    color: #fff;
    flex: 0 0 auto;
}

.blog-card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-content {
    padding: 15px;
    text-align: left;
    color: #fff;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.blog-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.font-groups {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.font-groups h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.font-groups h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #1E1A3C);
    border-radius: 2px;
}

.font-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.font-category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.font-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.font-category-card a {
    display: block;
    padding: 30px 20px;
    text-decoration: none;
    color: #333;
}

.font-category-card .category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6e8efb;
    transition: transform 0.3s;
}

.font-category-card:hover .category-icon {
    transform: scale(1.1);
}

.font-category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1E1A3C;
    font-weight: 600;
}

.font-category-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.font-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6e8efb, #5a6feb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.font-category-card:hover::before {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1E1A3C, #2D1B4A);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: scaleY(1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a,
    .nav-links li .dropbtn {
        display: block;
        padding: 0.8rem;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .font-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .font-category-grid {
        grid-template-columns: repeat(2.Navigation1fr);
    }

    .info-header h2 {
        font-size: 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .input-section h2 {
        font-size: 1.5rem;
    }

    .font-results {
        grid-template-columns: 1fr;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-card-header h3 {
        font-size: 1.3rem;
    }

    .blog-card-content p {
        font-size: 0.9rem;
    }

    .blog-card {
        min-height: 350px;
    }

    .blog-card img {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .font-category-grid {
        grid-template-columns: 1fr;
    }

    .logo-image {
        height: 60px;
    }
}