/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004a99;
    --success-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

/* Navbar */
.navbar {
    padding: 0.125rem 0;
    min-height: 100px;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Company Title */
.company-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand:hover .company-name {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 50px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    background-color: #0066cc;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Ensure no tiling on any screen */
body .hero-section {
    background-repeat: no-repeat !important;
}

/* Fallback for smaller images */
@supports (background-size: cover) {
    .hero-section {
        background-size: cover !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Glass-morphism card for hero content */
.hero-content-wrapper {
    background: rgba(108, 179, 255, 0.295);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    transition: all 0.3s ease;
    margin-top: -12vh;
}

.hero-content-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(42, 137, 238, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Landscape Image Styling */
.landscape-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landscape-img:hover {
    transform: scale(1.02);
}

.hero-image {
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-image .landscape-img {
    object-position: center 35%;
}

.about-section .landscape-img,
#about .landscape-img {
    object-position: center 30%;
}

#about .col-lg-6 {
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-content .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background-color: transparent;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.hero-stats {
    animation: fadeInUp 1.6s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
}

.hero-stats h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* 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 fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vision & Mission Ribbon Section */
.vision-mission-ribbon {
    background: linear-gradient(90deg, #0066cc 0%, #004a99 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInFromTop 0.8s ease-out;
}

.vision-mission-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.ribbon-wrapper {
    position: relative;
    z-index: 1;
}

.ribbon-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.ribbon-item:nth-child(2) {
    animation-delay: 0.15s;
}

.ribbon-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.ribbon-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.ribbon-content {
    color: #fff;
}

.ribbon-content h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.ribbon-content p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}

.ribbon-item:hover .ribbon-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* About Section */
.about-content .badge,
#services .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

#about .about-content {
    max-width: 900px;
    margin: 0 auto;
}

#about .about-content h2 {
    text-align: center;
}

#about .about-content > p {
    text-align: center;
}

/* Definition & Goals Section */
.definition-goals-section {
    border: 1px solid #3499ff;
    transition: all 0.3s ease;
}

.definition-goals-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
}

.definition-goals-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
}

.definition-goals-section ul {
    list-style: none;
    padding-left: 0;
}

.definition-goals-section ul li {
    position: relative;
    padding-left: 1.5rem;
}

.definition-goals-section ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.definition-goals-section i {
    flex-shrink: 0;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

/* .service-card:hover .service-icon {
    transform: scale(1.1);
} */

.icon-circle {
    transition: all 0.3s ease;
}

/* .service-card:hover .icon-circle {
    transform: rotate(360deg);
} */

/* Contact Section */
.info-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.contact-form {
    border: 1px solid #e9ecef;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: 0;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
}

/* Registration Page */
.registration-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 100px);
}

.registration-form {
    border: 1px solid #e9ecef;
}

.form-section {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 2rem;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h4 {
    color: var(--text-dark);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #adb5bd;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 40px;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%);
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .navbar {
        min-height: 80px;
    }
    
    .hero-content-wrapper {
        padding: 2rem;
        border-radius: 1.25rem;
    }
    
    .ribbon-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .ribbon-content h4 {
        font-size: 1.1rem;
    }
    
    .ribbon-content p {
        font-size: 0.95rem;
    }
    
    .definition-goals-section h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        background-position: 65% center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .hero-stats p {
        font-size: 0.875rem;
    }
    
    .hero-content-wrapper {
        padding: 1.5rem;
        border-radius: 1rem;
        background: rgba(0, 74, 153, 0.35);
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .navbar {
        min-height: 70px;
    }
    
    /* Landscape images on mobile */
    .landscape-img {
        aspect-ratio: 16 / 10;
        object-position: center 35%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .ribbon-icon {
        width: 50px;
        height: 50px;
    }
    
    .ribbon-icon i {
        font-size: 1.5rem;
    }
    
    .ribbon-content h4 {
        font-size: 1rem;
    }
    
    .ribbon-content p {
        font-size: 0.875rem;
    }
    
    .definition-goals-section {
        padding: 1.5rem !important;
    }
    
    .definition-goals-section h4 {
        font-size: 1.1rem;
    }
    
    .definition-goals-section p,
    .definition-goals-section li {
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Card Hover Effects */
.bg-white {
    transition: all 0.3s ease;
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

/* Modal */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.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;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-light) !important;
}

/* List Styles */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}

/* Feature Icon Large */
.feature-icon-large {
    transition: transform 0.3s ease;
}

.feature-icon-large:hover {
    transform: scale(1.1);
}
