/* Custom Styles for Dev Academy Website */

/* Root Variables */
:root {
    --primary-color: #001f3f; /* Navy Blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.25rem;
}

.nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    color: white;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section h1 {
    animation: fadeInUp 1s ease;
}

.hero-section p {
    animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
    animation: fadeInUp 1.4s ease;
}

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

.hero-image i {
    font-size: 15rem;
    opacity: 0.8;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* Course Cards */
#courses .card {
    border-radius: 15px;
    overflow: hidden;
}

#courses .card-body {
    padding: 2rem;
}

#courses .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Instructor Cards */
.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Stats Section */
.counter {
    font-size: 3rem;
    font-weight: bold;
}

/* Contact Form */
#contactForm .form-control {
    border-radius: 8px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

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

#contactForm label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

#contactForm .btn {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#contactForm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

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

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

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

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image i {
        font-size: 10rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

/* Scroll to Top Button (optional enhancement) */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.scroll-to-top:hover {
    background-color: #001529;
    transform: translateY(-5px);
}

.scroll-to-top.show {
    display: flex;
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* List Styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Section Padding */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

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

/* Button Variants */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Icon Styling */
.bi {
    line-height: 1;
}

/* Form Messages */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

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

/* Success Message */
.success-message {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}
