/* ----- Global Variables & Reset ----- */
:root {
    --primary-color: #6a4bff; /* Vibrant purple from design */
    --primary-hover: #5535eb;
    --primary-light: rgba(106, 75, 255, 0.1);
    --secondary-color: #ff9800;
    --text-dark: #1a1a2e;
    --text-muted: #6e728e;
    --bg-light: #f8f9fc;
    --bg-card: #ffffff;
    --font-family: 'Inter', sans-serif;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ----- Typography & Base ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

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

/* ----- Utility Classes ----- */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light-purple { background-color: var(--primary-light) !important; }
.text-muted-custom { color: var(--text-muted); }

/* ----- Buttons ----- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 75, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ----- Navbar ----- */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.search-form {
    max-width: 320px;
    width: 100%;
}

.search-form input {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-form input:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem var(--primary-light);
    border: 1px solid var(--primary-color) !important;
}

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

/* Navbar Hover Animation */
.nav-link.nav-hover {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link.nav-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.btn-hover-scale {
    transition: all 0.3s ease;
}

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

.btn-white {
    background-color: #ffffff;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: #f8f9fa;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Social Icons Animation */
.social-icon-hover {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-hover:hover {
    color: var(--primary-color) !important;
    transform: translateY(-6px) scale(1.2) rotate(8deg);
    text-shadow: 0 5px 15px rgba(106, 75, 255, 0.4);
}

/* ----- Hero Section ----- */
.hero-section {
    position: relative;
}

.hero-diagram {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 1px dashed rgba(106, 75, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(106, 75, 255, 0.15);
}

.orbit-icon {
    position: absolute;
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 5%; left: 20%; animation-delay: 0s; color: #3776ab; } /* Python */
.icon-2 { top: 15%; right: 10%; animation-delay: 1s; color: #61dafb; } /* React */
.icon-3 { bottom: 20%; left: 5%; animation-delay: 2s; color: #dd0031; } /* Angular */
.icon-4 { bottom: 5%; right: 30%; animation-delay: 3s; } /* Android */
.icon-5 { top: 45%; right: -5%; animation-delay: 4s; } /* Apple */
.icon-6 { top: 50%; left: -5%; animation-delay: 5s; } /* Swift */
.icon-7 { bottom: 35%; right: -5%; animation-delay: 1.5s; } /* Java */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991px) {
    .hero-diagram {
        width: 320px;
        height: 320px;
        margin-top: 3rem;
    }
}

/* ----- Features Section ----- */
.features-section {
    background: linear-gradient(180deg, #ffffff 0%, rgba(106, 75, 255, 0.03) 50%, #ffffff 100%);
    overflow: hidden;
}

.feature-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(106, 75, 255, 0.1) !important;
}

.float-animation {
    animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .feature-card-wrapper {
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .feature-card-wrapper .position-absolute {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

/* ----- Courses Section ----- */
.course-card {
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* ----- Accordion Customization ----- */
.custom-accordion .accordion-button {
    background-color: #fff;
    color: var(--text-dark);
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(106, 75, 255, 0.1) !important;
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236e728e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a4bff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ----- App Section & Footer CTA ----- */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

.input-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem var(--primary-light) !important;
}
