/* Custom CSS for Sri Subbaiah (SS) Degree College */

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

/* Root Variables */
:root {
    --primary-color: #f15b23;
    --secondary-color: #fff5f0;
    --third-color: #0d733b;
    --accent-color: #a12e36;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --light-orange: #fff5f0;
    --light-gray: #f8f9fa;
    --soft-yellow: #fff8e1;
    --light-green: #e8f5e9;
    --dark-color: #2d3748;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --text-primary: #a12e36;
    --bg-light: #ffffff;
    --navbar-bg: #f8f9fa;
    --navbar-text: #495057;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--bg-light);
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: #e04a1a;
    border-color: #e04a1a;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(241, 91, 35, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #8b2530;
    border-color: #8b2530;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(161, 46, 54, 0.3);
}

.bg-primary {
    background-color: var(--navbar-bg) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.book-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--navbar-bg) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navbar-text) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--navbar-text) !important;
    padding: 0.75rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(241, 91, 35, 0.1);
    border-radius: 8px;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(241, 91, 35, 0.15);
    border-radius: 8px;
}

.navbar-toggler {
    border: none;
    color: var(--navbar-text);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Offcanvas Mobile Menu Styles */
.offcanvas {
    width: 300px !important;
    background-color: var(--bg-light);
}

.offcanvas-header {
    background-color: var(--light-orange) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-header .offcanvas-title {
    color: var(--text-primary) !important;
}

.offcanvas-body {
    padding: 0;
    background-color: var(--bg-light);
}

.offcanvas .nav-link {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas .nav-link:hover {
    background-color: var(--light-orange);
    color: var(--primary-color) !important;
    transform: scale(1.02);
    box-shadow: 0 2px 10px rgba(241, 91, 35, 0.2);
}

.offcanvas .nav-link:active {
    transform: scale(0.98);
}

.offcanvas .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

.offcanvas .nav-link.active:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.offcanvas .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-orange) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(241,91,35,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-image {
    text-align: center;
    margin-top: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(241, 91, 35, 0.15);
    border: 2px solid var(--primary-color);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card:hover .feature-icon i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(241, 91, 35, 0.15);
    border: 2px solid var(--primary-color);
}

.course-card:hover .course-icon i {
    color: var(--primary-color) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Highlight Items */
.highlight-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(241, 91, 35, 0.15);
    border-left: 4px solid var(--primary-color);
}

/* Activity Cards */
.activity-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(241, 91, 35, 0.8), rgba(161, 46, 54, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
}

/* Page Header */
.page-header {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

/* Mission Vision Cards */
.mission-vision-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(241, 91, 35, 0.15);
}

/* Infrastructure Items */
.infrastructure-item {
    transition: all 0.3s ease;
}

.infrastructure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(241, 91, 35, 0.15);
}

/* Faculty Cards */
.principal-card {
    transition: all 0.3s ease;
}

.principal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(241, 91, 35, 0.15);
}

.faculty-card {
    transition: all 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(241, 91, 35, 0.15);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff3e0;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    margin-bottom: 0.5rem;
}

.timeline-content h5:hover {
    color:#fff3e0 !important;
    text-decoration: underline;
}

/* Gallery Styles */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(241, 91, 35, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(241, 91, 35, 0.9), rgba(161, 46, 54, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-content {
    text-align: center;
    padding: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(241, 91, 35, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 91, 35, 0.2);
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer .social-links a {
    color: white;
    font-size: 1.2rem;
}

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

/* Background Colors */
.bg-light-orange {
    background-color: var(--light-orange) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

/* Text Colors */
.text-orange {
    color: var(--primary-color) !important;
}

.text-dark-red {
    color: var(--accent-color) !important;
}

/* Call to Action Section */
.bg-primary.text-white {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }
    
    .offcanvas {
        width: 280px !important;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card,
    .course-card {
        margin-bottom: 1rem;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1rem;
    }
    
    .offcanvas {
        width: 260px !important;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
}

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

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

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

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rounded-custom {
    border-radius: 15px;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

/* Logo Styles */
.college-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .college-logo {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .college-logo {
        height: 30px;
    }
}

/* Text Hover Effects */
h1, h2, h3, h4, h5, h6 {
    transition: color 0.3s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: var(--primary-color) !important;
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Button Click Effects */
.btn {
    transition: all 0.2s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}