/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styling */
.custom-navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar-nav {
    margin: 0 auto;
}

.nav-link {
    color: #F72C5B !important; /* Changed from #003366 to #F72C5B */
    font-weight: 500;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F72C5B; /* Changed from #FFC107 to #F72C5B */
    transition: width 0.3s ease;
}

.nav-link:hover:before {
    width: 100%;
}

.nav-link:hover {
    background-color: rgba(247, 44, 91, 0.1); /* Changed to match new color */
    transform: translateY(-3px);
    color: #F72C5B !important;
}

.logo {
    height: 50px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.certificate-btn, .login-btn {
    background-color: #F72C5B; /* Changed from #FFC107 to #F72C5B */
    color: white; /* Changed from #003366 to white */
    font-weight: 600;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.certificate-btn:before, .login-btn: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: all 0.6s ease;
    z-index: -1;
}

.certificate-btn:hover:before, .login-btn:hover:before {
    left: 100%;
}

.certificate-btn:hover, .login-btn:hover {
    background-color: white;
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(247, 44, 91, 0.2); /* Changed to match new color */
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: url('collage.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #F72C5B 150%); /* Changed from #003366 to #F72C5B */
    opacity: 0.7;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.hero-title:hover {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white; /* Changed from #FFC107 to white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.hero-subtitle:hover {
    transform: scale(1.05);
    color: #f8f9fa; /* Changed from #FFD700 to light white */
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
}

.hero-text:hover {
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.about-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #F72C5B, white, #F72C5B); /* Changed colors */
}

.main-heading {
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    transition: all 0.5s ease;
}

.main-heading:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(247, 44, 91, 0.2); /* Changed to match new color */
}

.main-heading::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #F72C5B; /* Changed from #FFC107 to #F72C5B */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.main-heading:hover::after {
    width: 80%;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
    animation: fadeIn 1.5s ease-out;
    transition: all 0.4s ease;
    padding: 20px;
    border-radius: 8px;
}

.about-text:hover {
    background-color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

/* Courses Section */
.courses-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.courses-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, white, #F72C5B, white); /* Changed colors */
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.courses-list li {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 4px solid #F72C5B; /* Changed from #003366 to #F72C5B */
    text-align: left;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.courses-list li:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F72C5B; /* Changed from #003366 to #F72C5B */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.courses-list li:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.courses-list li:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 15px 30px rgba(247, 44, 91, 0.15); /* Changed to match new color */
    border-left: 4px solid white; /* Changed from #FFC107 to white */
    color: white;
}

/* Apply staggered animation to list items */
.courses-list li:nth-child(1) { animation-delay: 0.1s; }
.courses-list li:nth-child(2) { animation-delay: 0.15s; }
.courses-list li:nth-child(3) { animation-delay: 0.2s; }
.courses-list li:nth-child(4) { animation-delay: 0.25s; }
.courses-list li:nth-child(5) { animation-delay: 0.3s; }
/* Add more as needed for other items */

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
    text-align: center;
}

.contact-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #F72C5B, white, #F72C5B); /* Changed colors */
}

.contact-heading {
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    transition: all 0.5s ease;
}

.contact-heading:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(247, 44, 91, 0.2); /* Changed to match new color */
}

.contact-heading::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #F72C5B; /* Changed from #FFC107 to #F72C5B */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.contact-heading:hover::after {
    width: 80%;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form .form-control {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: #F72C5B; /* Changed from #003366 to #F72C5B */
    box-shadow: 0 0 0 0.2rem rgba(247, 44, 91, 0.25); /* Changed to match new color */
    transform: translateY(-3px);
    background-color: white;
}

.contact-form .form-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.submit-btn {
    background-color: #F72C5B; /* Changed from #003366 to #F72C5B */
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.submit-btn: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: all 0.6s ease;
    z-index: -1;
}

.submit-btn:hover:before {
    left: 100%;
}

.submit-btn:hover {
    background-color: white;
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(247, 44, 91, 0.1); /* Changed to match new color */
    letter-spacing: 1px;
}

.contact-info {
    padding: 20px;
    animation: fadeInRight 1s ease-out;
    transition: all 0.4s ease;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto;
}

.contact-info:hover {
    background-color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.contact-info h3 {
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-info h3:hover {
    transform: scale(1.05);
    color: #e61e4d; /* Darker shade of #F72C5B */
}

.contact-info p {
    margin-bottom: 15px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.contact-info p:hover {
    background-color: rgba(247, 44, 91, 0.05); /* Changed to match new color */
    transform: translateX(5px);
}

.contact-info i {
    color: #F72C5B; /* Changed from #003366 to #F72C5B */
    margin-right: 10px;
    transition: all 0.3s ease;
}

.contact-info p:hover i {
    color: white;
    transform: scale(1.2);
}

.social-icons {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #F72C5B; /* Changed from #FFC107 to #F72C5B */
    color: white; /* Changed from #003366 to white */
    border-radius: 50%;
    margin: 0 8px;
    border: 1px solid white; /* Changed from #003366 to white */
}

/* Footer */
.footer {
    background-color: #F72C5B; /* Changed from #003366 to #F72C5B */
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F72C5B, white, #F72C5B); /* Changed colors */
}

.footer p {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.footer p:hover {
    transform: scale(1.05);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Button Pulse Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 44, 91, 0.7); /* Changed to match new color */
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(247, 44, 91, 0); /* Changed to match new color */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 44, 91, 0); /* Changed to match new color */
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Responsive Styles */
@media (max-width: 991px) {
    .custom-navbar .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 4px;
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .logo {
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .contact-info {
        margin-top: 50px;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
    }
}

/* Animation for elements when they come into view */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for certain elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 3D button effect */
.btn-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-5px);
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* Shine effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.shine:hover::before {
    left: 125%;
}