
    :root {
        --primary: #4a00e0;
        --secondary: #8e2de2;
        --accent: #ff6b6b;
        --dark: #333;
        --light: #f8f9fa;
        --white: #ffffff;
        --black: #000000;
        --yellow: #ffd166;
        --orange: #ff9e64;
        --pink: #ef476f;
        --purple: #c74ded;
        --red: #e63946;
        --green: #2a9d8f;
        --blue: #118ab2;
        --rainbow: linear-gradient(90deg, #ff6b6b, #ff9e64, #ffd166, #2a9d8f, #118ab2, #c74ded);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        color: var(--dark);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        line-height: 1.6;
        overflow-x: hidden;
    }

    /* Header & Navigation */
    header {
        background: linear-gradient(to right, var(--primary), var(--secondary));
        color: var(--white);
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        animation: headerSlide 0.5s ease-out;
    }

    @keyframes headerSlide {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.8rem;
        font-weight: 700;
    }

    .logo i {
        color: var(--accent);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--accent);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    /* Main Content */
    main {
        flex: 1;
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .page-title {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--primary);
        font-size: 2.5rem;
        animation: fadeIn 1s ease-out;
        background: var(--rainbow);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .tool-container {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    /* Color Preview Area */
    .preview-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        min-width: 300px;
    }

    .preview-wrapper {
        position: relative;
        margin-bottom: 1.5rem;
        animation: bounceIn 1s;
    }

    @keyframes bounceIn {
        0% {
            transform: scale(0.9);
            opacity: 0;
        }

        60% {
            transform: scale(1.03);
            opacity: 1;
        }

        100% {
            transform: scale(1);
        }
    }

    .color-preview {
        width: 344px;
        height: 177px;
        background-color: var(--black);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
    }

    .color-preview::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.01) 100%);
        pointer-events: none;
    }

    .fullscreen-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: var(--white);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .fullscreen-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1) rotate(90deg);
    }

    /* Side Controls */
    .side-controls {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-width: 200px;
    }

    .vertical-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .color-btn {
        padding: 0.8rem 1.2rem;
        border: none;
        border-radius: 8px;
        color: var(--white);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        overflow: hidden;
    }

    .color-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.6s ease;
    }

    .color-btn:hover::before {
        left: 100%;
    }

    .color-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .color-btn:active {
        transform: translateY(0);
    }

    .btn-yellow {
        background-color: var(--yellow);
        color: var(--dark);
    }

    .btn-orange {
        background-color: var(--orange);
    }

    .btn-pink {
        background-color: var(--pink);
    }

    .btn-purple {
        background-color: var(--purple);
    }

    .btn-zoom {
        background-color: var(--dark);
    }

    /* Bottom Controls */
    .bottom-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-top: 2rem;
        width: 100%;
    }

    .horizontal-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }

    .btn-white {
        background-color: var(--white);
        color: var(--dark);
    }

    .btn-black {
        background-color: var(--black);
    }

    .btn-red {
        background-color: var(--red);
    }

    .btn-green {
        background-color: var(--green);
    }

    .btn-blue {
        background-color: var(--blue);
    }

    .custom-color {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        animation: fadeIn 1s ease-out 0.2s both;
    }

    #colorPicker {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        background: var(--white);
        transition: all 0.3s ease;
    }

    #colorPicker:hover {
        transform: scale(1.1);
    }

    /* Advanced Download */
    .advanced-download {
        min-width: 200px;
        background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        animation: slideInRight 0.5s ease-out;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(20px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .advanced-download h3 {
        margin-bottom: 1rem;
        color: var(--primary);
    }

    .download-options {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .option {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .option label {
        font-weight: 500;
    }

    .option select,
    .option input {
        padding: 0.8rem;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: all 0.3s ease;
    }

    .option select:focus,
    .option input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.1);
    }

    .custom-dimension {
        display: flex;
        gap: 0.5rem;
    }

    .custom-dimension input {
        flex: 1;
    }

    .download-btn {
        padding: 0.8rem;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 1rem;
        position: relative;
        overflow: hidden;
    }

    .download-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: translateX(-100%);
    }

    .download-btn:hover::before {
        transform: translateX(100%);
        transition: transform 0.6s ease;
    }

    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    /* New Features Section */
    .new-features {
        margin-top: 3rem;
        width: 100%;
        animation: fadeIn 1s ease-out 0.4s both;
    }

    .features-title {
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--primary);
        font-size: 1.8rem;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .feature-card {
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        text-align: center;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: var(--rainbow);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .feature-card h3 {
        margin-bottom: 0.5rem;
        color: var(--primary);
    }

    /* Footer */
    footer {
        background: var(--dark);
        color: var(--white);
        padding: 2rem;
        text-align: center;
        margin-top: 3rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-links a {
        color: var(--white);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: var(--accent);
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        font-size: 1.5rem;
    }

    .social-icons a {
        color: var(--white);
        transition: all 0.3s ease;
    }

    .social-icons a:hover {
        color: var(--accent);
        transform: translateY(-3px);
    }

    .copyright {
        margin-top: 1rem;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* Fullscreen Mode */
    .fullscreen-mode {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        display: none;
        justify-content: center;
        align-items: center;
        background: var(--black);
    }

    .fullscreen-color {
        width: 100%;
        height: 100%;
        transition: background-color 0.5s ease;
    }

    .exit-fullscreen {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 101;
        display: none;
    }

    .exit-fullscreen:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1) rotate(90deg);
    }

    /* Show exit button only in fullscreen */
    body.fullscreen-active .exit-fullscreen {
        display: block;
    }

    /* Loading Animation */
    .loader {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 1rem;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .navbar {
            flex-direction: column;
            gap: 1rem;
        }

        .nav-links {
            gap: 1rem;
        }

        .tool-container {
            flex-direction: column;
        }

        .side-controls {
            order: 3;
        }

        .color-preview {
            width: 300px;
            height: 154px;
        }

        .features-grid {
            grid-template-columns: 1fr;
        }

        .custom-dimension {
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .page-title {
            font-size: 2rem;
        }

        .color-preview {
            width: 280px;
            height: 144px;
        }

        .horizontal-buttons {
            justify-content: center;
        }

        .exit-fullscreen {
            top: 10px;
            right: 10px;
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }

        .feature-card {
            padding: 1rem;
        }
    }

    /* Animation for color change */
    @keyframes colorChange {
        0% {
            filter: brightness(1) saturate(1);
        }

        50% {
            filter: brightness(1.2) saturate(1.5);
        }

        100% {
            filter: brightness(1) saturate(1);
        }
    }

    .color-change {
        animation: colorChange 0.5s ease;
    }

    /* SEO optimized content */
    .seo-content {
        margin-top: 3rem;
        padding: 2rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        animation: fadeIn 1s ease-out 0.6s both;
    }

    .seo-content h2 {
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .seo-content p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
  