:root {
    --primary-color: #d4b67f;
    --text-color: #f9f9f9;
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.7);
    --header-bg: rgba(18, 18, 18, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --secondary-text: #d4b67f;
    --accent-color: #d4b67f;
    --section-bg: rgba(26, 26, 26, 0.7);
}

/* Animation Keyframes - CRITICAL for hero visibility */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body, html {
  background-color: #121212;
  color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
}

a {
  color: #f7d793;
  text-decoration: none;
}
a:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* Particles.js container - ENHANCED for visibility */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;  /* Changed from -1 to 0 for visibility */
    background-color: var(--bg-color);
    cursor: pointer;
    background-image: radial-gradient(circle at top right, rgba(30, 30, 30, 0.4), rgba(0, 0, 0, 0.9));
}

/* Ensure particles canvas is visible */
#particles-js canvas {
    position: absolute;
    z-index: 1;
}

.particle-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    animation: ripple 1s ease-out forwards;
    box-shadow: 0 0 30px rgba(212, 182, 127, 0.7);
    background: radial-gradient(circle, rgba(212, 182, 127, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.particle-ripple.small {
    animation: ripple 0.8s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.glow-effect {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9997;
    animation: glow 0.7s ease-out forwards;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    filter: blur(5px);
}

/* Animations */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Ensure content is above particles */
header, main, section, footer {
    position: relative;
    z-index: 2;
}

/* Enhanced header styling */
header {
    transition: all 0.4s ease;
    padding: 15px 0;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
}

header.scrolled {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

header .logo h1 {
    transition: all 0.3s ease;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    letter-spacing: 1px;
}

.header-content {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.auth-button {
    margin-left: 25px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    font-size: 0.95em;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-button i {
    font-size: 0.9em;
}

/* Enhanced hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 30, 30, 0.1) 100%);
    z-index: -1;
}

/* FIXED: Hero content visibility - removed opacity: 0, animation works now */
.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    opacity: 1;  /* FIXED: Set to 1 directly for immediate visibility */
    transform: translateY(0);  /* FIXED: No initial transform */
    animation: fadeInUp 1s ease-out;  /* Animation still runs but starts visible */
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Hero buttons - ENSURE VISIBILITY */
.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    font-size: 1.05em;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Primary and Secondary buttons - PROMINENT STYLING */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 182, 127, 0.3);
    background-color: #e5c890;
}

.btn-secondary:hover {
    background-color: rgba(212, 182, 127, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Section styling - ENSURE VISIBILITY */
.section {
    padding: 80px 0;
    background-color: rgba(26, 26, 26, 0.5);
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 1 !important;
}

.section-header h2 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--secondary-text);
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* About section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.about-text p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.download-section {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.download-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services section - ENSURE CARD VISIBILITY */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card {
    background-color: rgba(30, 30, 30, 0.85);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: #1a1a1a;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Document Conversion Section */
.document-conversion {
    background-color: var(--section-bg);
}

.conversion-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.conversion-card {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.conversion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.conversion-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.conversion-card:hover .conversion-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.conversion-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.conversion-card:hover .conversion-icon i {
    color: #1a1a1a;
}

.conversion-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.conversion-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.conversion-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversion-form input[type="file"] {
    background-color: rgba(30, 30, 30, 0.5);
    color: var(--text-color);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.conversion-form input[type="text"] {
    background-color: rgba(30, 30, 30, 0.5);
    color: var(--text-color);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Contact section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-item .icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.contact-item p {
    color: var(--secondary-text);
    font-size: 1.1em;
}

.contact-disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.contact-disclaimer p {
    color: var(--secondary-text);
    font-size: 0.9em;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--secondary-text);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--secondary-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 182, 127, 0.1);
}

.footer-bottom p {
    color: var(--secondary-text);
    font-size: 0.9em;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .floating-element {
        display: none;
    }

    .custom-cursor {
        display: none;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        margin-top: 15px;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        display: none;
    }

    nav.active ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
    }

    .section {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .conversion-tools {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu toggle */
.menu-toggle {
    display: none;
}

/* Success message */
.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: fadeInUp 0.5s forwards;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

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

/* ====== Dark Theme Fixes and UI Enhancements ====== */
body {
  font-family: 'Poppins', sans-serif;
  color: #f9f9f9;
  background-color: #121212;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
}

a {
  color: #d4b67f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 10px rgba(212, 182, 127, 0.1);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: #d4b67f;
}
.btn {
  background-color: #d4b67f;
  color: #121212;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}
.btn:hover {
  background-color: #f7d793;
  color: #000;
}

.section {
  padding: 80px 0;
  background-color: #121212;
}
.section-header h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
}
.section-header p {
  color: #aaa;
}

iframe {
  margin-top: 20px;
  border-radius: 12px;
  background-color: #121212;
  border: none;
  width: 100%;
  height: 720px;
}

/* Custom cursor styling */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(212, 182, 127, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.expand {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 182, 127, 0.3);
    mix-blend-mode: normal;
}
