/* =============================================
   IDAROOT - Custom CSS
   Theme: Dark Professional
   Colors: #793e6e (Primary), #032557 (Secondary), #000000 (Tertiary)
   ============================================= */

/* === GLOBAL STYLES === */
:root {
    --primary-color: #793e6e;
    --secondary-color: #032557;
    --tertiary-color: #000000;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --bg-dark: #000000;
    --bg-dark-2: #0a0a0a;
    --bg-dark-3: #1a1a1a;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    color: var(--text-gray);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #632d59;
}

/* === BUTTONS === */
.btn-custom-primary {
    background: linear-gradient(135deg, #793e6e 0%, #632d59 100%);
    color: var(--text-light);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-custom-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(121, 62, 110, 0.4);
    color: var(--text-light);
}

.btn-custom-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-custom-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(121, 62, 110, 0.3);
}

/* === SECTIONS === */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(121, 62, 110, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(3, 37, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, #793e6e, #632d59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

/* === CARDS === */
.card-custom {
    background: var(--bg-dark-3);
    border: 1px solid rgba(121, 62, 110, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(121, 62, 110, 0.3);
}

.card-custom .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(121, 62, 110, 0.2), rgba(121, 62, 110, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-custom:hover .icon {
    background: linear-gradient(135deg, var(--primary-color), #632d59);
    color: var(--text-light);
    transform: scale(1.1) rotate(5deg);
}

.card-custom h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.card-custom p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* === STATISTICS === */
.stats-section {
    background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark-3));
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

/* === FORMS === */
.form-custom .form-control,
.form-custom .form-select,
.form-custom textarea {
    background: var(--bg-dark-3);
    border: 1px solid rgba(121, 62, 110, 0.2);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.form-custom .form-control:focus,
.form-custom .form-select:focus,
.form-custom textarea:focus {
    background: var(--bg-dark-3);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(121, 62, 110, 0.25);
    color: var(--text-light);
}

.form-custom label {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 8px;
}

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

/* === IMAGE EFFECTS === */
.img-effect {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.img-effect img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    transition: var(--transition);
}

.img-effect:hover img {
    transform: scale(1.1);
}

.img-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(121, 62, 110, 0.3), rgba(3, 37, 87, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.img-effect:hover::after {
    opacity: 1;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--bg-dark-3);
    border: 1px solid rgba(121, 62, 110, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin: 0 auto 20px;
    overflow: hidden;
}

.testimonial-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h5 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.testimonial-card .position {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* === LOADER === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(121, 62, 110, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === MEDIA QUERIES === */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .btn-custom-primary,
    .btn-custom-secondary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* === UTILITIES === */
.bg-dark-custom {
    background: var(--bg-dark);
}

.bg-dark-2 {
    background: var(--bg-dark-2);
}

.bg-dark-3 {
    background: var(--bg-dark-3);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.text-gray-custom {
    color: var(--text-gray) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #632d59;
}

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

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #793e6e, #632d59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SHADOW EFFECTS === */
.shadow-primary {
    box-shadow: 0 10px 40px rgba(121, 62, 110, 0.3);
}

.shadow-hover:hover {
    box-shadow: 0 15px 50px rgba(121, 62, 110, 0.4);
}
