/* Custom CSS for IoT & Robotics Lab */

/* Root Variables */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-gray: #475569;
    --border-color: #e2e8f0;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.navbar-brand-text .brand-main {
    font-size: 1.3rem;
    line-height: 1.2;
}

.navbar-brand-text .brand-dept {
    font-size: 0.75rem;
    line-height: 1.1;
    opacity: 0.9;
    font-weight: 400;
}

.navbar-brand-text .brand-college {
    font-size: 0.7rem;
    line-height: 1.1;
    opacity: 0.8;
    font-weight: 300;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.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 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Statistics Cards */
.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stats-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* Mentor Cards */
.mentor-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mentor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--light-color);
}

.mentor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.mentor-title {
    font-size: 1rem;
    color: var(--secondary-color);
}

.mentor-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Images */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand-text .brand-main {
        font-size: 1.1rem;
    }
    
    .navbar-brand-text .brand-dept {
        font-size: 0.65rem;
    }
    
    .navbar-brand-text .brand-college {
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .page-header {
        padding: 100px 0 60px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .coming-soon-card {
        padding: 3rem 2rem;
        margin: 1rem;
    }
    
    .news-preview-card {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .equipment-image {
        height: 180px;
    }
    
    .equipment-content {
        padding: 1.25rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-carousel,
    .project-image {
        height: 300px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mentor-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 100px 0 50px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .coming-soon-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    .news-preview-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    .category-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .equipment-image {
        height: 160px;
    }
    
    .equipment-content {
        padding: 1rem;
    }
    
    .equipment-title {
        font-size: 1.1rem;
    }
    
    .equipment-cta {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-carousel,
    .project-image {
        height: 250px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .projects-cta {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .mentor-image {
        width: 100px;
        height: 100px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Mentor Image Placeholder */
.mentor-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-color);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.mentor-card:hover .mentor-image-placeholder {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::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 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Coming Soon Styles */
.coming-soon-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.coming-soon-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.feature-item {
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-color);
    transform: translateY(-3px);
}

/* Project Styles */
.project-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-carousel {
    height: 400px;
    border-radius: 0;
}

.project-image {
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.project-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-meta {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.project-team,
.project-date {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.project-abstract {
    flex: 1;
}

.project-abstract h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.project-abstract p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-technologies h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-technologies .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.5rem;
}

/* Vertically center project carousels on large screens */
@media (min-width: 992px) {
    .project-card .row.g-0 {
        height: 100%;
    }
    
    .project-card .col-lg-6 {
        display: flex;
        align-items: center;
    }
    
    .project-carousel {
        width: 100%;
    }
    
    .project-content {
        align-self: stretch;
    }
}

.projects-cta {
    background: var(--light-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* News Preview Styles */
.news-preview-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.news-feature {
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-feature:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

/* Equipment Styles */
.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.equipment-category {
    margin-bottom: 3rem;
}

.category-title {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 2rem;
}

.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.equipment-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equipment-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.equipment-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.equipment-cta {
    background: var(--light-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* About Us Page Styles */
.team-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    margin-bottom: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-dark) !important;
}

.contact-info .contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-info .contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* About Us Responsive Styles */
@media (max-width: 768px) {
    .team-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-info .contact-item {
        padding: 0.8rem 0;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }

    /* Student coordinator cards on mobile */
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }

    /* Student coordinator cards take full width on small screens */
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Achievements Page Styles */
.achievement-stat {
    transition: transform 0.3s ease;
}

.achievement-stat:hover {
    transform: translateY(-5px);
}

.achievement-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.achievement-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.achievement-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-card.border-dashed {
    border: 2px dashed #dee2e6 !important;
    background: #f8f9fa;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.winner-card {
    transition: all 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.achievement-category .badge {
    padding: 8px 12px;
    font-size: 0.75rem;
}

.achievement-meta .badge {
    padding: 4px 8px;
    font-size: 0.7rem;
}

.cta-section {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.internship-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.internship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.winner-info .winner-card {
    border: 1px solid #e9ecef;
}

/* Responsive adjustments for achievements */
@media (max-width: 768px) {
    .achievement-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .winner-card {
        margin-bottom: 1rem;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
    }
}
