/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ff0030;
    --primary-glow: 0 0 10px #ff003080, 0 0 20px #ff003060, 0 0 30px #ff003040, 0 0 40px #ff003020;
    --accent-color: #ff6080;
    --accent-glow: 0 0 5px #ff608080, 0 0 10px #ff608060;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-bg: #1a1a1a;
    --text-color: #f0f0f0;
    --secondary-text: #b0b0b0;
    --border-color: #2a2a2a;
    --success-color: #00ff66;
    --error-color: #ff3030;
}

body {
    background: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}
.dropdown{
    display: none;
}
.dropdown li{
    padding: 10px;
}
.drop:hover .dropdown{

    margin: auto;
    width: fit-content;
    padding: 30px;
    top: 20%;
    background: #000000da;
    margin-top: 30vh;
    border-radius: 10px;
    display: grid;
       box-shadow: 0 0 40px rgba(255, 0, 60, 0.3);

}
/* Noise overlay for texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4S8BAAAAAXklEQVRIiR3Myw3AIAwDQRDsAoSE9M/5l80ryMPoDXaWZ0d2uBvqKMG7v+f30WjYJ1ph9oL1vPQyomnoLdG54A+U9xvj+kETCG4tpRXwd1XeK8nYQmMJzAXD7rnnB6fCBz9LxgAKAAAAAElFTkSuQmCC');
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color:  #ffffff;
    transition: all 0.3s ease-in-out;
}

ul {
    list-style: none;
}

/* Neon Text Effects */
.neon-text {
    color:  #00f3ff;
    text-shadow: 0 0 5px #00f3ff, 0 0 10px #00f3ff, 0 0 15px #00f3ff, 0 0 20px #00f3ff;
    position: relative;
    display: inline-block;
}

.red-neon-text {
    color:#ff003c;
    text-shadow:  0 0 5px #ff003c, 0 0 10px #ff003c, 0 0 15px #ff003c, 0 0 20px #ff003c;
    position: relative;
    display: inline-block;
}

.glowing-text {
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px  #ff003c, 0 0 40px  #ff003c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px  #ff003c, 0 0 40px  #ff003c;
    }
    50% {
        text-shadow: 0 0 15px #fff, 0 0 25px #fff, 0 0 35px  #ff003c, 0 0 50px  #ff003c, 0 0 65px  #ff003c;
    }
    100% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px  #ff003c, 0 0 40px  #ff003c;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu li a {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff003c;
    transition: all 0.3s ease-in-out;
    /* box-shadow:  0 0 5px #00f3ff, 0 0 10px #00f3ff, 0 0 15px #00f3ff, 0 0 20px #00f3ff; */
}

.menu li a:hover::after {
    width: 100%;
}

.menu li a.active {
    color:  #ff003c;
}

/* Neon Hover Effect */
.neon-hover:hover {
    color: #ff003c;
    /* text-shadow:  0 0 5px #00f3ff, 0 0 10px #00f3ff, 0 0 15px #00f3ff, 0 0 20px #00f3ff; */
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 150;
}

.bar1, .bar2, .bar3 {
    width: 100%;
    height: 3px;
    background-color:  #ffffff;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu li a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.wrapper {
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--primary-glow);
}

/* Neon Text Effects */
/* .neon-text {
    color: var(--primary-color);
    text-shadow: var(--primary-glow);
    font-weight: bold;
} */

.neon-text-accent {
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 48, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.primary-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
}

.primary-btn:hover {
    box-shadow: 0 0 15px var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(255, 0, 48, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 48, 0.3);
}

.convert-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
}

.convert-btn:disabled {
    background-color: #555;
    border-color: #444;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

.convert-btn i {
    margin-right: 8px;
}

.nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.upload-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

 

.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    display: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateY(0);
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 48, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 48, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Section Styles */
section {
    padding: 5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

.converter-section {
    background-color: var(--darker-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.converter-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* File Upload Area */
.file-upload-area {
    width: 100%;
    max-width: 800px;
    min-height: 250px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 48, 0.2);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 48, 0.4);
    background-color: rgba(255, 0, 48, 0.05);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-area p {
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
}

.file-info {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 1rem;
}

/* Preview Containers */
.preview-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    display: none;
}

.preview-container.active {
    display: block;
}

.preview-container h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.preview-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-item .remove-btn:hover {
    background-color: var(--error-color);
}

.pdf-pages-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
    position: relative;
}

.pdf-pages-container canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

#page-indicator {
    min-width: 100px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Options Panel */
.options-panel {
    width: 100%;
    max-width: 800px;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.options-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.option-group input[type="text"],
.option-group input[type="number"],
.option-group select {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.option-group input[type="text"]:focus,
.option-group input[type="number"]:focus,
.option-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 0, 48, 0.3);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

.option-group input[type="range"] {
    width: 100%;
    height: 5px;
    appearance: none;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    margin-top: 0.5rem;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 0, 48, 0.5);
}

.option-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

#scale-value, #quality-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 500;
}

.border-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.border-inputs div {
    display: flex;
    flex-direction: column;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 48, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Styles */
footer {
     background-color: rgba(10, 10, 10, 0.9);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.neon-border-top {
    border-top: 2px solid var(--neon-red);
    box-shadow: 0 -5px 15px rgba(255, 7, 58, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FF3131;
    text-shadow: 0 0 3px #ff073a;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 7, 58, 0.2);
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 0, 48, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#loading-text {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: var(--primary-glow);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .converter-container {
        padding: 0 0.5rem;
    }
    
    .border-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-group {
        margin-bottom: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Active States and Utility Classes */
.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .header-container {
        height: 70px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
