/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #667eea;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #764ba2;
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.refresh-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.refresh-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image i {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

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

/* Semesters Section */
.semesters-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.semester-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.semester-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.semester-icon {
    font-size: 2.5rem;
    color: #667eea;
    width: 60px;
    text-align: center;
}

.semester-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.semester-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.semester-courses {
    margin-top: 1.5rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.course-item i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.course-item span {
    color: #333;
    font-weight: 500;
}

/* Semester courses page: boxed course cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.course-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: #dcdcf8;
}

.course-card .course-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.course-card .course-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.course-card .course-info h3 {
    margin: 0;
    font-size: 1.05rem;
}

.course-card .course-code {
    font-size: 0.85rem;
    color: #666;
}

.course-card .course-description {
    color: #555;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.45;
}

.course-card .materials-count {
    font-size: 0.85rem;
    color: #7a7a7a;
}

.course-materials {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.material-item i {
    color: #28a745;
    width: 16px;
    text-align: center;
}

.material-item a {
    color: #667eea;
    text-decoration: none;
    flex: 1;
}

.material-item a:hover {
    text-decoration: underline;
}

/* Course materials page spacing + filters */
.materials-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.filter-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border-color: #dedcff;
}

.material-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.material-info h4 {
    margin: 0 0 0.3rem 0;
    color: #1f2937;
}

.material-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.material-link {
    margin-left: auto;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-placeholder i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.no-semesters {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-semesters i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-semesters .btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Version badge */
.version-badge {
    position: fixed;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    user-select: none;
}

/* Blur and dim content when login required (admin page) */
.login-required .main-content,
.login-required .header,
.login-required .footer {
    filter: blur(6px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.welcome-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.welcome-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.welcome-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.welcome-card:hover i {
    transform: scale(1.1);
}

.welcome-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.welcome-card p {
    color: #666;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.contact-item i {
    font-size: 2rem;
    color: #667eea;
    width: 60px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        font-size: 0.9rem;
    }

    .semesters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .welcome-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .semester-card {
        padding: 1.5rem;
    }

    .course-card {
        padding: 1rem;
    }

    .welcome-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        width: auto;
        margin-bottom: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .materials-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
    }

    .material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .material-link {
        margin-left: 0;
        width: 100%;
    }

    .material-link .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-brand i {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-image i {
        font-size: 6rem;
    }

    .semester-card {
        padding: 1rem;
    }

    .course-card {
        padding: 0.75rem;
    }

    .welcome-card {
        padding: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .semester-icon {
        font-size: 2rem;
        width: 50px;
    }

    .semester-info h3 {
        font-size: 1.1rem;
    }

    .course-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .material-item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #667eea;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-toggle:hover {
        color: #764ba2;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Loading container */
.loading-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.loading-text,
.loading-subtext,
.loading-message {
    color: #1f2937; /* dark text for visibility */
}

/* Blueprint grid background */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.5;
}

/* Main loading animation */
.engineering-loader {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

/* Rotating gears */
.gear {
    position: absolute;
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.gear-large {
    width: 120px;
    height: 120px;
    animation: rotate 8s linear infinite;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
}

.gear-small {
    width: 60px;
    height: 60px;
    top: 70px;
    left: 120px;
    animation: rotate 4s linear infinite reverse;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.5);
}

.gear-inner {
    width: 40%;
    height: 40%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circuit animation */
.circuit-path {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.energy-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(102, 126, 234, 0.8);
    animation: pulse 2s infinite;
}

.node-1 { top: 0; left: 90px; animation-delay: 0s; }
.node-2 { top: 90px; right: 0; animation-delay: 0.5s; }
.node-3 { bottom: 0; left: 90px; animation-delay: 1s; }
.node-4 { top: 90px; left: 0; animation-delay: 1.5s; }

/* Progress indicator */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    animation: progress 5s ease-in-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

/* Loading text */
.loading-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-subtext {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 300;
}

/* Dynamic messages */
.loading-message {
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
    font-style: italic;
    opacity: 0.9;
}

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

@keyframes pulse {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

@keyframes progress {
    0% { width: 0%; }
    20% { width: 25%; }
    40% { width: 50%; }
    60% { width: 75%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* Responsive design */
@media (max-width: 600px) {
    .engineering-loader {
        width: 150px;
        height: 150px;
    }
    
    .gear-large {
        width: 90px;
        height: 90px;
    }
    
    .gear-small {
        width: 45px;
        height: 45px;
        top: 52px;
        left: 90px;
    }
    
    .circuit-path {
        width: 130px;
        height: 130px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

/* Navigation logo styling */
.nav-logo {
    height: 32px;
    width: 32px;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: rotate(5deg);
}

/* Hero logo styling */
.hero-logo {
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Make sure the hero image container is properly styled */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-logo {
        height: 28px;
        width: 28px;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 24px;
        width: 24px;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand span {
    font-weight: 700;
    color: #667eea;
}

/* If image fails to load */
.nav-logo[alt] {
    font-size: 0;
}

.nav-logo[alt]:after {
    content: attr(alt);
    font-size: 16px;
    color: #667eea;
    font-weight: bold;
}

