/* Base Styles */
:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --accent: #9b59b6;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #0f1923;
    color: var(--light);
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(15, 25, 35, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    color: var(--light);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light);
    transition: all 0.3s ease;
}

/* Main Content */
.container {
    margin: 100px auto 50px; /* Changed from margin: 100px auto 0; */
    padding: 2rem;
    min-height: calc(100vh - 250px); /* Ensures content pushes footer down */
}


/* Add/Update these styles in your style.css */

/* Fix for card visibility and layout */
.container {
    margin: 100px auto 50px;
    padding: 2rem;
    min-height: calc(100vh - 250px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
}

.card {
    position: relative;
    z-index: 3;
    width: 350px;
    min-height: 250px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Slower card hover animation */
.card:hover {
    transform: scale(1.05) translateY(-5px);
    transition-duration: 0.5s;
}

/* Upload page specific styles */
.tool-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.upload-card {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    position: absolute;
}

.file-label {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.file-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.preview-section {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-container {
    width: 100%;
    min-height: 400px;
    border: 2px dashed #eee;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    margin-top: 1rem;
    background: rgba(255,255,255,0.05);
}

.preview-placeholder {
    text-align: center;
    color: #95a5a6;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.download-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}
.main-title {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    font-size: 3rem;
    background: linear-gradient(to right, #3498db, #2ecc71, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71, #9b59b6);
    border-radius: 2px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem; /* Reduced from 4rem */
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
}

/* Cards */
.card {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    cursor: pointer;
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.card-1 {
    background: rgba(52, 152, 219, 0.1);
    border-top: 4px solid var(--primary);
}

.card-2 {
    background: rgba(46, 204, 113, 0.1);
    border-top: 4px solid var(--secondary);
}

.card-3 {
    background: rgba(155, 89, 182, 0.1);
    border-top: 4px solid var(--accent);
}

/* Footer */
.footer {
    background: rgba(15, 25, 35, 0.9);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.2);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--light);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-md-4 {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 25, 35, 0.95);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-title {
        font-size: 2.5rem;
    }

    .card {
        min-height: 240px;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .main-title {
        font-size: 2rem;
    }
}

/* Fix for particles.js z-index */
#particles-js {
    z-index: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure content containers are properly layered */
.container, .footer {
    position: relative;
    z-index: 10;
}

/* Card specific fixes */
.card {
    transform: translateY(0) !important;
    opacity: 1 !important;
    will-change: transform;
    position: relative;
}

/* Animation preparation state */
.gsap-prepare {
    opacity: 0;
    visibility: hidden;
}

/* Fix for card container */
.row {
    position: relative;
    z-index: 10;
}

/* Fix for navbar z-index */
.navbar {
    z-index: 1000;
    position: relative;
}
