   /* General Styles */
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #e0f7fa, #01579b);
            color: #333;
            margin: 0;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow-y: auto;
            position: relative;
            font-size: 16px;
        }

        /* Animated Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 0L50 50L0 0Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
            background-size: 20px;
            animation: moveBackground 20s linear infinite;
            z-index: -1;
        }

        @keyframes moveBackground {
            from { background-position: 0 0; }
            to { background-position: 100px 100px; }
        }

        /* Header and Navigation Styles */
        header {
            background-color: #004d80;
            color: white;
            padding: 1.5rem 1rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
header .logo {
    flex-basis: 100%; /* Default 100% for desktop */
    text-align: center; /* Default center for desktop */
}

/* Responsive Styles */
@media (max-width: 600px) {
    /* ... other mobile styles ... */
    header .logo {
        flex-basis: 80%; /* 80% for mobile */
        text-align: left; /* left for mobile */
    }
    /* ... other mobile styles ... */
}

        header h1 {
            margin: 0;
            font-size: 2.5rem;
            letter-spacing: 2px;
            font-weight: 700;
        }

        nav {
            background-color: #f0f4f8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            text-align: center;
            padding: 0.75rem 1rem;
        }

        nav a {
            color: #007bff;
            text-decoration: none;
            font-weight: 600;
            padding: 0.75rem 1.25rem;
            transition: all 0.3s ease-in-out;
            border-radius: 5px;
        }

        nav a:hover {
            color: #fff;
            background-color: #0056b3;
            text-decoration: none;
        }

        /* Hamburger Menu Icon */
        .menu-icon-container {
            flex-basis: 20%;
            text-align: right;
            display: none;
        }
        
        .menu-icon {
            cursor: pointer;
            font-size: 1.5rem;
            color: white;
            background-color: black;
            padding: 10px;
            border-radius: 5px;
        }
        
        /* Main Content Container */
        .main-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
        }

        .container {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.25);
            max-width: 550px;
            width: 90%;
            text-align: center;
        }

        h2 {
            color: #01579b;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
            margin-bottom: 20px;
            font-size: 2rem;
            font-weight: 600;
        }

        /* Input and Button Styles */
        .input-section {
            margin-top: 25px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        input[type="file"] {
            padding: 12px;
            margin: 8px;
            width: 80%;
            border-radius: 8px;
            border: 2px solid #007bff;
            background: #fff;
            font-size: 16px;
            cursor: pointer;
            outline: none;
            transition: border-color 0.3s ease-in-out;
        }
        input[type="file"]:hover {
            border-color: #0056b3;
        }
        .btn {
            padding: 12px 25px;
            margin: 8px;
            background: #007bff;
            border: none;
            color: white;
            font-weight: bold;
            cursor: pointer;
            border-radius: 8px;
            font-size: 16px;
            transition: background 0.3s ease-in-out, transform 0.2s ease;
            text-decoration: none;
        }
        .btn:hover {
            background: #0056b3;
            transform: translateY(-2px);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            position: relative;
            width: 95%;
            max-width: 450px;
            background: #fff;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }
        #cropThisImage {
            max-width: 100%;
            display: ;
            margin-bottom: 60px;
        }
        #cropAndSetBtn {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            max-width: 250px;
        }

        /* Preview Section Styles */
        .preview-section {
            margin-top: 30px;
            display: none;
            align-items: center;
            flex-direction: column;
            gap: 20px;
        }
        .preview-section img {
            max-width: 100%;
            height: auto;
            border: 3px solid #007bff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        .preview-section p {
            margin: 0;
            font-size: 16px;
            font-weight: bold;
        }

        /* Footer Styles */
        footer {
            background-color: #004d80;
            color: white;
            padding: 1.5rem 0;
            text-align: center;
            margin-top: auto;
            box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
        }

        footer p {
            margin: 0;
            font-size: 1rem;
        }

        /* Responsive Styles */
        @media (max-width: 600px) {
            header {
                padding: 1rem;
            }
            header h1 {
                font-size: 1.8rem;
            }
            .menu-icon-container {
                display: block;
            }
            nav {
                display: none;
                flex-direction: column;
                padding: 0;
                position: relative; /* Changed from absolute to relative */
                width: 100%;
                background-color: #f0f4f8;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            }
            nav.active {
                display: flex;
            }
            nav a {
                display: block;
                padding: 0.8rem;
                border-bottom: 1px solid #e9ecef;
            }
            nav a:last-child {
                border-bottom: none;
            }
            .container {
                padding: 20px;
            }
            h2 {
                font-size: 1.5rem;
            }
            input[type="file"], .btn {
                width: 90%;
            }
        }




