/* Custom CSS for Aspirant Website */

:root {
    --primary-color: #043801;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.navbar-nav .nav-link {
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #05a645 10%, #043801 90%);
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

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

.hero-image img {
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

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

/* Section Spacing */
section {
    position: relative;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--success-color);
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.stat-card {
    border-top: 4px solid var(--primary-color);
}

.stat-card:nth-child(2) {
    border-top-color: var(--success-color);
}

.stat-card:nth-child(3) {
    border-top-color: var(--info-color);
}

.stat-card:nth-child(4) {
    border-top-color: var(--warning-color);
}

.stat-number {
    font-size: 2.5rem;
}

/* Achievement Grid */
.achievement-card {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.achievement-image {
    height: 250px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.1);
}

.achievement-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Testimonial */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 5rem;
    color: rgba(13, 110, 253, 0.1);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.star-rating {
    color: var(--warning-color);
}

/* Form Styling */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #05a645);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #05a645, #043801);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
}

.btn-light:hover {
    background: white !important;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 6px;
    margin-top: 1rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #0a3622;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #5a0d0d;
    border-left: 4px solid #dc3545;
}

/* Spinner Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Section Backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
}

#achievements {
    background: white;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        text-align: center;
    }

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

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

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .achievement-image {
        height: 200px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        max-width: 250px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Utility Classes */
.shadow-lg {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

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

/* Footer Links */
footer a {
    transition: color 0.3s ease;
}

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

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    animation: successPulse 0.5s ease;
}
