/* Custom CSS for EduNexus Website */

:root {
    --primary-color: #042c6c;
    --secondary-color: #cfb669;
    --accent-color: #f5f5f5;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #042c6c 0%, #0a4d9e 100%);
    --gradient-secondary: linear-gradient(135deg, #cfb669 0%, #e6d084 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

#langToggle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(4, 44, 108, 0.2);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition);
}

#langToggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Navigation */
.navbar {
    background: rgba(4, 44, 108, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.navbar.scrolled {
    background: rgba(4, 44, 108, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(207, 182, 105, 0.2);
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 44, 108, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
}

.hero-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-medium);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    text-align: center;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Sections */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.stats-container {
    margin-top: 2rem;
}

.stats-container .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 1rem;
}

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

.stats-container .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.stats-container .label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.about-image img {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

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

.portfolio-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    height: 100%;
    background: var(--gradient-primary);
    color: white;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
}

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

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-content {
    padding: 2rem;
}

.team-content h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.team-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(4, 44, 108, 0.25);
}

.contact-info {
    padding: 2rem;
    text-align: center;
}

.contact-info h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-bg) !important;
    padding: 2rem 0;
}

.footer .social-links .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer .social-links .social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Custom Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

