/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #01082d;
    --secondary: #266ca9;
    --accent: #4a90e2;
    --light: #f8f9fa;
    --dark: #01082d;
    --text: #333;
    --text-light: #6c757d;
    --shadow: 0 4px 12px rgba(1, 8, 45, 0.1);
    --transition: all 0.3s ease;
}

body {
    color: var(--text);
    line-height: 1.8;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--secondary);
}

/* Hero Section with Blending Image */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 150px 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
}

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

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* Reduced opacity for blending */
    animation: zoomInOut 20s infinite alternate;
}

.blending-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Blending image with reduced opacity */
    mix-blend-mode: overlay;
    animation: fadeInOut 15s infinite alternate;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 8, 45, 0.7), rgba(1, 8, 45, 0.7));
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}

.service-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-content li {
    margin-bottom: 8px;
}

/* Courses Section */
.courses-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.course-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
    opacity: 0;
    transform: translateY(20px);
}

.course-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.course-item:hover {
    transform: translateY(-5px);
}

.course-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Community Section */
.community-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.community-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.community-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.community-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.community-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.community-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* Future Section */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.future-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
    opacity: 0;
    transform: translateY(30px);
}

.future-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.future-item:hover {
    transform: translateY(-10px);
}

.future-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.future-item:hover .future-icon {
    transform: scale(1.2);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.contact-info.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: var(--secondary);
    width: 20px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.contact-form.animate {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(38, 108, 169, 0.2);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Form Response Message */
.form-response {
    display: none;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.4;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content,
    .community-content,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image,
    .community-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 0;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: var(--shadow);
        padding: 20px 0;
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex;
        animation: fadeInDown 0.5s ease;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .courses-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .future-grid {
        grid-template-columns: 1fr;
    }
    
    .course-list {
        grid-template-columns: 1fr;
    }
}
/* Contact Form Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #555;
}

.contact-details i {
    width: 20px;
    margin-right: 10px;
    color: #266ca9;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #266ca9;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #266ca9;
}

.form-group select {
    appearance: none;
    background-image: #266ca9;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #266ca9, #266ca9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled:hover {
    transform: none;
}

/* Form Response Messages */
.form-response {
    display: none;
    padding: 12px;
    margin-top: 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-response.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #27ae60;
    background: #f2fdf2;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.btn-submit.sending {
    animation: pulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus states for accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.btn-submit:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-submit {
        background: #333 !important;
        color: white !important;
    }
}