: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;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --transition: all 0.3s ease;
}

* {
    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;
}

/* 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: 1000;
}

.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;
}

.logo a:hover {
    color: var(--accent-pink);
}

/* Navigation */
.nav-links {
    display: flex;
    margin-left: 30px;
}

.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;
}

.links a:hover {
    color: var(--accent-pink);
}

.nav-item: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);
}

.nav-item:hover .mega-dropdown {
    display: grid;
    animation: fadeIn 0.3s ease;
}

.dropdown-section h3 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    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;
}

.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;
}

.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;
}

/* Mobile Toggle */
.mobile-toggle {
    margin-left: auto;
    display: none;
    background: none;
    border: none;
    color: var(--accent-pink);
    font-size: 24px;
    cursor: pointer;
}

/* 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;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 40px auto 200px;
    padding: 0 20px;
}

.tool-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--footer-bg);
    font-size: 2.8rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
}

.tool-description {
    text-align: center;
    max-width: 1100px;
    margin: 20px auto 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.blender-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

/* New Color Selection Cards */
.color-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

.color-card {
    flex: 1;
    min-width: 250px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.color-card-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-card-title i {
    color: var(--accent-pink);
}

.color-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.color-preview:hover {
    transform: scale(1.05);
}

.color-input-group {
    width: 100%;
    max-width: 300px;
}

.color-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1rem;
    display: block;
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.color-input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s;
    font-weight: 600;
}

.color-input:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.color-picker-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.color-picker-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-pink);
}

/* Blend Section */
.blend-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 250px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.blend-section-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blend-section-title i {
    color: var(--accent-pink);
}

.blend-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.blend-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-light);
}

.ratio-display {
    font-weight: 700;
    color: var(--accent-pink);
    font-size: 1.2rem;
}

.slider-container {
    position: relative;
    margin-bottom: 30px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--accent-pink), var(--secondary-blue));
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-pink);
}

/* Blend Mode Selector */
.blend-mode-selector {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.blend-mode-selector:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.blend-mode-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.blend-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--secondary-blue));
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.blend-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.5);
}

.blend-btn:active {
    transform: translateY(1px);
}

/* Result Section */
.result-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 250px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.result-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: var(--accent-pink);
}

.result-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.result-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1));
    border-radius: 50%;
}

.color-code {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
}

.result-info {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.result-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    word-break: break-all;
    color: var(--text-dark);
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-family: monospace;
    margin-bottom: 10px;
    position: relative;
}

/* Gradient Preview */
.gradient-preview {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    background: linear-gradient(to right, #ff3366, #0066cc);
    position: relative;
    overflow: hidden;
}

.gradient-marker {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.gradient-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 10px 0 5px;
    font-weight: 600;
}

/* Copy Button */
.copy-btn {
    background: var(--secondary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.copy-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.success {
    background: var(--success);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success);
}

/* Color Palette */
.palette-container {
    width: 100%;
    margin-top: 30px;
}

.palette-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.palette {
    display: flex;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.palette-color {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.palette-color:hover {
    flex: 1.2;
}

.palette-color::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1));
}

.palette-color-code {
    position: relative;
    z-index: 2;
    font-size: 12px;
    transform: rotate(-90deg);
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.palette-color:hover .palette-color-code {
    transform: rotate(0);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer */
.copyright {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 25px 30px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .mega-dropdown {
        width: 700px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mega-dropdown {
        width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }

    .color-selection {
        flex-direction: column;
        align-items: center;
    }

    .color-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .logo a {
        font-size: 22px;
    }

    .mobile-sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .tool-title {
        font-size: 2rem;
    }

    .blender-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .tool-card {
        padding: 30px 20px;
    }

    .result-preview {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 1.8rem;
    }

    .color-preview,
    .result-preview {
        width: 150px;
        height: 150px;
    }

    .blend-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .result-value {
        font-size: 1.1rem;
    }

    .gradient-preview {
        height: 80px;
    }
}