/* SkillSphere Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #1bad6e;
    --light-green: #e0f7ed;
    --dark-bg: #111a24;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
    --border-light: #e6e6e6;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Montserrat Alternates", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header-section {
    background: var(--dark-bg);
    box-shadow: var(--shadow-medium);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.navbar-toggler:focus {
    box-shadow: none;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(17, 26, 36, 0.8);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    opacity: 0.9;
}

/* Section Styles */
.section-title {
    color: var(--dark-bg);
    margin-bottom: 2rem;
}

/* About Platform Section */
.about-platform-section {
    padding: 5rem 0;
    background: var(--white);
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Background Variations */
.bg-light-green {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0faf5 100%);
}

/* Direction Cards */
.direction-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #20c977 100%);
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.direction-image img {
    transition: var(--transition);
}

.direction-card:hover .direction-image img {
    transform: scale(1.05);
}

/* Step Cards */
.step-card {
    position: relative;
}

.step-icon {
    position: relative;
    display: inline-block;
}

.icon-circle {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
}

.step-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* Advantage Cards */
.advantage-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.advantage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advantage-card:hover::after {
    width: 100%;
}

.advantage-icon {
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

/* Learning Format Section */
.learning-format-section {
    padding: 5rem 0;
    background: var(--white);
}

.format-image img {
    transition: var(--transition);
}

.format-image:hover img {
    transform: scale(1.02);
}

/* Target Audience Cards */
.audience-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(27, 173, 110, 0.1) 100%);
    transition: var(--transition);
    z-index: 1;
}

.audience-card:hover::before {
    width: 100%;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.audience-card > * {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer-section {
    background: var(--dark-bg) !important;
    border-top: 3px solid var(--primary-color);
}

.footer-section h5,
.footer-section h6 {
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* Cookie Popup */
.cookie-popup {
    z-index: 1040;
    border-top: 3px solid var(--primary-color) !important;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-width: 2px;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c977 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-success:hover {
    background: linear-gradient(135deg, #159f5e 0%, #1ba866 100%);
    border-color: #159f5e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-success:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Page Headers for Secondary Pages */
.page-header {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0faf5 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%231bad6e" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="%231bad6e" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%231bad6e" opacity="0.1"/></svg>');
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.page-title {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 173, 110, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

/* Contact Page Specific */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-container iframe {
    border-radius: var(--border-radius);
}

/* Course Cards for Catalog */
.course-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #20c977 100%);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

/* Review Cards */
.review-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(27, 173, 110, 0.05) 100%);
    transition: var(--transition);
    z-index: 1;
}

.review-card:hover::after {
    width: 100%;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.review-card > * {
    position: relative;
    z-index: 2;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.reviewer-course {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Success Story Cards */
.story-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.story-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition);
}

.story-card:hover::before {
    width: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.story-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-green);
    margin-bottom: 1rem;
}

/* Team Member Cards */
.team-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(27, 173, 110, 0.1) 100%);
    transition: var(--transition);
    z-index: 1;
}

.team-card:hover::before {
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-card > * {
    position: relative;
    z-index: 2;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--light-green);
    transition: var(--transition);
}

.team-card:hover .team-photo {
    border-color: var(--primary-color);
}

.team-name {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.team-specialization {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Statistics Cards */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #20c977 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--dark-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .step-card,
    .advantage-card,
    .audience-card {
        margin-bottom: 1rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-card,
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .cookie-popup .container {
        padding: 0 1rem;
    }
    
    .cookie-popup .col-lg-4 {
        text-align: center;
    }
}

/* Utility Classes */
.text-success {
    color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

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

.rounded-4 {
    border-radius: var(--border-radius) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-light) !important;
}

.shadow-custom-lg {
    box-shadow: var(--shadow-medium) !important;
}

/* Loading Animation for Images */
.img-fluid {
    transition: var(--transition);
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-section,
    .footer-section,
    .cookie-popup {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        box-shadow: none !important;
    }
}
