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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #FFF200;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fdfc01;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    margin-left: 20px;
    margin-right: 20px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

/* Show nav-menu on desktop */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        position: static;
        left: auto;
        top: auto;
        background-color: #fdfc01;
        width: auto;
        box-shadow: none;
        padding: 0;
        z-index: auto;
        flex-direction: row;
        height: auto;
        overflow: visible;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-left: -20px;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fdfc01, #f6d200);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(253, 252, 1, 0.5);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.03s ease;
}

.hamburger:active {
    background-color: rgba(246, 255, 0, 0.15);
    transform: scale(0.95);
}

.hamburger:focus {
    outline: none;
}

.hamburger:focus-visible {
    outline: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 2px;
    position: relative;
}

/* Hamburger Menu Active States */
.hamburger.active .bar:nth-child(1) {
    transform: scale(0.7);
    opacity: 0.8;
}

.hamburger.active .bar:nth-child(2) {
    transform: scale(0.7);
    opacity: 0.8;
}

.hamburger.active .bar:nth-child(3) {
    transform: scale(0.7);
    opacity: 0.8;
}

.hamburger {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.hamburger.active {
    opacity: 1;
    visibility: visible;
}

.hamburger .bar {
    transform: scale(1);
    opacity: 1;
}

/* ========================================
   COMMON FORM STYLES
   ======================================== */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ffc107;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: 'Prompt', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    border-width: 2px;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Prompt', sans-serif;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.radio-item:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-1px);
    border-color: #ffc107;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #ffc107;
    transform: scale(1.2);
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

/* ========================================
   COMMON BUTTON STYLES
   ======================================== */

.submit-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: 'Prompt', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

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

.submit-btn:disabled {
    background: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #999;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* ========================================
   COMMON MESSAGE STYLES
   ======================================== */

.success-message {
    background: #bcf0c8;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    position: relative;
    overflow: hidden;
}

.error-message {
    background: #ffffff;
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    position: relative;
    overflow: hidden;
}

.info-message {
    margin-bottom: 15px;
    transition: none !important;
    animation: none !important;
}

.info-message p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* ========================================
   COMMON FILE UPLOAD STYLES
   ======================================== */

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type=file] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.file-upload-label {
    display: block;
    padding: 10px 12px;
    border: 2px dashed #ffc107;
    border-radius: 8px;
    text-align: center;
    color: #333;
    background: #ffffff;
    font-family: 'Prompt', sans-serif;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s;
}

/* ========================================
   COMMON SECTION STYLES
   ======================================== */

.section-header {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 179, 0, 0.1) 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 25px 0 20px 0;
    cursor: pointer;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-header.main-section {
    background: none;
    border: none;
    margin: 30px 0 25px 0;
    padding: 0;
}

.section-header.main-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

/* ========================================
   COMMON ANIMATIONS
   ======================================== */

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

/* ========================================
   SEARCH BAR STYLES (COMMON)
   ======================================== */

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
}

.search-box:focus-within {
    border-color: #ffb300;
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.2);
}

.search-icon {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-right: 12px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.search-box:focus-within .search-icon {
    color: #ffb300;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #2c3e50;
    font-family: 'Prompt', sans-serif;
    min-width: 0;
    width: 100%;
    height: 100%;
    line-height: 1.2;
    resize: none;
    overflow: hidden;
}

.search-input::placeholder {
    color: #95a5a6;
    font-style: italic;
    font-size: 0.9rem;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.clear-search-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.clear-search-btn i {
    font-size: 0.9rem;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0;
}

.no-results-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-results-content p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FEF200 0%, #FFD300 100%), url(../img/AI-Transform-background.png);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    margin-bottom: 20px;
    position: relative;
    width: 50px;
    height: 50px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: trueCircle 1.5s linear infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }

    /* Hide nav-menu on mobile by default */
    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fdfc01;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        z-index: 999;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-image {
        height: 50px;
        max-width: 160px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .radio-item {
        min-height: 44px;
    }
    
    .submit-btn {
        min-height: 48px;
    }
    
    .file-upload-label {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
