/* ============================================
   iSpecs Solution - Global Stylesheet
   ============================================ */

/* ROOT VARIABLES */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003d82;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GENERAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
    'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
}

.lead {
    font-size: 1.15rem;
    font-weight: 500;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: black !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    padding: 5rem 0;
}

.hero-section h1 {
    color: white;
    line-height: 1.2;
}

.hero-section .lead {
    color: #b0b0b;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card {
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15) !important;
}

.project-card {
    border-radius: 12px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.project-card img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-title {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: var(--primary-color) !important;
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

section {
    padding: 4rem 0;
}

section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ============================================
   BACKGROUND COLORS
   ============================================ */

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ============================================
   IMAGES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
}

.rounded-lg {
    border-radius: 12px;
}

.img-fluid {
    transition: var(--transition);
}

/* ============================================
   ICONS
   ============================================ */

.fa-lg {
    font-size: 1.33em;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--dark-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-carousel {
    position: relative;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    background: none;
    border: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 15px;
}

/* ============================================
   TRAINING CARDS
   ============================================ */

.training-card {
    transition: var(--transition);
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 86, 179, 0.15) !important;
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion-button {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 1.2rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

section {
    animation: fadeIn 0.6s ease-in-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .card {
        margin-bottom: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .gap-4 {
        gap: 1rem !important;
    }

    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-dark {
    color: var(--text-dark) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-3 { margin-top: 1rem !important; }
.mt-5 { margin-top: 3rem !important; }

.pt-3 { padding-top: 1rem !important; }

/* ============================================
   GRADIENTS & OVERLAYS
   ============================================ */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}