/* static/css/caesar.css */

:root {
    /* Common colors */
    --primary-color: #ff0000;
    --accent-color: #ff3333;
    --success-color: #ff3333;
    
    /* Dark theme (default) */
    --secondary-color: #0f0f0f;
    --light-color: #ffffff;
    --dark-color: #000000;
    --neutral-color: #64748b;
    --border-color: #2a2a2a;
    --card-bg: #121212;
    --input-bg: #1e1e1e;
    --text-muted: #9ca3af;
    --text-dark: #171717;
    --feature-card-bg: #0a0a0a;
    --result-bg: #121212;
    --result-text: #e2e8f0;
    --visualizer-border: #333;
    --visualizer-text: #e2e8f0;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --glow-effect: 0 0 15px #ff0000;
    --body-bg: #000000;
    --footer-bg: #0f0f0f;
    --header-bg: #0f0f0f;
    --dropdown-bg: #1a1a2a;
    --dropdown-hover: #2a2a2a;
}

/* Light theme */
[data-theme="light"] {
    --secondary-color: #f0f0f0;
    --light-color: #333333;
    --dark-color: #ffffff;
    --neutral-color: #64748b;
    --border-color: #d1d5db;
    --card-bg: #ffffff;
    --input-bg: #f5f5f5;
    --text-muted: #64748b;
    --text-dark: #171717;
    --feature-card-bg: #f9fafb;
    --result-bg: #f5f5f5;
    --result-text: #333333;
    --visualizer-border: #d1d5db;
    --visualizer-text: #333333;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glow-effect: 0 0 15px rgba(255, 0, 0, 0.3);
    --body-bg: #ffffff;
    --footer-bg: #f0f0f0;
    --header-bg: #ffffff;
    --dropdown-bg: #ffffff;
    --dropdown-hover: #f5f5f5;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Apply longer transition when actively changing themes */
.theme-transition * {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

body {
    background-color: var(--body-bg);
    color: var(--light-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--header-bg);
    color: var(--light-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

header > .container {
    padding-left: 0;
    padding-right: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 0;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 1.5rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%;
}

.user-account {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-profile:hover {
    background-color: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.user-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.username {
    font-weight: 600;
    color: var(--light-color);
    font-size: 0.9rem;
}

.dropdown-arrow {
    color: var(--light-color);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.user-profile.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropdown-user-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.dropdown-username {
    font-weight: 600;
    color: var(--light-color);
    font-size: 1rem;
}

.dropdown-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.dropdown-item {
    margin: 0;
}

.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--light-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item a:hover {
    background-color: var(--dropdown-hover);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 16px;
}

.logout-item a {
    color: #ff4444;
}

.logout-item a:hover {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.hero {
    background: linear-gradient(135deg, #cc0000 0%, #cc0000 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 332px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDMpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.5;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.main {
    padding: 3rem 0;
}

.cipher-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

textarea, input[type="number"], select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--light-color);
}

textarea:focus, input[type="number"]:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: var(--glow-effect);
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', monospace;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #1f1f1f;
    color: var(--accent-color);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #ff4d4d;
}

/* Rotating gear effect for process button */
#process-btn .btn-icon .fa-cog {
    transition: transform 0.8s ease-in-out;
}

#process-btn:hover .btn-icon .fa-cog {
    transform: rotate(360deg);
}

.btn-group {
    display: flex;
    gap: 15px;
}

.result-section {
    margin-top: 2rem;
    display: none;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.result-box {
    background-color: var(--result-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    min-height: 120px;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--result-text);
    font-family: 'Consolas', 'Monaco', monospace;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 300px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--feature-card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-effect);
    background-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.shift-visualization {
    overflow-x: auto;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.visualization-guide {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.visualization-info {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    color: var(--light-color);
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px dashed rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.visualization-info.active {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    font-weight: 500;
}

.alphabet-map {
    display: flex;
    min-width: max-content;
    margin-bottom: 1.5rem;
    margin-left: 25px;
    position: relative;
}
.shift-visualization h3{
    margin-bottom: 1rem;
}

.alphabet-letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--visualizer-border);
    font-weight: bold;
    color: var(--visualizer-text);
    background-color: var(--card-bg);
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.alphabet-letter.highlight {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    z-index: 2;
}

.alphabet-letter.input-highlight {
    background-color: #ff0000;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
    z-index: 3;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5); transform: translateY(-5px) scale(1.1); }
    50% { box-shadow: 0 5px 25px rgba(255, 0, 0, 0.8); transform: translateY(-7px) scale(1.15); }
    100% { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5); transform: translateY(-5px) scale(1.1); }
}

.fade-lights {
    filter: brightness(0.7);
    transition: filter 1s ease;
}

.fade-lights .alphabet-letter {
    filter: brightness(0.8);
}

.fade-lights .alphabet-letter.input-highlight {
    filter: brightness(1.2);
}

.arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow i {
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

footer {
    background-color: var(--footer-bg);
    color: var(--light-color);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
}

.footer-section {
    min-width: 200px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.footer-section:nth-child(1) {
    grid-column: 1 / 2;
    justify-self: start;
    text-align: left;
}

.footer-section:nth-child(2) {
    grid-column: 2 / 3;
    justify-self: center;
    text-align: center;
    align-items: center;
}

.footer-section:nth-child(3) {
    grid-column: 3 / 4;
    justify-self: end;
    text-align: right;
    align-items: flex-end;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    grid-column: 1 / -1; 
}

.footer-title {
    align-self: flex-start;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section:nth-child(2) .footer-title {
    align-self: center;
}

.footer-section:nth-child(2) .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-section:nth-child(3) .footer-title {
    align-self: flex-end;
}

.footer-section:nth-child(3) .footer-title::after {
    left: auto;
    right: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section:nth-child(2) .footer-links {
    align-items: center;
}

.footer-section:nth-child(3) .footer-links {
    align-items: flex-end;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    padding: 4px 0;
    display: block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section:nth-child(3) .footer-links a:hover {
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.footer-section:nth-child(2) .social-links {
    justify-content: center;
}

.footer-section:nth-child(3) .social-links {
    justify-content: flex-end;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.info-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-text {
    flex: 2;
    min-width: 300px;
}

.info-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.info-image img {
    max-width: 100%;
    border-radius: 8px;
}

.notification {
    padding: 12px 18px;
    margin-bottom: 25px;
    border-radius: 6px;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid transparent;
    font-size: 0.9rem;
    opacity: 1;
    transform: translateY(0);
    background-color: var(--card-bg);
}

.notification.success {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: rgba(255, 0, 0, 0.05);
}

.notification.error {
    color: #ff0000;
    border-left-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.theme-toggle-buttons {
    position: fixed;
    top: 5%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 1000;
}

.theme-toggle-buttons button {
    padding: 10px;
    border: 1px solid #ff0000;
    cursor: pointer;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    background-color:#000000;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateY(10px);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.15);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.btn-text {
    margin-right: 10px;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}

.algorithm-nav-container {
    background-color: var(--header-bg);
    border-top: 0.5px solid #ff0000;
}

.algorithm-nav {
    display: flex;
    align-items: center;
    justify-content:space-between;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    user-select: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 1200px;
    margin: 0 auto;
}

.algorithm-nav-item {
    flex: 0 0 auto;
    text-align: center;
    color: var(--light-color);
    text-decoration: none;
    padding: 0 12px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: block;
    white-space: nowrap;
}

.algorithm-nav-item:hover {
    color:#ff0000;
    border-bottom:2px solid #ff0000;
}


/* Media Queries */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar-left, .navbar-center, .navbar-right {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .navbar-center {
        order: 2;
    }
    .navbar-right {
        order: 3;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .user-profile {
        padding: 6px 12px;
    }
    .username {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-section:nth-child(1),
    .footer-section:nth-child(2),
    .footer-section:nth-child(3) {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .footer-section {
        margin-bottom: 2rem;
    }
    .footer-title,
    .footer-section:nth-child(3) .footer-title {
        align-self: center;
    }
    .footer-title::after,
    .footer-section:nth-child(3) .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    .footer-links,
    .footer-section:nth-child(3) .footer-links {
        align-items: center;
    }
    .footer-links a:hover,
    .footer-section:nth-child(3) .footer-links a:hover {
        transform: translateY(-3px);
    }
    .social-links,
    .footer-section:nth-child(3) .social-links {
        justify-content: center;
    }
    .user-dropdown {
        right: -50px;
        min-width: 250px;
    }
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-chat-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-chat-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-chat-btn a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
