/* styles.css */
:root {
    --primary-blue: #013d7a;
    --secondary-blue: #0066cc;
    --accent-pink: #ff3366;
    --light-bg: #f0f7ff;
    --card-bg: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e1e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --footer-bg: #0a192f;
    --footer-text: #ccd6f6;
    --footer-heading: #e6f1ff;
    --footer-border: #233554;
    --footer-hover: #64ffda;
    --glow-primary: 0 0 15px rgba(1, 61, 122, 0.3);
    --glow-accent: 0 0 15px rgba(255, 51, 102, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e4edf5 100%);
    color: #2b2d42;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Floating Circles */
.floating-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(0px);
    animation: float 3s infinite ease-in-out;
}

.circle-2 {
    background: var(--footer-hover);
}

.circle-3 {
    background: var(--accent-pink);
}

/* .circle-4 {
    background: var(--footer-bg);
} */

.small-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(0px);
    animation: floatSmall 5s infinite ease-in-out;
}

/* .small-circle-1 {
    background: var(--footer-hover); 
 } */

.small-circle-2 {
    background: var(--footer-hover);
}

.small-circle-3 {
    background: var(--accent-pink);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translate(50px, -80px) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes floatSmall {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, -40px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Header Styles */
.header {
    background: white;
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: all 0.3s ease;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
    color: var(--footer-bg);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.logo a:hover {
    color: var(--accent-pink);
}

/* Navigation */
.nav-links {
    display: flex;
    margin-left: 30px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    color: black;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.links a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.links a:hover {
    color: var(--accent-pink);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Mega Dropdown Styles */
.mega-dropdown {
    position: absolute;
    top: 45px;
    left: -750px;
    background-color: white;
    width: 1200px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px;
    display: none;
    z-index: 1001;
    grid-template-columns: repeat(6, 1fr);
    border-top: 3px solid var(--accent-pink);
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:hover .mega-dropdown {
    display: grid;
}

.dropdown-section h3 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-left: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dropdown-section h3 i {
    margin-right: 10px;
    color: var(--accent-pink);
    background: rgba(255, 51, 102, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dropdown-section h3:hover i {
    transform: rotate(15deg);
    background: rgba(255, 51, 102, 0.2);
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.dropdown-link:hover {
    background-color: #f0f7ff;
    color: var(--accent-pink);
}

.dropdown-link i {
    margin-right: 12px;
    color: var(--secondary-blue);
    width: 20px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.dropdown-link:hover i {
    color: var(--accent-pink);
    transform: scale(1.2);
}

/* Mobile Toggle */
.mobile-toggle {
    margin-left: auto;
    display: none;
    background: none;
    border: none;
    color: var(--accent-pink);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    /* top: 70px; */
    left: -100%;
    width: 100%;
    /* height: calc(100vh - 70px); */
    background-color: white;
    z-index: 999;
    transition: all 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-category {
    margin-top: 20px;
}

.mobile-category-title {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-category-title i {
    color: var(--accent-pink);
}

.mobile-tool-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s;
    background: #f8fafd;
    color: var(--text-dark);
}

.mobile-tool-link:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    transform: translateX(5px);
    color: var(--accent-pink);
}

.mobile-tool-link i {
    margin-right: 15px;
    color: var(--secondary-blue);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    z-index: 1;
    max-width: 1300px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero h1 {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: textGlow 3s infinite alternate;
    /* font-size: 2.8rem; */
    /* margin-bottom: 15px; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--footer-bg);
}

.hero p {
    font-size: 1.2rem;
    max-width: 1300px;
    margin: 0 auto 0px;
    color: var(--text-light);
    opacity: 0.9;
}

/* Tools Section */
.tools-section {
    max-width: 1300px;
    margin: 0px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    color: var(--primary-blue);
    padding-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-pink));
    border-radius: 2px;
}

.category-section {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0 25px;
    padding-bottom: 15px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-pink));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.category-title:hover::after {
    width: 100%;
}

.category-title i {
    background: linear-gradient(120deg, var(--primary-blue), var(--accent-pink));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.category-title:hover i {
    transform: rotate(15deg) scale(1.1);
}

.category-title h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), var(--glow-primary);
}

.tool-card:hover .tool-icon {
    background: linear-gradient(120deg, var(--accent-pink), var(--primary-blue));
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
    opacity: 0;
    transition: all 0.3s;
    z-index: 1;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-icon {
    background: linear-gradient(120deg, var(--primary-blue), var(--accent-pink));
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-icon i {
    transition: transform 0.3s;
}

.tool-card:hover .tool-icon i {
    transform: scale(1.1) rotate(5deg);
}

.tool-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.tool-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    transition: color 0.3s;
}

.tool-card:hover .tool-content h4 {
    color: var(--accent-pink);
}

.tool-content p {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tool-tag {
    background: var(--light-bg);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.tool-card:hover .tool-tag {
    background: var(--accent-pink);
    color: white;
}

/* New Footer Design */
footer {
    background: var(--footer-bg);
    margin-top: auto;
    overflow: hidden;
    color: var(--footer-text);
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 30px;
}

.footer-wave .shape-fill {
    fill: var(--light-bg);
}

.footer-content {
    max-width: 1300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 0 auto;
    padding: 20px;
}

.footer-column {
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.footer-column h4 {
    font-size: 1.4rem;
    color: var(--footer-heading);
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    font-weight: 600;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-pink);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-column h4:hover::after {
    width: 100px;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #8892b0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--footer-hover);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-hover);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links i {
    width: 20px;
    text-align: center;
    color: var(--accent-pink);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover i {
    transform: rotate(15deg);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: var(--footer-hover);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.footer-bottom {
    background: rgba(10, 25, 47, 0.8);
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid var(--footer-border);
}

.copyright {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #8892b0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--footer-heading);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-logo:hover {
    color: var(--accent-pink);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-pink));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 61, 122, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(1, 61, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(1, 61, 122, 0);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(1, 61, 122, 0.3);
    }

    100% {
        text-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .mega-dropdown {
        width: 1000px;
        grid-template-columns: repeat(4, 1fr);
        left: -850px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .mega-dropdown {
        width: 850px;
        grid-template-columns: repeat(3, 1fr);
        left: -700px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .category-title h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mega-dropdown {
        width: 500px;
        grid-template-columns: repeat(2, 1fr);
        left: -350px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .logo a {
        font-size: 22px;
    }

    .mobile-sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .hero {
        padding: 40px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.0rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .category-title i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .category-title h3 {
        font-size: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .tool-content h4 {
        font-size: 1.2rem;
    }

    .tool-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .mega-dropdown {
        width: 400px;
        left: -300px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .mega-dropdown {
        width: 320px;
        left: -250px;
        padding: 20px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card:hover {
        transform: translateY(-5px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .mega-dropdown {
        width: 280px;
        left: -220px;
        padding: 15px;
    }

    .logo a {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}