/* Main Styles for Computer Centre Website */

/* Global Styles with Animation */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition-speed: 0.3s;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #f9f9f9;
}

/* Smooth scrolling for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Image hover effects */
.img-hover {
    transition: all 0.5s ease;
    overflow: hidden;
}

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

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

/* Card hover animations */
.card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* Form animations */
.form-control {
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer animations */
footer {
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Table animations */
table {
    border-collapse: collapse;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

tr:hover th::after {
    transform: scaleX(1);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

tr:hover td {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-color);
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 100px;
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out;
}

/* Navbar Styles with Animation */
.navbar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    animation: slideDown 0.5s ease-out;
}

.navbar-scrolled {
    background-color: rgba(13, 110, 253, 0.95) !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.navbar-brand i {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: translateY(-3px);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    z-index: -1;
}

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

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-link.active {
    position: relative;
}

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

/* Hero Carousel Styles with Enhanced Animation */
.carousel-item {
    height: 600px;
    background-color: #000;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: scale(1.05);
    transition: transform 10s ease, opacity 0.5s ease;
    filter: brightness(0.8);
}

.carousel-item.active img {
    transform: scale(1);
    animation: zoomOut 10s ease forwards;
}

@keyframes zoomOut {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.carousel-image {
    opacity: 0.8;
    transition: all 0.5s ease;
}

.carousel-item:hover .carousel-image {
    opacity: 0.9;
    transform: scale(1.02);
    filter: brightness(1);
    transition: all 0.5s ease;
}

.carousel-caption {
    bottom: 30%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transform: translateY(30px);
    opacity: 0;
}

.carousel-item.active .carousel-caption {
    animation: slideUp 1s ease forwards 0.5s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.carousel-caption .btn {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section Styles with Animation */
.feature-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    background-color: #fff;
    animation: fadeIn 1s ease-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4e73df 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    border-radius: 15px;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 0.9;
}

.feature-card:hover .card-title,
.feature-card:hover .card-text {
    color: #fff;
}

.feature-card:hover .feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotateY(360deg);
}

.feature-icon {
    display: inline-block;
    height: 80px;
    width: 80px;
    line-height: 80px;
    transition: all 0.8s ease;
    transform-style: preserve-3d;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin-bottom: 1.5rem;
}

/* About Section Styles */
.counter {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

/* Download Form Styles */
.download-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.marksheet-preview {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form Styles */
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background-color: #0d6efd;
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
}

.contact-info i {
    width: 30px;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #212529;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: #212529;
    color: #fff;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    padding: 0.75rem 1.25rem !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 5%;
        padding: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}