@import url('https://fonts.googleapis.com/css2?family=Protest+Revolution&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat+Underline:ital,wght@0,100..900;1,100..900&family=Playwrite+IT+Moderna:wght@100..400&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(37, 99, 235, 0.1);
}

/* Hide scrollbar for Chrome, Safari and Opera on specific elements while maintaining functionality */
.hide-scrollbar {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9cfe5a, #fae934, #ff5a5a);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
}

:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --background: #ffffff;
    --text: #1f2937;
    --border: #e5e7eb;
    --halfwhitetrans: #ffffff9b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --neon-primary: #2563eb;
    --neon-secondary: #00ff88;
    --neon-shadow: 0 0 10px rgba(37, 99, 235, 0.5),
        0 0 20px rgba(37, 99, 235, 0.3),
        0 0 30px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] {
    --background: #1f2937;
    --text: #f3f4f6;
    --border: #374151;
    --shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
    --hover-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: "Ubuntu", serif;
    background: var(--background);
    color: var(--text);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(37, 99, 235, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update navbar-brand styles */
.navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: "Montserrat Underline", sans-serif;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(300deg,

            rgb(255, 62, 255),
            rgb(98, 255, 98),
            rgb(255, 182, 99));
    background-size: 240% 240%;
    animation: gradient-animation 12s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.navbar-brand i {
    font-size: 1.8rem;
    background: linear-gradient(45deg,
            rgb(255, 62, 255),
            #fff,
            rgb(255, 182, 99));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: none;
    outline: none;
    /* animation: sparkle 10s ease-in-out infinite; */
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
}

/* Add hover effect */
/* .navbar-brand:hover h1 {
    animation: gradient-animation 4s ease infinite;
    text-shadow:
        0 0 10px rgba(37, 99, 235, 0.5),
        0 0 20px rgba(37, 99, 235, 0.3),
        0 0 30px rgba(37, 99, 235, 0.1);
} */

.navbar-brand:hover i {
    animation: sparkle 1s ease-in-out infinite;
}

/* Add a glow line under the text */
.navbar-brand h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #00ff88,
            #2563eb,
            #00ff88,
            transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.5s ease;
}

.navbar-brand:hover h1::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Add a subtle glow effect */
.navbar-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
        /* Smaller size for mobile */
    }
}

.navbar-brand h1 .spann {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-hover-effect {
    transform: scaleX(1);
    transform-origin: left;

}

.nav-link:hover i {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(138, 138, 235, 0.813), rgba(0, 255, 255, 0.801));
    -webkit-background-clip: text;

}


.navbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
}

.toggle-hover-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover .toggle-hover-effect {
    opacity: 1;
}

.theme-toggle:hover i {
    transform: rotate(360deg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

/* Mobile menu button animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#drop-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, var(--background), rgba(37, 99, 235, 0.1));
    overflow: hidden;
}

#drop-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#drop-area:hover::before {
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.upload-icon i {
    font-size: 4rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.upload-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 1rem 0;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.upload-info {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.upload-progress {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#drop-area.dragging {
    border-color: var(--primary);
    transform: scale(1.02);
    background: linear-gradient(145deg, var(--background), rgba(37, 99, 235, 0.2));
}

#drop-area.uploading .upload-progress {
    opacity: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes pulse-light {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.resize-options,
.filter-options,
.social-media-templates {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resize-options:hover,
.filter-options:hover,
.social-media-templates:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--secondary);
    box-shadow: var(--shadow);
}

button:active {
    transform: translateY(0) scale(0.95);
}

/* Button specific colors */
#resizeBtn {
    background-color: #4CAF50;
    /* Green color */
}

#resizeBtn:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

#resetBtn {
    background-color: #F44336;
    /* Red color */
}

#resetBtn:hover {
    background-color: #e53935;
    /* Darker red on hover */
}

.filter-btn,
.template-btn {
    margin: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text);
}

.filter-btn:hover,
.template-btn:hover {
    background: var(--primary);
    color: white;
}

input[type="number"],
input[type="range"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    background: var(--background);
    color: var(--text);
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.preview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

canvas {
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

canvas:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
}

.filter-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.filter-radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.filter-radio-group input[type="radio"]:checked {
    background-color: var(--primary);
}

.filter-radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.filter-radio-group input[type="radio"]:checked+label {
    background: var(--primary);
    color: white;
}

.filter-radio-group label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-range-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-option label {
    min-width: 100px;
}

.filter-option input[type="range"] {
    flex: 1;
}

.filter-value {
    min-width: 60px;
    text-align: right;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .resize-options,
    .filter-options,
    .social-media-templates {
        padding: 1rem;
    }

    .preview-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(37, 99, 235, 0.95);
        padding: 2rem;
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s ease-in-out;
    }

    .navbar-menu.active {
        clip-path: circle(150% at top right);
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .filter-radio-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }
}

@media (hover: none) {

    button:hover,
    .filter-btn:hover,
    .template-btn:hover {
        transform: none;
    }

    #drop-area:hover,
    canvas:hover {
        transform: none;
    }
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.download-btn::before {
    content: '⬇️';
    margin-right: 8px;
    font-size: 1.2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.download-btn span {
    position: relative;
    z-index: 1;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.download-btn:hover::before {
    animation: bounce 1s ease infinite;
}

.download-btn:hover::after {
    opacity: 1;
}

.download-btn:active {
    transform: translateY(2px) scale(0.98);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.download-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.download-btn:hover::before {
    transform: scale(2);
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20%,
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

/* Success Animation */
@keyframes success-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* Loading Spin Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Task Complete Animation */
.task-complete {
    animation: success-bounce 1s ease;
}

/* Performance Optimizations */
.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Notifications */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Changed from -100% to show initially */
    background: var(--background);
    border-left: 4px solid;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    animation: slideInNotification 0.5s forwards;
}

.notification.hide {
    animation: slideOutNotification 0.5s forwards;
}

.notification.success {
    border-color: #4CAF50;
    background: linear-gradient(to right, rgba(74, 212, 79, 0.1), transparent);
}

.notification.error {
    border-color: #F44336;
    background: linear-gradient(to right, rgba(244, 67, 54, 0.1), transparent);
}

.notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconScale 0.5s ease;
}

.notification.success .notification-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.notification.error .notification-icon {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    opacity: 0.8;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform-origin: left;
    animation: progress 3s linear;
}

.notification.success .notification-progress {
    background: #4CAF50;
}

.notification.error .notification-progress {
    background: #F44336;
}

@keyframes slideInNotification {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }

    to {
        transform: translateX(-30px) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(-30px) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }
}

@keyframes iconScale {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/*Footer*/
.footer {
    position: relative;
    background: var(--primary);
    padding: 6rem 2rem 2rem;
    margin-top: 4rem;
    overflow: hidden;
}

.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-50%);
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"/></svg>') repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100px;
    opacity: 0.2;
}

.wave#wave1 {
    z-index: 4;
    animation: wave 25s linear infinite;
}

.wave#wave2 {
    top: 10px;
    z-index: 3;
    opacity: 0.5;
    animation: wave 20s linear infinite reverse;
}

.wave#wave3 {
    top: 20px;
    z-index: 2;
    opacity: 0.3;
    animation: wave 30s linear infinite;
}

.wave#wave4 {
    top: 30px;
    z-index: 1;
    opacity: 0.7;
    animation: wave-reverse 15s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes wave-reverse {
    0% {
        transform: translateX(-50%);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-right: -2.2rem;
    color: white;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-section:hover h3::after {
    transform: scaleX(1);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add social media specific colors */
.social-btn.github {
    background: #24292e;
    box-shadow: 0 0 10px rgba(36, 41, 46, 0.5);
}

.social-btn.twitter {
    background: #1DA1F2;
    box-shadow: 0 0 10px rgba(29, 161, 242, 0.5);
}

.social-btn.linkedin {
    background: #0077B5;
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.5);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.5);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #fff, var(--secondary));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.newsletter-form {
    margin-right: 1.3rem;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    flex: 1;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.3s ease;
}

.footer-bottom p:hover {
    color: white;
    transform: translateX(5px);
}

.footer-indicators {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.watermark {
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
    .footer-bottom {
        grid-template-columns: 1fr auto;
        padding: 1.5rem;
    }

    .watermark {
        grid-column: 1/-1;
        justify-self: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .footer-bottom p {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-indicators {
        justify-content: center;
    }

    .watermark {
        padding: 0.6rem 0.8rem;
        justify-self: center;
    }

    .footer-bottom p:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        padding: 1rem;
    }

    .footer-bottom p {
        margin-bottom: 2rem;
        font-size: 0.8rem;
    }

    .watermark {
        margin-top: 2rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .watermark span {
        font-size: 0.6rem;
    }

    .footer-indicators {
        gap: 0.5rem;
    }

    .scroll-indicator,
    .theme-indicator {
        width: 30px;
    }
}

/* Add these animations for smooth transitions */
.footer-bottom>* {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.footer-bottom p {
    animation-delay: 0.1s;
}

.footer-indicators {
    animation-delay: 0.2s;
}

.watermark {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Watermark styles */
.watermark {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    color: rgba(5, 0, 0, 0.775);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.428);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watermark:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.watermark span {
    background: linear-gradient(45deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: #00000079;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.watermark:hover span {
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.watermark i {
    font-size: 1.2rem;
    position: relative;
    transition: all 0.5s ease;
}

.watermark:hover i {
    transform: rotate(360deg) scale(1.2);
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.watermark::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    padding: 2px;
    background: linear-gradient(45deg, var(--secondary), #fff, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.watermark:hover::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(45deg, var(--secondary), #fff, var(--primary));
    }

    50% {
        background: linear-gradient(225deg, var(--primary), #fff, var(--secondary));
    }

    100% {
        background: linear-gradient(45deg, var(--secondary), #fff, var(--primary));
    }
}

.watermark::after {
    content: '❤️';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.watermark:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.3);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    /* text-shadow: 0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary),
        0 0 30px var(--neon-primary); */
}

.gradient-text::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    animation: shimmer 2s infinite;
}

.about-description {
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    /* background: var(--halfwhitetrans); */
    background: #ffffff95;

    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    box-shadow: 0 0 15px var(--neon-primary),
        0 0 30px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(360deg);
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.feature-list li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-choose-item {
    padding: 0.8rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
}

.why-choose-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(10px);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.03));
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.2);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg,
            var(--primary),
            var(--secondary),
            var(--primary));
    border-radius: 1.5rem;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.cta-section:hover::before {
    opacity: 1;
    animation: rotate-gradient 3s linear infinite;
}

.cta-text {
    position: relative;
    margin-bottom: 2rem;
    color: var(--text);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-text i {
    color: var(--primary);
    font-size: 1.4rem;
    transition: all 0.5s ease;
}

.cta-section:hover .cta-text {
    transform: perspective(1000px) translateZ(50px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.cta-section:hover .cta-text i {
    transform: rotate(360deg) scale(1.2);
    color: var(--secondary);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 3rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.cta-button::before,
.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cta-button::after {
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transform: translateX(-100%) rotate(45deg);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    letter-spacing: 2px;
}

.cta-button:hover::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

.cta-button:hover::after {
    animation: shine 2s infinite;
}

.cta-button:active {
    transform: translateY(2px) scale(0.95);
}

@keyframes rotate-gradient {
    0% {
        background: linear-gradient(0deg, var(--primary), var(--secondary), var(--primary));
    }

    100% {
        background: linear-gradient(360deg, var(--primary), var(--secondary), var(--primary));
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-text {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .gradient-text {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-item:hover {
        transform: none;
    }
}

/* Add these styles and remove the old SVG-related styles */
.brand-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #00ff88, var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
        transform: scale(1.05);
    }
}

/* Neon cursor effect */
.neon-cursor {
    pointer-events: none;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-primary);
    transition: transform 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    box-shadow: var(--neon-shadow);
}

.neon-cursor::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
            rgba(37, 99, 235, 0.3) 0%,
            transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

.neon-cursor-trail {
    pointer-events: none;
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-secondary);
    transition: all 0.5s ease;
    z-index: 9998;
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* Add neon effect to interactive elements */
button:hover,
.nav-link:hover,
.social-btn:hover {
    text-shadow: 0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary),
        0 0 30px var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary),
        inset 0 0 15px rgba(37, 99, 235, 0.5);
}

@keyframes neonTrail {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Add neon effect to scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    box-shadow: var(--neon-shadow);
}

.dimension-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.dimension-input label {
    display: flex;
    align-items: center;
    flex: 1;
}

.dimension-input input[type="number"] {
    flex: 1;
}

.dimension-input select {
    width: 70px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--text);
}

.aspect-ratio-lock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.aspect-ratio-lock input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.aspect-ratio-lock input[type="checkbox"]:checked {
    background-color: var(--primary);
}

.aspect-ratio-lock input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.aspect-ratio-lock label {
    cursor: pointer;
    user-select: none;
}