/* Tool-inspired styles */
@font-face {
    font-family: "BebasNeue";
    src: url("https://raw.githubusercontent.com/10clouds/codepen/tesla-hero-slider/tesla-hero-slider/src/assets/fonts/BebasNeue-Regular.otf");
}

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #e82130; 
    --secondary-color: #3e6ae1; 
    --dark-bg: #000;
    --light-text: #fff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition-speed: 0.6s;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: 'Helvetica', 'Arial', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.tool-header__logo {
    font-family: "BebasNeue", sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--light-text);
}

.tool-header__nav {
    display: flex;
    gap: 30px;
}

.tool-header__nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

.tool-header__nav a:hover {
    color: var(--primary-color);
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(62, 106, 225, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-title {
    font-family: "BebasNeue", sans-serif;
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--light-text);
    border-right: 2px solid var(--light-text);
    transform: rotate(45deg);
}

.tools-section {
    padding: 100px 40px;
    background: var(--dark-bg);
}

.section-title {
    font-family: "BebasNeue", sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed);
    position: relative;
    height: 380px;
    perspective: 1000px;
    transform-style: preserve-3d;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(232, 33, 48, 0.3);
}

.tool-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed);
    z-index: 1;
}

.tool-card:hover .tool-card-bg {
    transform: scale(1.1);
}

.tool-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 2;
    transition: all var(--transition-speed);
    transform: translateY(10px);
    opacity: 0;
}

.tool-card:hover .tool-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.tool-card-title {
    font-family: "BebasNeue", sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.tool-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.tool-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--light-text);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.tool-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all var(--transition-speed);
    z-index: -1;
}

.tool-card-button:hover::before {
    left: 0;
}

.tool-card-button:hover {
    color: var(--light-text);
}

.tool-footer {
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.footer-logo {
    font-family: "BebasNeue", sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .tool-header__nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .tools-section {
        padding: 80px 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}