/*
Theme Name: 교통사고소송닷컴
Theme URI: https://www.bestbosang.com
Author: BestBosang
Author URI: https://www.bestbosang.com
Description: 교통사고 전문 변호사 김병언 - 전문적인 법률 서비스 테마
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestbosang-lawyer
*/

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #7f8c8d;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 37, 47, 0.95);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.site-logo span {
    color: var(--accent-color);
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
}

.header-phone svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
}

.header-cta {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--white);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-features {
    list-style: none;
    margin-bottom: 35px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.hero-features li::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-color);
    border-color: var(--white);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.about-badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.about-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* Profile Section */
.profile-section {
    background: var(--white);
}

.profile-card {
    background: var(--white);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profile-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.profile-tag {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.profile-section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.profile-list .current::before {
    background: var(--success-color);
}

.profile-list .past::before {
    background: var(--text-light);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.services-section .section-subtitle {
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-color);
}

.services-section .section-title {
    color: var(--white);
}

.services-section .section-desc {
    color: rgba(255,255,255,0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--secondary-color);
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-text a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.form-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-features {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        max-width: 500px;
        margin: 40px auto 0;
    }

    .about-content,
    .contact-content,
    .profile-body {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

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

    .profile-photo {
        margin: 0 auto;
    }

    .profile-tags {
        justify-content: center;
    }

    .header-contact {
        display: none;
    }

    .btn {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .profile-card {
        padding: 30px 20px;
    }
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.phone {
    background: var(--success-color);
}

.float-btn.kakao {
    background: #FEE500;
    color: #3C1E1E;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Success Message */
.form-success {
    display: none;
    padding: 20px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 12px;
    color: var(--success-color);
    text-align: center;
    margin-top: 20px;
}

.form-success.show {
    display: block;
}

/* Calculator Section */
.calculator-section {
    background: var(--white);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-form {
    background: var(--light-color);
    border-radius: 20px;
    padding: 35px;
}

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

.calc-section:last-of-type {
    margin-bottom: 25px;
}

.calc-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.calc-group input,
.calc-group select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.calc-group input:disabled,
.calc-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 25px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calc-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-submit:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.calculator-result {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--light-color);
    position: sticky;
    top: 100px;
}

.calculator-result h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.result-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    color: var(--text-color);
    font-weight: 500;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-value.negative {
    color: var(--danger-color);
}

.result-value.highlight {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.result-divider {
    height: 2px;
    background: var(--light-color);
    margin: 10px 0;
}

.result-item.total {
    padding: 20px 0 10px;
}

.result-item.fault-item {
    background: rgba(231, 76, 60, 0.05);
    margin: 0 -20px;
    padding: 15px 20px;
}

.result-disclaimer {
    margin-top: 25px;
    padding: 20px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.result-disclaimer strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.result-disclaimer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Contact CTA Section */
.contact-cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.cta-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text .section-subtitle {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 18px 35px;
    font-size: 1.15rem;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cta-feature-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.cta-feature-text {
    display: flex;
    flex-direction: column;
}

.cta-feature-text strong {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.cta-feature-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Calculator Responsive */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        position: static;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-feature {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
    }

    .calculator-form,
    .calculator-result {
        padding: 25px;
    }

    .cta-features {
        flex-direction: column;
    }

    .cta-feature {
        max-width: 100%;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Anti-Gravity Loader Styles
   ============================================ */

.ag-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.97);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(20px);
}

.ag-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ag-loader-overlay.closing {
    opacity: 0;
    transform: scale(1.1);
}

.ag-loader-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

/* Particles Background */
.ag-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ag-particle {
    position: absolute;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* Main Content */
.ag-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: contentFadeIn 0.8s ease-out forwards;
}

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

/* Logo */
.ag-logo {
    margin-bottom: 30px;
}

.ag-scale-icon {
    font-size: 80px;
    display: inline-block;
    animation: scaleFloat 3s infinite ease-in-out, scaleGlow 2s infinite alternate;
    filter: drop-shadow(0 0 30px rgba(52, 152, 219, 0.6));
}

@keyframes scaleFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes scaleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.4));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(243, 156, 18, 0.8));
    }
}

/* Title */
.ag-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.ag-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ag-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: progressShine 2s infinite linear;
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Status Text */
.ag-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    min-height: 30px;
}

/* Steps */
.ag-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ag-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: all 0.5s ease;
    transform: scale(0.9);
}

.ag-step.active {
    opacity: 1;
    transform: scale(1);
}

.ag-step.active .ag-step-icon {
    animation: stepPulse 1s infinite;
}

.ag-step.completed {
    opacity: 1;
    transform: scale(1);
}

.ag-step.completed .ag-step-icon {
    background: var(--success-color);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.5);
}

.ag-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(243, 156, 18, 0.8);
    }
}

.ag-step-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Floating Items */
.ag-floating-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.ag-float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatItem 8s infinite ease-in-out;
}

@keyframes floatItem {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) rotate(180deg) scale(1);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-20px) translateX(-30px) rotate(270deg) scale(1.1);
        opacity: 0.2;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ag-loader-container {
        padding: 30px 20px;
    }

    .ag-scale-icon {
        font-size: 60px;
    }

    .ag-title {
        font-size: 1.5rem;
    }

    .ag-steps {
        gap: 15px;
    }

    .ag-step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .ag-step-text {
        font-size: 0.75rem;
    }
}
