/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: #4A90E2;
}

.logo p {
    font-size: 0.8rem;
    color: #666;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4A90E2;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    color: #4A90E2;
    border: 1px solid #4A90E2;
}

.btn-signup {
    background: #4A90E2;
    color: white;
}

.btn-login:hover {
    background: #4A90E2;
    color: white;
}

.btn-signup:hover {
    background: #3a7bc8;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: #4A90E2;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
}
.action-buttons {
  display: flex !important;         /* ensures flex */
  justify-content: flex-start !important; /* align left */
  padding-left: 0;                  /* optional: remove extra spacing */
}


/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.features > p {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.tool-category {
    margin-bottom: 3rem;
}

.tool-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4A90E2;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f5f7fa;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #4A90E2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* Security Section */
.security {
    padding: 4rem 0;
    background: white;
}

.security .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-content {
    flex: 1;
    max-width: 600px;
}

.security-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.security-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.security-content ul {
    margin-left: 1.5rem;
}

.security-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.security-content li:before {
    content: "✓";
    color: #27AE60;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.security-image {
    flex: 1;
    text-align: center;
}

.security-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #f5f7fa;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-feature {
    text-align: center;
    padding: 2rem 1rem;
}

.about-feature h3 {
    margin-bottom: 1rem;
    color: #4A90E2;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #4A90E2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal button {
    width: 100%;
}

.modal p {
    text-align: center;
    margin-top: 1rem;
}

.modal a {
    color: #4A90E2;
}
/* Navigation with Dropdown Styles */
nav ul {
    display: flex;
    gap: 2rem;
    position: relative;
}

nav li {
    position: relative;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: #4A90E2;
}

/* Nav Has Dropdown Class */
.nav-has-dropdown {
    position: relative;
}

.nav-has-dropdown > a::after {
    content: "▾";
    margin-left: 5px;
    font-size: 0.9rem;
}

.nav-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #333;
    padding: 0.8rem 1.5rem;
    display: block;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #4A90E2;
    border-left-color: #4A90E2;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Dropdown categories styling */
.dropdown-category {
    padding: 0.8rem 1.5rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

/* Mega dropdown for tools */
.nav-has-mega-dropdown {
    position: static;
}

.nav-has-mega-dropdown:hover .mega-dropdown {
    opacity: 1;
 	content: "▾";
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-dropdown-column h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mega-dropdown-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-dropdown-column a {
    padding: 0.5rem 0;
    color: #555;
    transition: color 0.3s;
}

.mega-dropdown-column a:hover {
    color: #4A90E2;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-has-dropdown > a::after {
        content: "▸";
    }
    
    .nav-has-dropdown.active > a::after {
        content: "▾";
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none;
        padding-left: 1rem;
    }
    
    .nav-has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mega-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding: 1rem 0;
    }
    
    .nav-has-mega-dropdown.active .mega-dropdown {
        display: block;
    }
    
    .mega-dropdown-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dropdown-menu a {
        border-left: none;
        padding-left: 0;
    }
}

/* Update existing responsive styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav a {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .nav-has-dropdown > a {
        padding-right: 1rem;
    }
}

/* Merge PDF Specific Styles */
.main-content {
    padding: 40px 0;
}

.hero-section-sb {
    text-align: center;
    margin-bottom: 40px;
}

.hero-content-sb h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.hero-content-sb p {
    font-size: 1.2rem;
    color: #666;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #4A90E2;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 3rem;
    color: #4A90E2;
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: #333;
}

.upload-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 15px;
}

.file-list-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.action-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-merge {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-merge:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-merge:hover:not(:disabled) {
    background: #357abd;
}

.progress-section {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #4A90E2;
    transition: width 0.3s ease;
    width: 0%;
}

.result-section {
    text-align: center;
}

.success-message {
    background: #d4edda;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-new {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px;
}

.features-section {
    margin-top: 60px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #4A90E2;
    margin-bottom: 20px;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}
/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .security .container {
        flex-direction: column;
    }
    
    .security-content {
        margin-bottom: 2rem;
    }
    
    .tools-list {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}