/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    color: #22223b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    padding: 0.3rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 45px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e0e7ff;
}

.auth-button a {
    background: #fff;
    color: #4f46e5;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.auth-button a:hover {
    background: #e0e7ff;
    color: #22223b;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s ease-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: transform 0.2s ease-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), transparent);
    animation: fadeIn 1s ease-in;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #22223b;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Tool Boxes */
.tool-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-box {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.1), 0 1.5px 6px rgba(0, 0, 0, 0.04);
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}

.tool-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tool-box-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.tool-box-header i {
    font-size: 1.8rem;
    color: #4f46e5;
}

.tool-box h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #22223b;
    letter-spacing: 0.5px;
}

.tool-box ul {
    list-style: none;
    padding: 0;
}

.tool-box ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 400;
}

.tool-box ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.tool-box ul li a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: #e0e7ff;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .tool-boxes {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .tool-box {
        max-width: 100%;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #4f46e5;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        animation: slideIn 0.3s ease-in;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0.5rem 0;
    }
    .auth-button {
        display: none;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    .auth-button.active {
        display: block;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding: 2rem 1rem;
    }
}