/* Modern font enhancements for creative look */

body {
    font-family: var(--body-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sgpa-navbar,
.navbar-menu,
.nav-link {
    font-family: var(--body-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h1,
.header p,
h1,
h2,
h3,
.footer-section h3 {
    font-family: var(--heading-font);
    letter-spacing: 0.03em;
    font-weight: 700;
}

.scheme-btn,
.calculate-btn,
.stat-value,
.sgpa-value,
.sgpa-label,
.performance-indicator,
.summary-table th {
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    font-weight: 600;
}

.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background: white;
    border-radius: var(--card-border-radius);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-alert.show .custom-alert-content {
    transform: translateY(0);
}

.custom-alert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.custom-alert-message {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.custom-alert-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: var(--button-border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--body-font);
}

.custom-alert-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Creative Navbar Styles */
.sgpa-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(92, 117, 227, 0.363);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: var(--heading-letter-spacing);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.6rem 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover span {
    background: var(--secondary-color);
}

/* Animated Background Elements */
.navbar-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    top: -30px;
    right: 10%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    top: 20%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Adjust main content to account for fixed navbar */
.container {
    margin-top: 80px;
}

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

html {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background: var(--body-color);
    min-height: 100vh;
    padding: 0;
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 60px auto;
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.header {
    background: var(--header-gradient);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--heading-font);
    letter-spacing: var(--heading-letter-spacing);
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.back-to-vtu {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.back-to-vtu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-to-vtu i {
    margin-right: 5px;
}

.main-content {
    padding: 30px 20px;
}

.btn-gradient {
    background: var(--gradient);
}

.scheme-selector {
    text-align: center;
    margin-bottom: 35px;
}

.scheme-selector h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.scheme-selector p {
    color: #666;
    margin-bottom: 25px;
}

.scheme-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.scheme-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    font-family: var(--body-font);
    min-width: 180px;
}

.scheme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}


.branch-selector {
    display: none;
    text-align: center;
    margin-bottom: 35px;
    padding: 0 15px;
}

.branch-selector h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.branch-btn {
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    font-family: var(--body-font);
    text-align: center;
    width: 100%;
}

.branch-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--secondary-color);
}

.branch-btn.active {
    background: var(--gradient);
    box-shadow: var(--shadow-hover);
    position: relative;
}

.branch-btn.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.navigation-buttons {
    margin-top: 25px;
    text-align: center;
}

.navigation-buttons .back-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--button-border-radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--body-font);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.navigation-buttons .back-btn:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.navigation-buttons .back-btn i {
    font-size: 0.8rem;
}

.calculator-nav {
    margin-bottom: 20px;
    text-align: left;
}

.cycle-selector {
    text-align: center;
    margin-bottom: 35px;
    display: none;
}

.cycle-selector h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cycle-selector p {
    color: #666;
    margin-bottom: 25px;
}

.cycle-toggle {
    display: flex;
    background: #e6eaed;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 450px;
    transition: all 0.25s ease;
}

.semester-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: 600px;
}

.cycle-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    color: var(--dark-color);
    flex: 1;
    font-family: var(--body-font);
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.cycle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: white;
}

.cycle-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-hover);
}

#calculatorContent {
    display: none;
}

.grade-mapping {
    background: var(--light-color);
    border-radius: var(--card-border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.grade-mapping h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: var(--heading-font);
}

.grade-mapping h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.grade-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    font-size: 0.9rem;
}

.grade-item {
    background: white;
    padding: 8px 10px;
    border-radius: var(--button-border-radius);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.marks-range {
    font-weight: 600;
    color: var(--dark-color);
}

.grade-point {
    color: var(--primary-color);
    font-weight: 700;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.subject-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: var(--card-border-radius);
    padding: 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.subject-info {
    margin-bottom: 16px;
}

.subject-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-family: var(--heading-font);
}

.subject-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.subject-code {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.subject-credits {
    background: var(--gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.marks-input-container {
    position: relative;
}

.marks-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--button-border-radius);
    font-size: 1rem;
    transition: all 0.25s ease;
    background: white;
    font-family: var(--body-font);
}

.marks-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.marks-input:hover {
    border-color: #bbb;
}

.marks-input.error {
    border-color: var(--error-color);
    background-color: #fdf2f2;
}

.grade-preview {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grade-preview.show {
    opacity: 1;
}

.calculate-section {
    text-align: center;
    margin: 30px 0;
}

.calculate-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-family: var(--body-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    font-size: 1rem;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 15px;
    border-radius: var(--card-border-radius);
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

.warning strong i {
    margin-right: 5px;
}

.warning.show {
    display: block;
}

.summary-section {
    background: #f9f9f9;
    border-radius: var(--card-border-radius);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    display: none;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.summary-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.summary-section h3 {
    text-align: center;
    margin-bottom: 18px;
    color: var(--dark-color);
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

.summary-section h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.summary-section.show {
    display: block;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    position: relative;
    background: white;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: white;
    border: 1px solid #e0e0e0;
}

.summary-table th,
.summary-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
}

.summary-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-table th:last-child,
.summary-table td:last-child {
    border-right: none;
}

.summary-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.summary-table tr:hover {
    background: #f0f4ff;
}

.summary-table tr:last-child {
    background-color: #f5f5f5;
}

.summary-table tr:last-child td {
    border-bottom: none;
    font-weight: 600;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.result-section {
    background: var(--success-color);
    color: white;
    padding: 25px 20px;
    border-radius: var(--card-border-radius);
    margin-top: 25px;
    text-align: center;
    display: none;
    box-shadow: 0 3px 15px rgba(46, 204, 113, 0.2);
}

.result-section.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

.sgpa-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--heading-font);
}

.sgpa-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.performance-indicator {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    font-size: 0.95rem;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: var(--card-border-radius);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.visible-mobile {
    display: none;
}

.scroll-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-color);
    padding: 8px 0;
    margin-bottom: 10px;
    background: #f0f4ff;
    border-radius: 4px;
    border: 1px dashed rgba(67, 97, 238, 0.3);
}

.scroll-hint i {
    margin-right: 5px;
    color: var(--primary-color);
    animation: bounce-horizontal 1.5s infinite;
}

@keyframes bounce-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: bounce-vertical 1.5s infinite;
    z-index: 10;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes bounce-vertical {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.footer {
    background: var(--light-color);
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 15px 0 30px;
    background: white;
    margin-top: 20px;
}

/* Download Report Button Styles */
.download-report-btn {
    background: #3a3a3a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    display: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--body-font);
    width: 220px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.download-report-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.download-report-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.download-report-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-report-btn i {
    margin-right: 8px;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 10px 0 30px;
    background: white;
}

/* Site Footer Styles */
.site-footer {
    background: var(--gradient);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section.links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-section.links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom .fa-heart {
    color: #ff5a5f;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.2);
    }

    10% {
        transform: scale(1.1);
    }

    15% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .summary-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-menu {
        position: fixed;
        top: 59px;
        right: -100%;
        width: 55%;
        height: calc(100vh - 59px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.1rem 0.5rem;
        transition: right 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    body {
        padding: 0;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .back-to-vtu {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cycle-toggle {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
    }

    .semester-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 300px;
    }

    .cycle-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .branch-buttons {
        gap: 10px;
    }

    .branch-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .grade-table {
        grid-template-columns: repeat(2, 1fr);
    }

    .sgpa-value {
        font-size: 3rem;
    }

    .visible-mobile {
        display: block;
    }

    .table-container {
        overflow-x: auto;
        margin: 0 -15px;
        padding: 0 15px;
        width: calc(100% + 30px);
    }

    .summary-table {
        min-width: 650px;
        font-size: 0.9rem;
    }

    .summary-table th,
    .summary-table td {
        padding: 8px 10px;
    }

    .summary-table th {
        font-size: 0.85rem;
    }

    .scheme-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .scheme-btn {
        width: 100%;
        max-width: 300px;
    }

    .calculate-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px;
        font-size: 1rem;
    }

    .summary-section {
        padding: 15px;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-hint {
        display: flex;
    }

    .download-report-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px;
        font-size: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .scheme-selector h2,
    .cycle-selector h2,
    .branch-selector h2 {
        font-size: 1.5rem;
    }

    .subject-card {
        padding: 12px;
    }

    .subject-name {
        font-size: 0.95rem;
    }

    .grade-table {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 10px;
    }

    .performance-indicator {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .branch-btn {
        font-size: 0.9rem;
    }

    .download-report-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}