/* Base Styles for Gradient Background */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff7e5f; /* Used for hover line */
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Navigation Bar --- */
.navbar {
    background: rgba(44, 62, 80, 0.9); /* Dark semi-transparent background */
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.navbar-brand, .nav-link {
    color: white !important;
}
.nav-link:hover {
    color: var(--secondary-color) !important;
}
.back-to-home-btn {
    background-color: var(--secondary-color);
    border: none;
    transition: all 0.3s;
}
.back-to-home-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* --- Hero Section --- */
#hero-section {
    background: var(--bg-gradient);
    padding: 100px 0;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--accent-color);
}
#hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    /* Animated Gradient Text Effect */
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-flow 10s ease-in-out infinite;
    background-size: 300% 300%;
}
@keyframes text-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#hero-section p {
    font-size: 1.3rem;
    margin-top: 15px;
}

/* --- Tool Cards Section --- */
.tool-card {
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    display: block;
}
.tool-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6); /* Increased Hover Shadow */
    transform: translateY(-8px); /* Subtle lift */
}
.tool-card::after {
    /* Gradient Bottom Line Effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease-in-out;
    transform-origin: left;
}
.tool-card:hover::after {
    transform: scaleX(1);
}
.card-icon {
    font-size: 3rem;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tool-section {
    padding: 50px 0;
}

/* --- Footer Section --- */
footer {
    background: #1c2833;
    color: #bdc3c7;
    padding: 40px 0 20px 0;
    border-top: 3px solid var(--accent-color);
}
.footer-logo {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.social-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #bdc3c7;
    transition: transform 0.3s, color 0.3s;
}
.social-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.2) rotate(5deg);
}
footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}
.footer-column h5 {
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}