@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');

* {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1c304f;
    --primary-blue: #98bbf5;
    --white: #ffffff;
    --glass-bg: rgba(152, 187, 245, 0.08);
    --glass-border: rgba(152, 187, 245, 0.15);
    --accent-blue: #4a7ed9;
    --text-light: #ffffff;
    --text-dark: #1c304f;
}

body {
    background: linear-gradient(135deg, var(--text-light), #2a4875);
    min-height: 100vh;
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-light);
}

/* Fix Horizontal Overflow */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Enhanced Navbar Styles */
.navbar {
    background: rgba(28, 48, 79, 0.95);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(152, 187, 245, 0.15);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: "Montserrat Underline", sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-blue), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    overflow: hidden;
}

/* Enhanced Brand Animation */
.navbar-brand::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Nav Links */
.nav-link {
    color: var(--text-light) !important;
    margin: 0 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Enhanced Mobile Navigation */
@media screen and (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0;
        position: relative;
        width: 30px;
        height: 25px;
        transition: all 0.3s ease;
        margin-right: 1rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--primary-blue);
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .navbar-toggler span:nth-child(1) {
        top: 0;
        transform-origin: center;
    }

    .navbar-toggler span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-toggler span:nth-child(3) {
        bottom: 0;
        transform-origin: center;
    }

    .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar-toggler[aria-expanded="true"] span:nth-child(2) {
        transform: translateX(-100%);
        opacity: 0;
    }

    .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .navbar-collapse {
        background: rgba(28, 48, 79, 0.98);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
        transform-origin: top;
        animation: slideDown 0.3s ease forwards;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem;
        margin: 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--primary-blue);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(152, 187, 245, 0.1);
        transform: translateX(5px);
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: scaleY(0);
        }

        to {
            opacity: 1;
            transform: scaleY(1);
        }
    }
}

/* Main Container Styles */
.converter-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(152, 187, 245, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(28, 48, 79, 0.2);
    border-radius: 20px;
    animation: containerFadeIn 0.5s ease-out;
}

/* Tab Styles */
.nav-tabs {
    border: none;
    margin-bottom: 2rem;
    justify-content: center;
}

.nav-tabs .nav-link {
    color: var(--text-dark) !important;
    border: 1px solid var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: var(--text-dark);
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed var(--primary-blue);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(152, 187, 245, 0.05);
}

.upload-area:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    background: rgba(152, 187, 245, 0.1);
}

.upload-area i {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 3rem;
}

/* Preview Area Styles */
.preview-area {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 15px;
}

.preview-item-container {
    position: relative;
    cursor: move;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.preview-item {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.preview-item-container:hover .image-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    background: var(--primary-blue);
    border: none;
    border-radius: 5%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-dark);
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--accent-blue);
    color: var(--text-light);
}

/* Button Styles */
.button-64 {
    align-items: center;
    background-image: linear-gradient(144deg, #AF40FF, #5B42F3 50%, #00DDEB);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: Phantomsans, sans-serif;
    font-size: 20px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.button-64 span {
    background-color: rgb(5, 6, 45);
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Color fill effect using pseudo-elements */
.button-64 span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(175, 64, 255, 0.4),
            rgba(91, 66, 243, 0.4),
            rgba(0, 221, 235, 0.4));
    transition: all 0.5s ease;
    z-index: -1;
}

.button-64 span::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 221, 235, 0.4),
            rgba(91, 66, 243, 0.4),
            rgba(175, 64, 255, 0.4),
            transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

/* Hover effects */
.button-64:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(151, 65, 252, 0.4);
}

.button-64:hover span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.button-64:hover span::before {
    left: 0;
    animation: colorWaveLeft 2s infinite;
}

.button-64:hover span::after {
    right: 0;
    animation: colorWaveRight 2s infinite;
}

/* Color wave animations */
@keyframes colorWaveLeft {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes colorWaveRight {
    0% {
        transform: translateX(100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Disabled state */
.button-64:disabled {
    background-image: linear-gradient(144deg, #808080, #666666 50%, #4d4d4d);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.button-64:disabled span {
    background-color: rgba(5, 6, 45, 0.5);
}

.button-64:disabled:hover {
    transform: none;
    box-shadow: none;
}

.button-64:disabled:hover span {
    color: inherit;
    text-shadow: none;
}

.button-64:disabled span::before,
.button-64:disabled span::after {
    display: none;
}

/* Active state */
.button-64:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(151, 65, 252, 0.3);
}

/* Responsive styles */
@media (min-width: 768px) {
    .button-64 {
        font-size: 24px;
        min-width: 196px;
    }
}

/* Footer Styles */
.footer {
    background: #1c304f;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 6rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to right bottom, transparent 49%, #1c304f 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section h3 {
    color: #98bbf5;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #98bbf5, transparent);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover h3::after {
    transform: translateX(0);
}

.toolsss .pppp {
    color: #888;
    line-height: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.neww .pp {
    color: #888;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-section p {
    color: #888;
    line-height: 0.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-section a.nav-link {
    color: #888 !important;
    padding: 8px 0;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-section a.nav-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.4s ease;
}

.footer-section a.nav-link:hover {
    color: #98bbf5 !important;
    padding-left: 25px;
    transform: none;
}

.footer-section a.nav-link:hover::before {
    left: 0;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #888;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #252525;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #98bbf5, #4a7ed9);
    top: 100%;
    left: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.social-links a i {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(152, 187, 245, 0.3);
}

.social-links a:hover::before {
    top: 0;
}

.social-links a:hover i {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watermark {
    position: relative;
    padding-left: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.watermark::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    background: #98bbf5;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.watermark:hover {
    transform: translateX(5px);
}

.watermark:hover::before {
    height: 100%;
    width: 3px;
    transform: translateY(-50%) scaleY(1.2);
    background: linear-gradient(to bottom, #98bbf5, #4a7ed9);
}

.owner-name {
    color: #98bbf5;
    font-weight: 600;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
}

.owner-name::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #98bbf5, #4a7ed9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.owner-name:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(152, 187, 245, 0.5);
}

.owner-name:hover::after {
    transform: scaleX(1);
}

/* Add hover effect for footer sections */
.footer-section:hover {
    transform: translateY(-5px);
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .footer-section a.nav-link:hover {
        padding-left: 20px;
    }

    .social-links a:hover {
        transform: translateY(-3px) rotate(360deg);
    }
}

/* Footer Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: slideUp 0.5s ease forwards;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drag-ghost {
    opacity: 0.5;
    transform: scale(0.8);
}

.cropper-modal,
.cropper-container,
.cropper-preview,
.cropper-actions {
    display: none;
}

.sortable-ghost {
    opacity: 0.4;
    background: rgba(152, 187, 245, 0.1);
    border: 2px dashed var(--primary-blue);
    border-radius: 8px;
}

.sortable-drag {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(152, 187, 245, 0.2);
}

.sortable-chosen {
    box-shadow: 0 5px 15px rgba(152, 187, 245, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(28, 48, 79, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Hover Effects Enhancement */
.nav-link:hover {
    color: var(--primary-blue) !important;
}

.footer-section a:hover {
    color: var(--primary-blue) !important;
}

/* Responsive Styles */

/* Tablet (768px to 1024px) */
@media screen and (max-width: 1024px) {
    .footer {
        margin-top: 4rem;
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-section:first-child {
        grid-column: span 2;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
    }
}

/* Mobile (less than 768px) */
@media screen and (max-width: 767px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-nav {
        background: rgba(28, 48, 79, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        margin: 0;
        text-align: center;
    }

    .converter-container {
        margin: 1rem;
        padding: 1rem;
    }

    .nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-tabs .nav-link {
        margin: 0;
        text-align: center;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-area h4 {
        font-size: 1.1rem;
    }

    .preview-area {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .preview-item {
        height: 120px;
    }

    .action-btn {
        width: 30px;
        height: 30px;
    }

    .button-64 {
        font-size: 16px;
        min-width: 100%;
    }

    .button-64 span {
        padding: 12px 16px;
    }

    /* Footer Mobile Styles */
    .footer {
        margin-top: 3rem;
        padding: 2.5rem 0 1.5rem;
    }

    .footer::before {
        top: -30px;
        height: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        text-align: left;
    }

    .footer-section {
        text-align: left;
        padding: 0;
        animation: none;
    }

    .footer-section:first-child {
        grid-column: auto;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        display: inline-block;
        text-align: left;
    }

    .footer-section h3::after {
        left: 0;
        transform: none;
        width: 50%;
    }

    .footer-section p {
        font-size: 0.9rem;
        max-width: 100%;
        margin: 0 0 1rem;
        text-align: left;
    }

    .footer-section a.nav-link {
        display: block;
        padding: 0.5rem 1rem;
        margin: 0.3rem 0;
        text-align: left;
        background: transparent;
        border-radius: 0;
    }

    .footer-section a.nav-link:hover {
        background: transparent;
        transform: translateX(10px);
        padding-left: 1.5rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 1.2rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 0 1.5rem;
    }

    .watermark {
        margin-top: 0;
    }

    .watermark p {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
    }

    .owner-name {
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .owner-name:hover {
        background: transparent;
        transform: translateX(5px);
    }
}

/* Small Mobile (less than 480px) */
@media screen and (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .preview-area {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .preview-item {
        height: 100px;
    }

    .upload-area i {
        font-size: 2rem;
    }

    .upload-area h4 {
        font-size: 1rem;
    }

    .upload-area p {
        font-size: 0.8rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        text-align: left;
    }

    .footer-section p {
        font-size: 0.85rem;
        max-width: 100%;
        text-align: left;
    }

    .footer-section a.nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
        text-align: left;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .owner-name {
        font-size: 0.85rem;
        padding: 0.2rem 0.8rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Landscape Mode Fixes */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .footer {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-section:first-child {
        grid-column: auto;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section h3::after {
        left: 0;
        transform: none;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1001;
}

/* About Section Styles */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(28, 48, 79, 0.95), rgba(74, 126, 217, 0.95));
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path/to/pattern.svg') repeat;
    opacity: 0.05;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.about-content {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

.about-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.key-features {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.key-features h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.key-features li i {
    color: var(--primary-blue);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive Styles for About Section */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .key-features {
        margin: 2rem 1rem;
    }

    .key-features li {
        font-size: 1rem;
    }

    .cta-section p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Enhanced About Section Animations */
.about-section {
    position: relative;
    overflow: hidden;
}

/* Floating Background Effect */
.about-section::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 60%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Feature Cards */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(10deg);
}

.feature-icon {
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Animated Key Features */
.key-features li {
    position: relative;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInFeatures 0.5s ease forwards;
}

.key-features li:nth-child(1) {
    animation-delay: 0.2s;
}

.key-features li:nth-child(2) {
    animation-delay: 0.4s;
}

.key-features li:nth-child(3) {
    animation-delay: 0.6s;
}

.key-features li:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes slideInFeatures {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Feature Icons Animation */
.feature-icon i {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glowing Effect for Cards */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::after {
    transform: scale(1);
}

/* Text Animation for Description */
.about-description p {
    background: linear-gradient(90deg, #fff, var(--primary-blue), #fff);
    background-size: 200% 100%;
    animation: textGradient 8s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes textGradient {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Enhanced CTA Button Animation */
.cta-section .button-64 {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Enhanced Particle Effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    background: #66e2a4;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(81, 255, 75, 0.892);
    animation: progress 3s linear forwards;
}

.toast i {
    color: green;
    font-size: 1.5rem;
}

.toast .toast-content {
    flex: 1;
}

.toast .toast-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast .close-btn {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    font-size: 1.2rem;
}

.toast .close-btn:hover {
    opacity: 1;
}

/* Toast variations */
.toast-success {
    background: #335d48;
    border-left: 4px solid #4CAF50;
}

.toast-error {
    background: #d32f2f;
    border-left: 4px solid #f44336;
}

.toast-warning {
    background: #f57c00;
    border-left: 4px solid #ff9800;
}

.toast-info {
    background: #1976d2;
    border-left: 4px solid #2196f3;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Mobile responsiveness for toast */
@media screen and (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }
}