/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Palette */
    --primary: #6366f1; /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899; /* Pink 500 */
    --secondary-glow: rgba(236, 72, 153, 0.4);
    
    --bg-dark: #0f172a; /* Slate 900 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Website Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Aurora Background */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

body::before {
    background: var(--primary);
    top: -50px;
    left: -50px;
}

body::after {
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Premium Navbar */
header {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    color: white !important;
    border: 1px solid var(--glass-border);
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

main {
    flex: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Professional Footer */
.main-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 6rem;
    gap: 2rem;
    animation: fade-in-up 0.8s ease-out;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.tools-section {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tools-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: linear-gradient(135deg, var(--secondary), #f472b6);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    box-shadow: 0 2px 10px var(--secondary-glow);
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.tool-card:hover::before { opacity: 1; }

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.tool-card h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Tool Container */
.tool-container {
    padding: 3rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: fade-in-up 0.6s ease-out;
}

/* Forms & Inputs */
.input-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.file-drop-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

input[type="file"] {
    width: 100%;
    cursor: pointer;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-top: 2.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.back-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

#status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: none;
    animation: fade-in-up 0.3s ease-out;
}

#status.success {
    display: block;
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

#status.error {
    display: block;
/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.tool-card:hover::before { opacity: 1; }

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.tool-card h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Tool Container */
.tool-container {
    padding: 3rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: fade-in-up 0.6s ease-out;
}

/* Forms & Inputs */
.input-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.file-drop-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

input[type="file"] {
    width: 100%;
    cursor: pointer;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-top: 2.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.back-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

#status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: none;
    animation: fade-in-up 0.3s ease-out;
}

#status.success {
    display: block;
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

#status.error {
    display: block;
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    h1 { font-size: 2.5rem; }
    .tool-container { padding: 1.5rem; margin: 1rem; width: auto; }
    header { padding: 1rem; }
    main { padding: 2rem 1rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile for now */
    }
}