/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #5c2178 0%, #1f0b28 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-container {
    flex-shrink: 0;
}

.mikss-logo {
    width: 180px;
    height: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.mikss-logo:hover {
    transform: scale(1.05);
}

.title-container {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive adjustments for the header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .title-container {
        text-align: center;
    }
    
    .mikss-logo {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

/* Navigation Styles */
nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 0.5rem 0;
}

nav li {
    margin-right: 1rem;
}

nav a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    background-color: #5c2178;
    color: white;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5c2178;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(92, 33, 120, 0.1);
    border-radius: 50%;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: #444;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #5c2178 0%, #1f0b28 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    nav ul {
        justify-content: flex-start;
    }
    
    .tool-card {
        padding: 1.2rem;
    }
    
    .tool-icon {
        font-size: 2rem;
        height: 50px;
        width: 50px;
    }
}